- Lab
- A Cloud Guru
Strengthen Cluster Security with a CIS Kubernetes Benchmark
The CIS Kubernetes Benchmark is a useful tool for detcting potential security weakness in the configuration of your cluster. This lab will allow you to practice running the benchmark and addressing security concerns that it uncovers.
Path Info
Table of Contents
-
Challenge
Run kube-bench and Obtain a CIS Benchmark Report
- Run kube-bench for both the control plane and the worker.
- Save the control plane results to
/home/cloud_user/kube-bench-control.log
. - Save the worker results to
/home/cloud_user/kube-bench-worker.log
.
-
Challenge
Turn Off Profiling for the API Server, Controller Manager, and Scheduler
Make changes to the cluster configuration to fix the following failed tests in the CIS Benchmark output for the control plane.
- 1.2.17
- 1.3.2
- 1.4.1
-
Challenge
Set kubelet authn/authz to Use Webhook Mode
Make changes to the cluster configuration to fix test
4.2.2
in the CIS Benchmark output for the worker.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.