Overview of kube-webhook-certgen
mainkube-webhook-certgen is a utility designed to automate the setup of Kubernetes Admission Webhooks. It performs two primary functions:
- Certificate Generation: It generates a Certificate Authority (CA) and a leaf certificate with a long expiration (100 years).
- Webhook Patching: It automatically patches
ValidatingWebhookConfigurationandMutatingWebhookConfigurationresources by setting thecaBundlefield with the generated CA.
It is optimized for use within Helm provisioning processes, typically running as a Kubernetes Job via pre-install or post-install hooks.
Security Note: This tool is intended for quick installation and configuration. For high-security environments requiring more robust certificate management, consider using cert-manager.