...
Code Block |
---|
$ git clone https://github.com/certbot/certbot
$ cd certbot
$ docker run -v `pwd`:/certbot -it python bash
# cd /certbot
# python setup.py install
|
Since Google Domains doesn't have an API, need to use the manual feature:
...
In the certbot window, Press Enter to Continue. This will create the certificate in /etc/letsencrypt/live/domain.
Code Block |
---|
kubectl create secret generic ndslabs-tls-secret --from-file=tls.crt=fullchain.pem --from-file=tls.key=privkey.pem --namespace=default |
A few things to note:
- Certificates are only valid for 90 days (https://community.letsencrypt.org/t/lets-encrypt-in-numbers-limits-restrictions-features/37113)
- Certbot can be used to automate certificate renewal
- cert-manager – successor to kube-lego – added support with https://github.com/jetstack/cert-manager/pull/309
- Merged 2 days ago!
- In theory, we could use cert-manager to generate and maintain wildcard certs via letsencrypt