- Newest
- Most votes
- Most comments
When upgrading an EKS cluster running Temporal, you can achieve zero downtime by carefully planning your upgrade strategy. Let me address your concerns and provide solutions:
For Control Plane Upgrades: The good news is that upgrading the EKS control plane typically doesn't cause downtime. According to AWS upgrade guidance, the control plane upgrade process is designed to maintain availability. Your Temporal workers should continue running during this phase without interruption.
For Worker Node Upgrades: This is where careful planning is needed. You have several options:
-
Use the default upgrade strategy for managed node groups, which creates new nodes before terminating old ones. This ensures capacity is always available for your Temporal workloads.
-
Configure Pod Disruption Budgets (PDBs) for your Temporal components to ensure a minimum number of pods remain available during node draining.
-
Consider implementing proper deployment configurations that can handle worker node evictions gracefully.
For a zero-downtime approach with managed node groups:
- Ensure your Temporal deployments have multiple replicas
- Configure PDBs to maintain minimum availability
- Let EKS handle the rolling upgrade of worker nodes, which includes:
- Cordoning nodes (marking as unschedulable)
- Draining pods properly
- Terminating old nodes only after new ones are ready
If you're using hybrid nodes, you can use a cutover migration strategy instead of in-place upgrades. This involves:
- Creating new hybrid nodes with the target Kubernetes version
- Migrating applications to the new nodes
- Removing old nodes only after verifying everything works
Remember that proper configuration of your Temporal deployments with appropriate replicas, anti-affinity rules, and PDBs is essential for maintaining availability during the upgrade process.
Sources
Community | Amazon EKS Upgrade Guidance (v1.25 to 1.26)
Understand each phase of node updates - Amazon EKS
Upgrade hybrid nodes for your cluster - Amazon EKS
Hi Sreesha,
I recently upgraded the production cluster from 1.32 to 1.33 with zero downtime. Below are the steps I followed:
1.Configured the Pod Disruption Budget (PDB) by setting the minimum available pods to 2 and added topology spread constraints. 2.Ensured that critical system components such as the Ingress Controller, Karpenter, and Cluster Autoscaler had their minimum replicas set to 2. 3.If managed through IaC, performed a rolling update. The recommended approach is:
- After the cluster upgrade, create a new node group.
- Gradually reduce the desired size of the old node group to 1:1.
- Once all pods have successfully migrated and are running, delete the old node group. 4.Added all the existing labels and configurations to the new node group to match the old one. 5.During the node creation or upgrade process, ensured that all add-ons were upgraded as well.
Note: The default node upgrade process typically takes longer compared to creating a new node group and performing a controlled migration.
Ref: https://docs.aws.amazon.com/eks/latest/best-practices/cluster-upgrades.html
answered 10 months ago
Relevant content
asked a year ago
asked 3 years ago
- AWS OFFICIALUpdated a year ago
