Skip to content
CKACluster Architecture, Installation & ConfigurationSingle nodeMedium

etcd snapshot backup

Scenario cka-arc-003 · about 8 minutes · 6 points · 2 grader checks

Take a snapshot of the cluster's etcd datastore and store it as a file on the control plane node.

  • etcd
  • backup
  • etcdctl
  • control-plane

What you will practise

  • Locate etcd endpoint and certificate paths on a kubeadm control plane
  • Create an etcd snapshot with etcdctl
  • Verify a snapshot file is valid

Start this lab

With the CLI installed and signed in, this command provisions a single node cluster on your Mac, applies the scenario setup and prints the task below.

goldenkube start cka-arc-003

Task

The task text exactly as the CLI shows it. Solve it on the cluster, then run goldenkube submit.

Take a snapshot of the cluster's etcd and save it to the file /opt/etcd-backup.db on the control plane node (exam-cp1). etcd listens on https://127.0.0.1:2379. Use the kubeadm etcd certificates in /etc/kubernetes/pki/etcd (ca.crt, server.crt, server.key). The snapshot file must be a valid, non-empty etcd snapshot.

Requirements and details

Certification
CKA · Certified Kubernetes Administrator
Domain
Cluster Architecture, Installation & Configuration
Difficulty
Medium
Cluster topology
Single node
Cluster features
None beyond the base cluster
Recommended time
8 minutes
Points
6
Grader checks
2
Kubernetes version
1.37
Minimum CLI version
0.1.0
Scenario version
1
Published

Grading runs locally: 2 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.

CKACluster Architecture, Installation & ConfigurationMedium

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

CKACluster Architecture, Installation & ConfigurationMedium

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

CKACluster Architecture, Installation & ConfigurationEasy

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

CKACluster Architecture, Installation & ConfigurationMedium

Static Pod on the control plane

Run a Pod directly through the kubelet by placing a manifest in the static pod directory.

Single node · ~7 min · 6 points

  • static-pod
  • kubelet
  • control-plane
  • manifests

goldenkube start cka-arc-005

Independent community project, not affiliated with or endorsed by CNCF or The Linux Foundation. Lab results are practice feedback, not an exam score.