5.17 (Kubernetes)
Prerequisites
If you have made custom changes to your deployment file structure, please contact your Support team before you upgrade your environments.
- Download the latest Cinchy Artifacts from the Cinchy Releases Table > Kubernetes Artifacts column. For this upgrade, please download the Cinchy Kubernetes Deployment Template v5.17.x.zip file.
Depending on your current version, you may need to:
- Run the 5.2 upgrade script
- Run the 5.5 upgrade script
Considerations Table
| Current Version | Run the 5.2 Upgrade Script | Run the 5.5 Upgrade Script |
|---|---|---|
| 5.0 | Yes | Yes |
| 5.1 | Yes | Yes |
| 5.2 | X | Yes |
| 5.3 | X | Yes |
| 5.4 | X | Yes |
| 5.5 | X | X |
| 5.6 | X | X |
| 5.7 | X | X |
| 5.8 | X | X |
| 5.9 | X | X |
| 5.10 | X | X |
| 5.11 | X | X |
| 5.12 | X | X |
| 5.13 | X | X |
| 5.14 | X | X |
| 5.15 | X | X |
| 5.16 | X | X |
Configure to the newest version
Clean existing repositories
- Go to your cinchy.argocd repository. Delete all existing folder structure except for the .git folder/directory and any custom changes you may have implemented.
- Go to your cinchy.kubernetes repository. Delete all existing folder structure except for the
.gitfile.
If you have cinchy.kubernetes\cluster_components\servicemesh\istio\istio-injection\argocd-ns.yaml file and it's not commented, don't change it. Changing this will delete your ArgoCD namespace, which will force you to delete everything from Kubernetes and redeploy.
- Go to your cinchy.terraform repository. Delete all existing folder structure except for the
.gitfile. - Go to your cinchy.devops.automation repository. Delete all existing folder structure except for the
.gitfile and your deployment.json.
Download k8s template
- Open the
Kubernetes Deployment Template v5.17.x.zipand place the files into their respective cinchy.kubernetes, cinchy.argocd, cinchy.terraform and cinchy.devops.automation repositories.
Secrets
- If your existing environments were not previously using Azure Key Vault or AWS Secrets Manager on EKS/AKS, and you have enabled them during this upgrade, please ensure the required secrets are created. Otherwise no action is needed.
Deployment JSON Update
-
Go to the new
aws.json/azure.jsonfiles and compare them with your currentdeployment.jsonfile. All additional fields in the newaws.json/azure.jsonfiles should be added to your currentdeployment.json. -
Update the Kubernetes version in your
deployment.json. To upgrade AKS/EKS to version 1.32, you must follow the required upgrade sequence by progressing through each minor version sequentially. For example, upgrading from1.29would require first upgrading to1.30, then1.31, and finally to1.32. -
Open a shell/terminal from the cinchy.devops.automations directory and execute the following command:
dotnet Cinchy.DevOps.Automations.dll "deployment.json"
Update Cinchy Instance
-
If there were any changes in your cinchy.argocd repository you may need to redeploy ArgoCD. Launch a shell/terminal with the working directory set to the root of the cinchy.argocd repository.
-
Execute the following command to deploy ArgoCD:
bash deploy_argocd.sh -
Validate ArgoCD pods are running.
-
Execute the following command to deploy/update cluster components and Cinchy components:
bash deploy_cluster_components.sh
bash deploy_cinchy_components.sh
Commit Changes
- Commit changes to Git for all relevant repositories.
- Refresh applications in the ArgoCD console if required.
- All users must log out and back in to your Cinchy environment in order for the changes to properly take effect.
Upgrade AWS EKS and Azure AKS
The following methods can be used upgrade the AWS EKS and Azure AKS versions from 1.27 to 1.32.
- For AWS export credentials and for Azure run the
az logincommand, if required. - To perform terraform operations, the cluster directory must be the working directory during execution.
- The AWS deployment updates a folder named
eks_clusterin the Terraform > AWS directory. Within that directory is a subdirectory with the same name as the created cluster. - The Azure deployment updates a folder named
aks_clusterWithin the Terraform > Azure directory. Within that directory is a subdirectory with the same name as the created cluster.
- The AWS deployment updates a folder named
-
Go to your cinchy.devops.automations repository and change AKS/EKS version in
deployment.json(or<cluster name>.json) within the same directory. -
From a shell/terminal, navigate to the cinchy.devops.automations directory location and execute the following command:
dotnet Cinchy.DevOps.Automations.dll "deployment.json" -
Run the command below to start the upgrade process. Make sure to verify before you select yes to upgrade the process. This shouldn't delete or destroy any data. It runs an in-place deployment that will update the Kubernetes version.
bash create.sh
Before accepting the change, verify that it meets your expectations and ensures the protection of your database and any other resources. This command will create, update, or destroy vnet, subnet, AKS cluster, and AKS node groups. Make sure to review the changes before proceeding.