kube-image-webhook

by djcass44

Helm chartv0.1.3App v0.2.0Verified publisher

Kubernetes Admission Controller for rewriting container image references.

About this chart

Kube Image Webhook

This chart provides a deployment of the Kube Image Webhook.

Requirements

  • Helm 3
  • Kubernetes 1.16+

Configuration

ParameterDescriptionDefault
replicaCountNumber of pods to run3
image.registryRegistry to pull fromregistry.gitlab.com
image.repositoryautokubeops/kube-image-webhook
image.tag``
image.pullPolicyIfNotPresent
imagePullSecretsSecrets to pull the image from a private registry[]
podAnnotationsPod annotations{}
config.imagesKube Image Webhook configuration[]
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate[]
mutatingWebhookConfiguration.enabledEnable or disable the MutatingWebhookConfigurationtrue
mutatingWebhookConfiguration.namespaceSelectorSelector to restrict the namespaces the webhook will watch.{}
mutatingWebhookConfiguration.objectSelectorSelector to restrict the objects that the webhook will watch.{}
certs.secretNameName of the Secret containing tls.crt and tls.key
certs.caBundleBase64-encoded Certificate Authority used to generate TLS certificates.
certmanager.enabledUse Cert Manager for certificate management.false
certmanager.issuer.nameName of the Cert Manager Issuer or ClusterIssuer to use.
certmanager.issuer.kindKind of the Cert Manager Issuer (e.g. Issuer or ClusterIssuer)
logLevelSet the logging level. Higher is more.1

Images

images:
  - source: index.docker.io # catchall for docker.io and library images
    destination: registry.example.org
  - source: quay.io
    destination: harbor.corp.internal/quay.io

Certificates

Note: certs.* and certmanager.* are mutually exclusive and Cert Manager will be prioritised over standard cert provisioning.

Using Cert Manager is highly recommended:

certmanager:
  enabled: true
  issuer:
    name: my-issuer
    kind: ClusterIssuer

Deploy kube-image-webhook with OpenTenant

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