Use cert-manager CA injector to automatically inject a CA bundle into webhook configurations and CRDs

domain: cert-manager.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure the cert-manager cainjector component is deployed in the cert-manager namespace
  2. Create a cert-manager Certificate resource for the webhook's TLS with spec.secretName=webhook-tls-secret issued by an internal ClusterIssuer
  3. Annotate the ValidatingWebhookConfiguration (or MutatingWebhookConfiguration) with 'cert-manager.io/inject-ca-from: <namespace>/<certificate-name>'
  4. The cainjector watches for this annotation, reads the CA from the certificate's secret, and injects it into the webhookConfiguration's clientConfig.caBundle field automatically
  5. For CRDs with conversion webhooks, annotate the CRD with 'cert-manager.io/inject-ca-from: <namespace>/<certificate-name>' and the cainjector injects into spec.conversion.webhook.clientConfig.caBundle
  6. Verify injection: 'kubectl get validatingwebhookconfiguration <name> -o jsonpath={.webhooks[0].clientConfig.caBundle}' should return a base64-encoded CA cert

Known gotchas

Related routes

Configure a CRD conversion webhook to support multiple API versions
kubernetes.io · 6 steps · unrated
Configure a Kubernetes admission webhook with cert-manager for TLS provisioning and implement a ValidatingWebhookConfiguration to enforce custom policies
kubernetes.io · 5 steps · unrated
Configure a cert-manager DNS01 webhook solver for a DNS provider without built-in support
cert-manager.io · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans