Skip to content

mritunjaysharma394/kube-bench-adapter-helm-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

kube-bench-adapter

Version: 0.1.5 Type: application AppVersion: 1.16.0

The kube-bench adapter periodically runs a CIS benchmark check using cron-job with a tool called kube-bench and produces a cluster-wide policy report based on the Policy Report Custom Resource Definition

Installation

# 1. Add Helm Repository

helm repo add charts https://mritunjaysharma394.github.io/kube-bench-adapter-helm-chart/

# 2. Install kube-bench adapter from charts helm repo with desired parameters.

helm install kube-bench-adapter charts/kube-bench-adapter --set kubeBench.name="test-1" --set kubeBench.yaml="job.yaml"

# 3. Watch the jobs
kubectl get jobs --watch

# 4. Check policyreports created through the custom resource
kubectl get clusterpolicyreports

Values

Key Type Default Description
cronjob.schedule string "\"*/2 * * * *\"" cronjob schedule, default is 2 mins.
fullnameOverride string ""
image.pullPolicy string "Always"
image.repository string "mritunjay394/policyreport" image repository of kube-bench-adapter
image.tag string "v0.1.0" tag of image repository of kube-bench-adapter
imagePullSecrets list []
ingress.annotations object {}
ingress.enabled bool false
ingress.hosts[0].host string "chart-example.local"
ingress.hosts[0].paths[0].backend.serviceName string "chart-example.local"
ingress.hosts[0].paths[0].backend.servicePort int 80
ingress.hosts[0].paths[0].path string "/"
ingress.tls list []
kubeBench.category string "CIS Benchmarks" category of the policy report
kubeBench.command string "policyreport"
kubeBench.kubebenchImg string "aquasec/kube-bench:v0.6.6" kube-bench image used for the adapter
kubeBench.kubeconfig string "$HOME/.kube/config" absolute path to the kubeconfig file
kubeBench.name string "kube-bench" name of kube-bench adapter cluster policy report
kubeBench.namespace string "default" specifies namespace where kube-bench job will run
kubeBench.yaml string "job.yaml" name of provider of YAML for kube-bench job, allowed values: job.yaml, job-master.yaml, job-node.yaml, job-ack.yaml, job-aks.yaml, job-eks-asff.yaml, job-eks.yaml, job-gke.yaml, job-iks.yaml
nameOverride string ""
rbac.create bool true
replicaCount int 1
service.port int 80
service.type string "NodePort"
serviceAccount.annotations object {}
serviceAccount.create bool true
serviceAccount.name string ""