workload-identity-webhook
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
| Parameter | Description | Default |
|---|---|---|
| replicaCount | The number of azure-workload-identity replicas to deploy for the webhook | 2 |
| image.repository | Image repository | mcr.microsoft.com/oss/v2/azure/workload-identity/webhook |
| image.pullPolicy | Image pullPolicy | IfNotPresent |
| image.release | The image release tag to use | Current release version: v1.6.3 |
| imagePullSecrets | Image pull secrets to use for retrieving images from private registries | [] |
| nodeSelector | The node selector to use for pod scheduling | kubernetes.io/os: linux |
| resources | The resource request/limits for the container image | limits: 100m CPU, 30Mi, requests: 100m CPU, 20Mi |
| affinity | The node affinity to use for pod scheduling | {} |
| topologySpreadConstraints | The topology spread constraints to use for pod scheduling | [] |
| tolerations | The tolerations to use for pod scheduling | [] |
| service.type | Service type | ClusterIP |
| service.port | Service port | 443 |
| service.targetPort | Service target port | 9443 |
| azureTenantID | [REQUIRED] Azure tenant ID | `` |
| azureEnvironment | Azure Environment | AzurePublicCloud |
| logLevel | The log level to use for the webhook manager. In order of increasing verbosity: unset (empty string), info, debug, trace and all. | info |
| metricsAddr | The address to bind the metrics server to | :8095 |
| metricsBackend | The metrics backend to use (prometheus) | prometheus |
| priorityClassName | The priority class name for webhook manager | system-cluster-critical |
| mutatingWebhookAnnotations | The annotations to add to the MutatingWebhookConfiguration | {} |
| podLabels | The labels to add to the azure-workload-identity webhook pods | {} |
| podAnnotations | The annotations to add to the azure-workload-identity webhook pods | {} |
| extraEnv | Additional environment variables to set on the webhook container. The chart reserves POD_NAMESPACE; reusing it will fail admission as a duplicate env name. | [] |
| extraVolumes | Additional volumes to add to the webhook pod. The chart reserves the volume name cert; reusing it will fail admission as a duplicate volume name. | [] |
| extraVolumeMounts | Additional 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. | [] |
| mutatingWebhookNamespaceSelector | The namespace selector to further refine which namespaces will be selected by the webhook. | {} |
| podDisruptionBudget.minAvailable | The minimum number of pods that must be available for the webhook to be considered available | 1 |
| podDisruptionBudget.maxUnavailable | The maximum number of pods that may be unavailable for the webhook to be considered available | nil |
| revisionHistoryLimit | The number of old ReplicaSets to retain for the webhook deployment | 10 |
| customTokenEndpoint.annotationSuffix | Suffix for the custom token endpoint annotation (e.g. results in azure.workload.identity/use-<suffix>) | "" |
| customTokenEndpoint.audience | Audience for service account tokens used with the custom token endpoint | "" |
| customTokenEndpoint.azureKubernetesCaData | The CA data to use for the custom token endpoint | "" |
| customTokenEndpoint.azureKubernetesSniName | The SNI name to use for the custom token endpoint | "" |
| customTokenEndpoint.azureKubernetesTokenProxy | The custom token endpoint to be configured in the workloads | "" |
| customTokenEndpoint.azureKubernetesCAConfigMapName | The name of the ConfigMap containing the CA data for the custom token endpoint. The key needs to be ca.crt. | "" |
| customTokenEndpoint.azureKubernetesCACTBSignerName | The name of the cluster trust bundle signer for the custom token endpoint | "" |
| customTokenEndpoint.azureKubernetesCACTBLabelSelector | The 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartworkload-identity-webhook is pinned at v1.6.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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