cert-manager
Let's see how to run cert-manager (GitHub, docs) in a Kubernetes cluster.
NOTE
Kubernetes objects should be installed in cert-manager namespace
Configuration
We'll use the official Helm chart):
Deployment
Define the version to be used (looking at releases):
bash
CERTMANAGER_VERSION=v1.18.2Create the Custom Resource Definitions (CRD) (must be applied before given the Helm limitation documented in Issue #8668):
bash
kubectl apply -f "https://github.com/cert-manager/cert-manager/releases/download/${CERTMANAGER_VERSION}/cert-manager.crds.yaml"Manage the application:
bash
# adds Helm chart repository
helm repo add jetstack https://charts.jetstack.io
helm repo update
# installs
helm upgrade --install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace \
--version $CERTMANAGER_VERSION
# checks everything is ok (the 3 of them should be READY 1/1)
kubectl get deploy -n cert-manager
# uninstalls
helm delete cert-manager -n cert-manager
kubectl delete ns cert-manager