In this blog, We will see how to install Kubescape and how to identify the security issues and best practices in the Kubernetes cluster.
Kubescape is a security and compliance tool for Kubernetes, it helps to identify risk analysis, security compliance, and misconfiguration in the Kubernetes cluster.
Requirements,
1. Kubernetes cluster
2. kubectl
Step 1: Install kubescape on a Linux machine.
I have one master and one node k3s cluster to experiment with kubescape.
Execute the below command to install kubscape on the Linux machine,
curl -s https://raw.githubusercontent.com/kubescape/kubescape/master/install.sh | /bin/bash
Within a few seconds, it will install.
Step 2: Scan the Kubernetes cluster
I have my cluster configuration in the default path.
Scan Kubernetes cluster with the below command,
kubescape scan --enable-host-scan --verbose
It will scan all the resources in the Kubernetes cluster and give the current status of the cluster,
Here is the number of vulnerabilities found in my cluster, Need to check them one by one and fix them.
We can scan based on the framework available for kubescape.That's all, Today we have seen how to install kubescape tool and scan kubernetes cluster.
Post a Comment