Study. uk . com
  1. Home
  2. All questions
  3. Question 485

CKA study material · question 485 of 1000

How is the whole cluster's state captured into a directory for offline analysis?

  1. kubectl get all --all-namespaces -o yaml
  2. kubectl describe cluster
  3. etcdctl snapshot save
  4. kubectl cluster-info dump --output-directory=<path>
Show the answer

Answer: D. kubectl cluster-info dump --output-directory=<path>

cluster-info dump can write the current cluster state into a directory in one shot.

Source: kubectl Quick Reference (Kubernetes) — Interacting with Nodes and cluster

Challenge yourself on this topic → Study as cards