Detailed instructions for using this repository can be found in the BoxBoat Blog post for Kubernetes Ingress Automatic Let's Encrypt Certificates
Kubernetes resources in this repository should be applied in the following order:
- Edit
vars.env
- Deploy
lego-setup.yml
by running./lego-setup.sh
- Deploy
lego-secret.yml
by running./lego-secret.sh
- Deploy
lego-generate-cert.yml
by running./lego-generate-cert.sh
- Deploy
lego-renew-cert.yml
by running./lego-renew-cert.sh
- Deploy
ingress.yml
by running./ingress.sh
Detailed instructions for reflecting the TLS Secret to every namespace can be found in the BoxBoat Blog post for Kubernetes NGINX Ingress TLS Secrets in All Namespaces
- Deploy
ingress-cert-reflector.yml
by running./ingress-cert-reflector.sh
Each secret is attached a label (can be configured via vars.end - REPLICATE_LABEL_NAME and REPLICATE_LABEL_VALUE) and this will be added to the secrets. Cert reflector script will list all secrets containing these labels and sync all those secrets across all namespaces.