gatekeeper

by joaquinito2051

Helm chartv0.6.11App 3.4.0-rc.1

Gatekeeper - Policy Controller for Kubernetes

About this chart

Gatekeeper

Gatekeeper, the Policy Controller for Kubernetes.

Prerequisites

  • Kubernetes 1.14 (or newer) for validating and mutating webhook admission controller support.

Overview

This helm chart installs Gatekeeper as a Kubernetes admission controller. Gatekeeper is a validating (mutating TBA) webhook that enforces CRD-based policies executed by Open Policy Agent, a policy engine for Cloud Native environments hosted by CNCF as an incubation-level project.

Kick the tires

If you just want to see something run, install the chart without any configuration.

helm repo add gatekeeper https://open-policy-agent.github.io/gatekeeper/charts
helm install gatekeeper/gatekeeper --generate-name

You can then follow the instructions here to learn how to use Gatekeeper.

Configuration

All configuration settings are contained and described in values.yaml.

ParameterDescriptionDefault
portPort for gateekeper pod to listen on8443
service.annotationsService annotations
service.typeService type"ClusterIP"
service.portService port443
admissionControllerFailurePolicyAdmission controller failure policy"Ignore"
admissionControllerNamespaceSelector.matchExpressionsAdmission controller namespace selector expressions[]
admissionControllerObjectSelector.matchExpressionsAdmission controller object selector expressions[]
admissionControllerObjectSelector.matchLabelsAdmission controller object label selector[]
webhook.certManager.enabledSet up the webhook certificates using cert-managerfalse
auditIntervalThe frequency with which audit is run60
constraintViolationsLimitThe maximum # of audit violations reported on a constraint20
auditFromCacheTake the roster of resources to audit from the OPA cachefalse
auditChunkSizeChunk size for listing cluster resources for audit (alpha feature)0
disableValidatingWebhookDisable ValidatingWebhookfalse
emitAdmissionEventsEmit K8s events in gatekeeper namespace for admission violations (alpha feature)false
emitAuditEventsEmit K8s events in gatekeeper namespace for audit violations (alpha feature)false
logLevelMinimum log levelINFO
image.pullPolicyThe image pull policyIfNotPresent
image.repositoryImage repositoryopenpolicyagent/gatekeeper
image.releaseThe image release tag to useversion
image.pullSecretsSpecify an array of imagePullSecrets[]
audit.resourcesThe resource request/limits for the container imagelimits: 1 CPU, 512Mi, requests: 100mCPU, 256Mi
controllerManager.resourcesThe resource request/limits for the container imagelimits: 1 CPU, 512Mi, requests: 100mCPU, 256Mi
nodeSelectorThe node selector to use for pod schedulingkubernetes.io/os: linux
affinityThe node affinity to use for pod scheduling{}
tolerationsThe tolerations to use for pod scheduling[]
replicasThe number of Gatekeeper replicas to deploy for the webhook1
podAnnotationsThe annotations to add to the Gatekeeper podscontainer.seccomp.security.alpha.kubernetes.io/manager: runtime/default

Deploy gatekeeper with OpenTenant

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