Module 9 - Kubernetes

Lab 1: Minikube Installation & Cluster Setup

  1. How do you install Minikube on your local machine?

  2. How do you start the Minikube cluster?

  3. How do you enable and access the Minikube dashboard?

  4. How do you verify the node status using kubectl?

  5. How do you verify the cluster status?


Lab 2: Create an EKS Cluster Using eksctl

  1. How do you create an EKS cluster using eksctl with two worker nodes?

  2. How do you configure kubectl to access the newly created EKS cluster?

  3. How do you verify cluster connectivity and node health?


Lab 3: Deploy and Scale Nginx

  1. How do you deploy a sample Nginx application using a Deployment YAML?

  2. How do you scale replicas from 1 to 5?

  3. How do you verify the deployment rollout status?

  4. How do you check rollout history and revisions?


Lab 4: Create and Test Kubernetes Services

  1. How do you create a ClusterIP service for the Nginx deployment?

  2. How do you create a NodePort service?

  3. How do you create a LoadBalancer service?

  4. How do you test application access for each service type?


Lab 5: Work With Kubernetes Namespaces

  1. How do you create a new namespace?

  2. How do you deploy resources inside the new namespace?

  3. How do you switch between namespaces using kubectl config set-context?

  4. How do you verify that resources are isolated in the namespace?


Lab 6: Implement Horizontal Pod Autoscaling

  1. How do you configure an HPA for an existing deployment?

  2. How do you generate CPU load to trigger scaling?

  3. How do you verify that pods scale up and scale down?


Lab 7: ConfigMaps & Secrets

  1. How do you create a ConfigMap?

  2. How do you create a Secret?

  3. How do you mount both into a Pod as environment variables?

  4. How do you mount them as volume mounts?

  5. How do you verify that the Pod reads the values properly?


Lab 8: StatefulSet & Persistent Volume Claims

  1. How do you create a StatefulSet using Persistent Volume Claims?

  2. How do you deploy a database such as MySQL or MongoDB using the StatefulSet?

  3. How do you verify that data persists after a pod restarts?

  4. How do you inspect the PV and PVC status?


Lab 9: Helm Installation & Chart Deployment

  1. How do you install Helm on your local machine?

  2. How do you add a Helm repository?

  3. How do you deploy a Helm chart (Nginx, Prometheus, or WordPress)?

  4. How do you override default Helm values with a custom values file?

  5. How do you verify the release status?


Lab 10: RBAC Configuration

  1. How do you create a Kubernetes service account?

  2. How do you create a Role that grants view-only access to a namespace?

  3. How do you bind the Role to the service account using a RoleBinding?

  4. How do you validate that the service account can only view resources and cannot modify them?

Last updated