Upgrading the Anjuna Nitro Kubernetes Tools
In the previous sections, you learned how to create an EKS cluster and automatically convert Kubernetes Pods into Nitro Enclaves. In this section, you will learn how to upgrade your EKS cluster with the new version of the Anjuna Nitro Kubernetes Tools without recreating the cluster.
Prerequisites
You must have created an EKS cluster using the Anjuna Nitro Kubernetes Tools (see section Creating an AWS EKS cluster).
If you destroyed the cluster (using the ./anjuna-k8s.sh --destroy-eks-cluster command),
you can recreate a new cluster by following the instructions in
Getting Started with the Anjuna Nitro Kubernetes tools.
|
Download the Anjuna Nitro Kubernetes Tools
-
Create a new directory for the new version of the Anjuna Nitro Kubernetes Tools:
$ mkdir <new-directory> $ cd <new-directory>
Contact support@anjuna.io to get the Anjuna Nitro Kubernetes package — anjuna-k8s-toolset.1.20.0007.tar.gz
-
Set up a working environment:
$ tar xf anjuna-k8s-toolset.1.20.0007.tar.gz $ ./anjuna-k8s.sh --setup-workspace
Update the EKS cluster with the new Anjuna Nitro Kubernetes Tools
-
Import the updated Docker images for the Anjuna Nitro Kubernetes Tools:
$ ./anjuna-k8s.sh --import-images
-
Upload the Anjuna Nitro Kubernetes Docker images to ECR:
$ ./anjuna-k8s.sh --push-images-ecr
-
Deploy the Anjuna Webhook:
$ ./anjuna-k8s.sh --deploy-webhook
Congratulations, you have upgraded your EKS cluster with the latest version of the Anjuna Nitro Kubernetes Tools.
If you have some existing running Nitro enclaves, you must stop those Pods and re-deploy them for the new version of the Anjuna Nitro Runtime to be active in Nitro Enclaves. |