0
0
AWScloud~15 mins

Why managed Kubernetes matters in AWS - See It in Action

Choose your learning style9 modes available
Why Managed Kubernetes Matters
📖 Scenario: You are working in a company that wants to deploy applications using Kubernetes. You want to understand why using a managed Kubernetes service like Amazon EKS (Elastic Kubernetes Service) is helpful compared to setting up Kubernetes yourself.
🎯 Goal: Learn the basic setup of a Kubernetes cluster configuration and see how managed Kubernetes simplifies cluster management.
📋 What You'll Learn
Create a dictionary with Kubernetes cluster details
Add a configuration variable for cluster version
Write a function to display cluster info
Print the cluster information
💡 Why This Matters
🌍 Real World
Companies use managed Kubernetes services like Amazon EKS to avoid the complex setup and maintenance of Kubernetes clusters. This saves time and reduces errors.
💼 Career
Understanding managed Kubernetes is important for DevOps roles because it helps in deploying and managing containerized applications efficiently in the cloud.
Progress0 / 4 steps
1
Create Kubernetes cluster details
Create a dictionary called cluster_info with these exact entries: 'name': 'my-eks-cluster', 'nodes': 3, 'region': 'us-west-2'
AWS
Need a hint?

Use curly braces to create a dictionary with the keys and values exactly as shown.

2
Add Kubernetes version configuration
Add a variable called k8s_version and set it to the string '1.27'
AWS
Need a hint?

Assign the string '1.27' to the variable k8s_version.

3
Write a function to display cluster info
Write a function called show_cluster_info that takes cluster and version as parameters and returns a string formatted as: "Cluster my-eks-cluster in us-west-2 runs Kubernetes version 1.27 with 3 nodes."
AWS
Need a hint?

Use an f-string to format the output string with values from the cluster dictionary and version variable.

4
Print the cluster information
Write a print statement that calls show_cluster_info with cluster_info and k8s_version and prints the returned string
AWS
Need a hint?

Call the function with the correct arguments and print the result.