k8wiz
cert-manager
Hard
Integration

Which annotation tells cainjector to fill a webhook configuration's caBundle from a cert-manager Certificate?

Select your answer:

Show answer and explanation

Answer: cert-manager.io/inject-ca-from: <namespace>/<certificate-name>

Explanation

cainjector watches ValidatingWebhookConfiguration, MutatingWebhookConfiguration, CustomResourceDefinition and APIService objects with this annotation. It copies the CA from the named Certificate's Secret into their caBundle fields and updates it when the certificate is renewed. cert-manager.io/inject-ca-from-secret does the same directly from a Secret.