About
You may receive notification from Microsoft that the version of Kubernetes in Azure that your Templafy Email Signature Server cluster is running will be deprecated. Upgrading the Kubernetes version is recommended to ensure continued support from Microsoft for your Azure Kubernetes Services cluster.
- Pre-requisites
- Upgrade Kubernetes in the Azure portal
- Upgrade the Horizontal Pod Autoscaler version
- Additional resources
|
Pre-requisites
|
Upgrade Kubernetes in the Azure portal
You may upgrade the Kubernetes version for the cluster at any time by navigating to the templafyemailsignatureserver Kubernetes service in the Resource group for the cluster.
|
- Click the current Kubernetes version link on the Overview of the templafyemailsigantureserver Kubernetes service
- Click the "Upgrade version" link
- Select the Kubernetes version to upgrade to in the right-hand pane
- Leave the default "Upgrade control plane + all node pools" radio button set
- Click [Save]
|
Upgrade the Horizontal Pod Autoscaler version
|
- Get access to Kubernetes cluster using Bash Cloud Shell.
-
Log in to Azure portal.
-
Start Cloud Shell
- Verify subscription where the AKS cluster for Templafy Email Signature Server resides.
az account show
-
If needed, set the Enabled subscription to the one where the Templafy ESS AKS cluster resides.
az account set --subscription SUBSCRIPTION_NAME_OR_ID
-
-
Run the commands to authenticate to the AKS cluster.
Replace "RESOURCE_GROUP_NAME" with the Resource group name that contains your templafyemailsignatureserver Kubernetes service resource.
az aks get-credentials --name templafyemailsignatureserver --resource-group RESOURCE_GROUP_NAME
kubectl get ns
This may trigger an SSO Microsoft authentication process. Follow the instructions on screen and after successful authentication the output will be the namespaces of the cluster.
Now you have a valid session with the cluster to run the rest of the commands below.
-
- Get the HPA NAME and NAMESPACE.
-
kubectl get hpa --all-namespaces
-
- Get the current HPA configuration by running the following commands and replace "NAME" with the name of the HPA and "NAMESPACE" with the namespace.
kubectl get hpa NAME --namespace NAMESPACE -o yaml
- If "apiVersion: autoscaling/v2" is present, you are all set! Otherwise continue this guide to set this configruation...
- Get the current HPA configuration as a yaml file for editing.
kubectl get hpa NAME --namespace NAMESPACE --output yaml > hpa.yaml
- Edit the hpa.yaml file in a text editor.
code hpa.yaml
- Find the apiVersion top-level entry in the file and update it to the string for the new API version "
autoscaling/v2
", if it is not already set. - If the top-level apiVersion entry is missing it will need to be added as the very first line as shown above.
- NOTE: There may be another "apiVersion: apps/v1" entry under the "scaleTargetRef:" section. This entry can be ignored and is not modified.
- NOTE: There may be another "apiVersion: apps/v1" entry under the "scaleTargetRef:" section. This entry can be ignored and is not modified.
- Save the changes in the hpa.yaml file.
- Ctrl-S in the editor window, or use the menu in the upper right of the code editor
- Apply the updated configuration
kubectl apply --filename hpa.yaml
- Verify that the HPA is running and using the new API version by running the following command and replace "NAME" with the name of the HPA and "NAMESPACE" with the namespace. Look for the apiVersion field in the output and ensure that it matches the version "
autoscaling/v2
".kubectl get hpa NAME --namespace NAMESPACE -o yaml
Additional resources
You may also review the published Microsoft support article sections for this upgrade to gain more detailed background information and to find the actions to perform the upgrade on the command line.
Comments
0 comments
Article is closed for comments.