0
0
Kubernetesdevops~20 mins

High availability cluster setup in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
High Availability Kubernetes Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Kubernetes Control Plane High Availability

Which component is not typically replicated to achieve high availability in a Kubernetes control plane setup?

AController Manager
Bkubelet
CAPI Server
Detcd
Attempts:
2 left
💡 Hint

Think about which component runs on worker nodes rather than control plane nodes.

💻 Command Output
intermediate
2:00remaining
Check etcd Cluster Health in HA Setup

You run the command etcdctl endpoint health on a 3-node etcd cluster. What output indicates all nodes are healthy?

Kubernetes
etcdctl endpoint health
Aendpoint https://10.0.0.1:2379 is healthy: successfully committed proposal
Bendpoint https://10.0.0.1:2379 is unhealthy: failed to connect
Cerror: no endpoints found
Dendpoint https://10.0.0.1:2379 is healthy: failed to commit proposal
Attempts:
2 left
💡 Hint

Healthy means the node successfully processes requests.

Configuration
advanced
3:00remaining
Load Balancer Configuration for HA Kubernetes API Servers

Which load balancer configuration snippet correctly balances traffic to three Kubernetes API servers on port 6443?

A
frontend kubernetes-frontend
  bind *:6443
  default_backend kubernetes-backend
backend kubernetes-backend
  server master1 10.0.0.1:6443
  server master2 10.0.0.2:6443
  server master3 10.0.0.3:6443
B
frontend kubernetes-frontend
  bind *:6443
  default_backend kubernetes-backend
backend kubernetes-backend
  server master1 10.0.0.1:8080 check
  server master2 10.0.0.2:8080 check
  server master3 10.0.0.3:8080 check
C
frontend kubernetes-frontend
  bind *:6443
  default_backend kubernetes-backend
backend kubernetes-backend
  server master1 10.0.0.1:6443 check
  server master2 10.0.0.2:6443 check
  server master3 10.0.0.3:6443 check
D
frontend kubernetes-frontend
  bind *:6443
  default_backend kubernetes-backend
backend kubernetes-backend
  server master1 10.0.0.1:6443 check
  server master2 10.0.0.2:6443
  server master3 10.0.0.3:6443 check
Attempts:
2 left
💡 Hint

Health checks help detect unhealthy API servers.

Troubleshoot
advanced
3:00remaining
Diagnosing Kubernetes API Server Failover Issue

In a 3-master HA Kubernetes cluster, the API server on master2 is down. The load balancer still sends traffic to master2, causing failures. What is the most likely cause?

AThe load balancer does not have health checks configured for master2
Betcd cluster is unhealthy
Ckubelet on master2 is not running
DController Manager is not running on master2
Attempts:
2 left
💡 Hint

Focus on how the load balancer detects server health.

🔀 Workflow
expert
4:00remaining
Steps to Add a New Master Node to an Existing HA Kubernetes Cluster

What is the correct order of steps to add a new master node to an existing high availability Kubernetes cluster?

A2,1,3,4
B1,3,2,4
C1,2,4,3
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about the dependencies: components must be installed before joining clusters, and load balancer updated last.