For this recipe, we need to have a Kubernetes cluster ready and the Kubernetes command-line tool kubectl installed.
Clone the k8sdevopscookbook/src repository to your workstation to use the manifest files in the chapter9 directory, as follows:
$ git clone https://github.com/k8sdevopscookbook/src.git
$ cd src/chapter9/cis
Some of the tests target Kubernetes nodes and can only be executed on fully self-managed clusters where you have control over the master nodes. Therefore, managed clusters such as EKS, GKE, AKS, and so on will not be able to execute all the tests and require different job descriptions or parameters to execute the tests. These will be mentioned when necessary.