kube-hunter

by kfirfer

Helm chartv1.0.5App 0.6.8

A Helm chart for Kube-hunter

About this chart

Kube-hunter Helm Chart

This directory contains a Kubernetes chart to deploy Kube-hunter.

Chart Details

This chart will do the following:

  • Create a CronJob which runs Kube-hunter in Pod mode.

Installing the Chart

To install the chart, use the following:

$ helm install stable/kube-hunter

Configuration

The following table lists the configurable parameters of the docker-registry chart and their default values.

ParameterDescriptionDefault
customArgumentsAdditional custom arguments to give to kube-hunter[]
image.pullPolicyContainer pull policyIfNotPresent
image.repositoryContainer image to useaquasec/kube-hunter
image.tagContainer image tag to deploy312
cronjob.scheduleSchedule for the CronJob0 1 * * *
cronjob.annotationsAnnotations to add to the cronjob{}
cronjob.concurrencyPolicy`AllowForbid
cronjob.failedJobsHistoryLimitSpecify the number of failed Jobs to keep1
cronjob.successfulJobsHistoryLimitSpecify the number of completed Jobs to keep1
pod.annotationsAnnotations to add to the pod{}
resourcesResource requests and limits{}
priorityClassNamepriorityClassNamenil

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Deploy kube-hunter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-hunter 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkube-hunter is pinned at v1.0.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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