kubernetes-policy-controller

by Helm

Helm chartv0.1.2App 1.2

A Helm chart for Kubernetes Policy Controller and the open policy agent to manage your cluster policies

About this chart

Kubernetes Policy Controller

  • Source: https://github.com/open-policy-agent/kubernetes-policy-controller

Introduction

This chart creates a Kubernetes Policy Controller deployment on a Kubernetes cluster using the Helm package manager.

See also the docs for Kubernetes Policy Controller.

Installing the Chart

Install from remote URL with the release name kubernetes-policy-controller into namespace opa:

$ helm upgrade -i kubernetes-policy-controller kiwigrid/kubernetes-policy-controller --namespace opa

Uninstalling the Chart

To uninstall/delete the kubernetes-policy-controller deployment:

$ helm delete kubernetes-policy-controller --purge

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the kubernetes policy chart controller and their default values.

ParameterDescriptionDefault
opa.imageopa imageopenpolicyagent/opa
opa.imageTagopa image tag0.10.1
opa.imagePullPolicyImage pull policyIfNotPresent
kubeMgmt.imagekube mgmt imageopenpolicyagent/kube-mgmt
kubeMgmt.imageTagkube mgmt image tag0.6
kubeMgmt.imagePullPolicyImage pull policyIfNotPresent
kubernetesPolicyController.imageopa imagenikhilbh/kubernetes-policy-controller
kubernetesPolicyController.imageTaggcp service account controller image tag1.2
kubernetesPolicyController.imagePullPolicyImage pull policyIfNotPresent
admissionControllerKindadmission controller kindMutatingWebhookConfiguration
admissionControllerFailurePolicyadmission controller failure policyIgnore
generateAdmissionControllerCertsauto generate admission controller certstrue
admissionControllerCAadmission controller ca only used if generateAdmissionControllerCerts is false
admissionControllerCertadmission controller cert only used if generateAdmissionControllerCerts is false
admissionControllerKeyadmission controller key only used if generateAdmissionControllerCerts is false
admissionControllerRulesadmission controller rules

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

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml kiwigrid/kubernetes-policy-controller

Tip: You can use the default values.yaml

Deploy kubernetes-policy-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubernetes-policy-controller 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 chartkubernetes-policy-controller is pinned at v0.1.2 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