gcp-disk-compatibility-webhook

by Cast AI

Helm chartv0.3.1App v0.3.1Verified publisher

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.

ResourceVerbsWhy
persistentvolumeclaims (cluster-wide)getLook up the PVCs mounted by an admitted pod
storageclasses.storage.k8s.io (cluster-wide)getResolve each PVC's storage class to its disk type
mutatingwebhookconfigurations named gcp-disk-compatibility-webhookget, update, patchInject and rotate the webhook's CA bundle
mutatingwebhookconfigurations (cluster-wide)list, watchRead-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, patchStore and rotate the webhook TLS certificate
leases.coordination.k8s.io (release namespace)get, list, watch, create, update, patchLeader election for certificate rotation

Values

KeyDefaultDescription
replicaCount2Webhook replicas (leader-elected cert rotation)
image.repository / image.tagghcr.io/castai/gcp-disk-compatibility-webhook / .Chart.AppVersionWebhook image
webhookFailurePolicyIgnoreAdmission behavior if the webhook is unavailable
podSecurityContext / securityContextnonroot 65532, all capabilities dropped, read-only root filesystem, RuntimeDefault seccompHardened 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgcp-disk-compatibility-webhook is pinned at v0.3.1 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