kube-bench
Helm chart to deploy run kube-bench as a cronjob on aks, gke or eks.
About this chart
kube-bench
Helm chart to deploy run kube-bench as a cronjob on aks, gke or eks.
Homepage: https://github.com/aquasecurity/kube-bench
How to install this chart
A simple install with default values, latest chart version and generated name:
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/kube-bench
To install a specific version of this chart:
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/kube-bench --version 0.1.17
To install the chart with the release name my-release:
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/kube-bench
To install with some set values:
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/kube-bench --set values_key1=value1 --set values_key2=value2
To install with custom values file:
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/kube-bench -f values.yaml
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| concurrencyPolicy | string | "Forbid" | |
| cronjob.command | list | [] | |
| cronjob.schedule | string | "0 0 1 * *" | |
| extraLabels | object | {} | |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "aquasec/kube-bench" | |
| image.tag | string | "v0.8.0" | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podLabels | object | {} | |
| provider | string | "eks" | |
| resources | object | {} | |
| securityContext | object | {} | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | false | |
| tolerations | list | [] | |
| volumeMounts[0].mountPath | string | "/var/lib/kubelet" | |
| volumeMounts[0].name | string | "var-lib-kubelet" | |
| volumeMounts[0].readOnly | bool | true | |
| volumeMounts[1].mountPath | string | "/etc/systemd" | |
| volumeMounts[1].name | string | "etc-systemd" | |
| volumeMounts[1].readOnly | bool | true | |
| volumeMounts[2].mountPath | string | "/etc/kubernetes" | |
| volumeMounts[2].name | string | "etc-kubernetes" | |
| volumeMounts[2].readOnly | bool | true | |
| volumes[0].hostPath.path | string | "/var/lib/kubelet" | |
| volumes[0].name | string | "var-lib-kubelet" | |
| volumes[1].hostPath.path | string | "/etc/systemd" | |
| volumes[1].name | string | "etc-systemd" | |
| volumes[2].hostPath.path | string | "/etc/kubernetes" | |
| volumes[2].name | string | "etc-kubernetes" |
Maintainers
| Name | Url | |
|---|---|---|
| goelankitt | https://github.com/goelankitt |
Chart source and versions
Chart source: github.com/deliveryhero/helm-charts/kube-bench
Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/kube-bench
Deploy kube-bench with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-bench on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkube-bench is pinned at v0.1.17 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply