You are performing a security validation of a Kubernetes cluster using CIS Benchmarks. Which tool should you use to automate the verification of the 'etcd' configuration settings?
Trap 1: Use 'kubectl get pods' to check the etcd pod configuration.
This does not evaluate the security settings against a benchmark.
Trap 2: Perform a manual audit using 'etcdctl get --prefix /'.
This retrieves data, it does not validate the security configuration of the etcd process.
Trap 3: Use the 'kubectl describe nodes' command to check for node…
This does not specifically audit etcd configuration settings.
- A
Use 'kubectl get pods' to check the etcd pod configuration.
Why wrong: This does not evaluate the security settings against a benchmark.
- B
Run 'kube-bench --targets etcd' to perform the automated audit.
kube-bench is designed to run CIS benchmark checks, including specific targets like etcd.
- C
Perform a manual audit using 'etcdctl get --prefix /'.
Why wrong: This retrieves data, it does not validate the security configuration of the etcd process.
- D
Use the 'kubectl describe nodes' command to check for node hardening.
Why wrong: This does not specifically audit etcd configuration settings.