gcp-disk-compatibility-webhook
by Cast AI
GCP disk compatibility webhook adds node selectors to pods using disks so they would be scheuled on supported nodes
About this chart
gcp-disk-compatibility-webhook chart
Deploys the GCP disk compatibility webhook: a mutating admission webhook that pins pods to GCP nodes compatible with the disk types of the volumes they mount (adds volume.scheduling.cast.ai/<disk-type> node selectors on pod CREATE). Certificates are managed automatically by cert-controller (leader-elected rotation).
Permissions
The chart creates a ClusterRole (bound to the release's ServiceAccount) with the following grants. Review them before installing — they are cluster-scoped.
| Resource | Verbs | Why |
|---|---|---|
persistentvolumeclaims (cluster-wide) | get | Look up the PVCs mounted by an admitted pod |
storageclasses.storage.k8s.io (cluster-wide) | get | Resolve each PVC's storage class to its disk type |
mutatingwebhookconfigurations named gcp-disk-compatibility-webhook | get, update, patch | Inject and rotate the webhook's CA bundle |
mutatingwebhookconfigurations (cluster-wide) | list, watch | Read-only, cluster-wide: cert-controller's informer requires it to keep the CA bundle in sync. Note this makes the names, webhook service endpoints, and CA bundle values of all mutating webhook configurations in the cluster readable to the ServiceAccount. |
secrets (release namespace) | get, list, watch, create, update, patch | Store and rotate the webhook TLS certificate |
leases.coordination.k8s.io (release namespace) | get, list, watch, create, update, patch | Leader election for certificate rotation |
Values
| Key | Default | Description |
|---|---|---|
replicaCount | 2 | Webhook replicas (leader-elected cert rotation) |
image.repository / image.tag | ghcr.io/castai/gcp-disk-compatibility-webhook / .Chart.AppVersion | Webhook image |
webhookFailurePolicy | Ignore | Admission behavior if the webhook is unavailable |
podSecurityContext / securityContext | nonroot 65532, all capabilities dropped, read-only root filesystem, RuntimeDefault seccomp | Hardened by default |
Deploy gcp-disk-compatibility-webhook with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gcp-disk-compatibility-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 chartgcp-disk-compatibility-webhook is pinned at v0.3.1 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