Skip to content

Zero Downtime Upgrade for EKS cluster

0

How can I perform a Zero downtime EKS cluster upgrade used to run Temporal. I identified 2 possible downtime scenarios when performing the upgrade inplace:

  1. When control plane upgrade is taking place, if the Temporal worker pods go down no controller manager in place.
  2. If the replacement nodes are not up and running, the worker pods won't have target to be shifted to.

Please suggest possible solutions for the following situation.

asked 10 months ago804 views

2 Answers
0

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:

  1. 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.

  2. Configure Pod Disruption Budgets (PDBs) for your Temporal components to ensure a minimum number of pods remain available during node draining.

  3. 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

answered 10 months ago

AWS
SUPPORT ENGINEER

reviewed 10 months ago

0

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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.