Drain a node for maintenance
Scenario cka-arc-006 · about 7 minutes · 7 points · 4 grader checks
Safely take a worker node out of service by cordoning it and evicting its workload pods without deleting the node.
- drain
- cordon
- maintenance
- eviction
- daemonset
What you will practise
- Cordon a node
- Evict workloads with kubectl drain
- Handle DaemonSet-managed pods during a drain
Start this lab
With the CLI installed and signed in, this command provisions a two nodes cluster on your Mac, applies the scenario setup and prints the task below.
goldenkube start cka-arc-006Task
The task text exactly as the CLI shows it. Solve it on the cluster, then run goldenkube submit.
Requirements and details
- Certification
- CKA · Certified Kubernetes Administrator
- Domain
- Cluster Architecture, Installation & Configuration
- Difficulty
- Medium
- Cluster topology
- Two nodes
- Cluster features
- None beyond the base cluster
- Recommended time
- 7 minutes
- Points
- 7
- Grader checks
- 4
- Kubernetes version
- 1.37
- Minimum CLI version
- 0.1.0
- Scenario version
- 1
- Published
Grading runs locally: 4 state checks read your cluster when you submit; the scenario passes when every check passes. Hints, the reference solution and the check definitions are available only inside the CLI, not on this page.
More Cluster Architecture, Installation & Configuration labs
Namespaced RBAC: Role and RoleBinding for a ServiceAccount
Grant a ServiceAccount read access to pods in one namespace using a Role and a RoleBinding.
Single node · ~6 min · 6 points
- rbac
- role
- rolebinding
- serviceaccount
- namespace
goldenkube start cka-arc-001
Cluster-scoped RBAC: ClusterRole for listing nodes
Grant a namespaced ServiceAccount cluster-wide read access to nodes using a ClusterRole and ClusterRoleBinding.
Single node · ~6 min · 6 points
- rbac
- clusterrole
- clusterrolebinding
- serviceaccount
- nodes
goldenkube start cka-arc-002
etcd snapshot backup
Take a snapshot of the cluster's etcd datastore and store it as a file on the control plane node.
Single node · ~8 min · 6 points
- etcd
- backup
- etcdctl
- control-plane
goldenkube start cka-arc-003
Long-lived ServiceAccount token Secret
Create a ServiceAccount and a controller-populated long-lived token Secret bound to it.
Single node · ~6 min · 5 points
- serviceaccount
- secret
- token
- authentication
goldenkube start cka-arc-004
Independent community project, not affiliated with or endorsed by CNCF or The Linux Foundation. Lab results are practice feedback, not an exam score.