πŸš€ Kubernetes Migration Exercises

Practice migrating deployments from USA to EU regions

Exercise 1: Update Region Flag via UI

Change the deployment region from US to EU using the dashboard interface.

Deployment Management Dashboard

Active
πŸ‡ΊπŸ‡Έ
United States
us-east-1

Exercise 2: Edit YAML Configuration

Update all instances of 'us-east-1' to 'cyso-eu-west' in the deployment YAML.

πŸ“‹ Instructions:

Find and replace all instances of us-east-1 with cyso-eu-west. There are 5 locations to update:

  • Metadata annotations (2 locations)
  • Pod template annotations (1 location)
  • Node affinity values (1 location)
  • Container environment variable (1 location)
Progress: 0/5 instances of 'us-east-1' replaced with 'cyso-eu-west'

Exercise 3: kubectl Migration Commands

Use kubectl commands to migrate a deployment between cluster contexts.

πŸ“‹ Migration Process Overview:

To migrate a Kubernetes deployment between clusters, you'll first export the deployment configuration from the source cluster, then delete the original deployment to prevent conflicts. Next, switch your kubectl context to the target cluster and verify the context change. Finally, apply the deployment to the new cluster and verify it's running properly by checking both the deployment and pod status.

πŸ’‘ Type help in the terminal for the next command hint

kubectl@us-east-1:~$