workload-identity-webhook

by Microsoft Azure

Helm chartv1.6.3App v1.6.3Verified publisher

A Helm chart to install the azure-workload-identity webhook

About this chart

Azure AD Workload Identity Helm Chart

Get Repo

helm repo add azure-workload-identity https://azure.github.io/azure-workload-identity/charts
helm repo update

Install Chart

# Helm install with azure-workload-identity-system namespace already created
helm install -n azure-workload-identity-system [RELEASE_NAME] azure-workload-identity/workload-identity-webhook

# Helm install and create namespace
helm install -n azure-workload-identity-system [RELEASE_NAME] azure-workload-identity/workload-identity-webhook --create-namespace

See parameters below.

See helm install for command documentation.

Upgrade Chart

helm upgrade -n azure-workload-identity-system [RELEASE_NAME] azure-workload-identity/workload-identity-webhook

Parameters

ParameterDescriptionDefault
replicaCountThe number of azure-workload-identity replicas to deploy for the webhook2
image.repositoryImage repositorymcr.microsoft.com/oss/v2/azure/workload-identity/webhook
image.pullPolicyImage pullPolicyIfNotPresent
image.releaseThe image release tag to useCurrent release version: v1.6.3
imagePullSecretsImage pull secrets to use for retrieving images from private registries[]
nodeSelectorThe node selector to use for pod schedulingkubernetes.io/os: linux
resourcesThe resource request/limits for the container imagelimits: 100m CPU, 30Mi, requests: 100m CPU, 20Mi
affinityThe node affinity to use for pod scheduling{}
topologySpreadConstraintsThe topology spread constraints to use for pod scheduling[]
tolerationsThe tolerations to use for pod scheduling[]
service.typeService typeClusterIP
service.portService port443
service.targetPortService target port9443
azureTenantID[REQUIRED] Azure tenant ID``
azureEnvironmentAzure EnvironmentAzurePublicCloud
logLevelThe log level to use for the webhook manager. In order of increasing verbosity: unset (empty string), info, debug, trace and all.info
metricsAddrThe address to bind the metrics server to:8095
metricsBackendThe metrics backend to use (prometheus)prometheus
priorityClassNameThe priority class name for webhook managersystem-cluster-critical
mutatingWebhookAnnotationsThe annotations to add to the MutatingWebhookConfiguration{}
podLabelsThe labels to add to the azure-workload-identity webhook pods{}
podAnnotationsThe annotations to add to the azure-workload-identity webhook pods{}
extraEnvAdditional environment variables to set on the webhook container. The chart reserves POD_NAMESPACE; reusing it will fail admission as a duplicate env name.[]
extraVolumesAdditional volumes to add to the webhook pod. The chart reserves the volume name cert; reusing it will fail admission as a duplicate volume name.[]
extraVolumeMountsAdditional volume mounts to add to the webhook container. The chart reserves the mount name cert (mounted at /certs); reusing it will fail admission as a duplicate volumeMount name.[]
mutatingWebhookNamespaceSelectorThe namespace selector to further refine which namespaces will be selected by the webhook.{}
podDisruptionBudget.minAvailableThe minimum number of pods that must be available for the webhook to be considered available1
podDisruptionBudget.maxUnavailableThe maximum number of pods that may be unavailable for the webhook to be considered availablenil
revisionHistoryLimitThe number of old ReplicaSets to retain for the webhook deployment10
customTokenEndpoint.annotationSuffixSuffix for the custom token endpoint annotation (e.g. results in azure.workload.identity/use-<suffix>)""
customTokenEndpoint.audienceAudience for service account tokens used with the custom token endpoint""
customTokenEndpoint.azureKubernetesCaDataThe CA data to use for the custom token endpoint""
customTokenEndpoint.azureKubernetesSniNameThe SNI name to use for the custom token endpoint""
customTokenEndpoint.azureKubernetesTokenProxyThe custom token endpoint to be configured in the workloads""
customTokenEndpoint.azureKubernetesCAConfigMapNameThe name of the ConfigMap containing the CA data for the custom token endpoint. The key needs to be ca.crt.""
customTokenEndpoint.azureKubernetesCACTBSignerNameThe name of the cluster trust bundle signer for the custom token endpoint""
customTokenEndpoint.azureKubernetesCACTBLabelSelectorThe label selector for the cluster trust bundle signer for the custom token endpoint""

Contributing Changes

This Helm chart is autogenerated from the Azure AD Workload Identity static manifest. The generator code lives under third_party/open-policy-agent/gatekeeper/helmify. To make modifications to this template, please edit kustomization.yaml, kustomize-for-helm.yaml and replacements.go under that directory and then run make manifests. Your changes will show up in the manifest_staging directory and will be promoted to the root charts directory the next time an azure-workload-identity release is cut.

Deploy workload-identity-webhook with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has workload-identity-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 chartworkload-identity-webhook is pinned at v1.6.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