0
0
Kubernetesdevops~20 mins

Setting up a local cluster (minikube, kind) in Kubernetes - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
šŸŽ–ļø
Local Cluster Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
šŸ’» Command Output
intermediate
2:00remaining
Minikube Start Command Output
What is the expected output when you run minikube start on a system with Docker installed and no existing cluster?
Kubernetes
minikube start
A
šŸ˜„  minikube v1.30.1 on Ubuntu 22.04
✨  Using virtualbox driver
āŒ  VirtualBox is not installed
BError: minikube: command not found
C
šŸ˜„  minikube v1.30.1 on Ubuntu 22.04
āŒ  Unable to start cluster: Docker daemon not running
D
šŸ˜„  minikube v1.30.1 on Ubuntu 22.04
✨  Using the docker driver based on user configuration
šŸ‘  Starting control plane node minikube in cluster minikube
🐳  Preparing Kubernetes v1.27.3 on Docker 24.0.5
🚜  Pulling base image ...

šŸ„  Done! kubectl is now configured to use "minikube"
Attempts:
2 left
šŸ’” Hint
Think about what happens when minikube starts successfully with Docker driver.
🧠 Conceptual
intermediate
1:30remaining
Kind Cluster Configuration File Purpose
What is the main purpose of a kind cluster configuration YAML file?
ATo define the Kubernetes version, node roles, and networking settings for the local cluster
BTo configure the minikube VM resources like CPU and memory
CTo specify Docker container images to be deployed inside the cluster
DTo set up the kubeconfig file location for kubectl
Attempts:
2 left
šŸ’” Hint
Think about what you control when creating a kind cluster with a config file.
ā“ Troubleshoot
advanced
2:00remaining
Diagnosing Minikube Docker Driver Failure
You run minikube start --driver=docker but get the error: Docker daemon not running. What is the most likely cause?
AMinikube does not support Docker driver on your OS
BYour kubectl version is incompatible with minikube
CDocker service is not running on your machine
DYou need to install VirtualBox to use Docker driver
Attempts:
2 left
šŸ’” Hint
Check if Docker is running before starting minikube with Docker driver.
šŸ”€ Workflow
advanced
2:30remaining
Kind Cluster Creation Steps
Which sequence correctly describes the steps to create and use a kind cluster?
A1,2,3,4
B2,1,3,4
C1,3,2,4
D2,3,1,4
Attempts:
2 left
šŸ’” Hint
Think about what you do first before creating the cluster.
āœ… Best Practice
expert
3:00remaining
Best Practice for Persistent Storage in Minikube
What is the best practice to enable persistent storage for applications running in a minikube cluster?
AStore data inside container writable layers
BUse minikube's built-in hostPath provisioner with a PersistentVolume and PersistentVolumeClaim
CUse ephemeral emptyDir volumes for all storage needs
DInstall a cloud provider storage plugin inside minikube
Attempts:
2 left
šŸ’” Hint
Think about how to keep data safe even if pods restart in minikube.