The tutorial walks you through the process of obtaining TLS certificates from Letsencrypt and consuming them from an application.
cd tls
cfssl gencert -initca ca-csr.json | cfssljson -bare ca
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-profile=kubernetes \
server-csr.json | cfssljson -bare server
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-profile=kubernetes \
server-updated-csr.json | cfssljson -bare server-updated
kubectl create secret tls tls-certs \
--cert certs/server.pem \
--key certs/server-key.pem
kubectl create -f deployments/dynamic-certs.yaml
kubectl create -f services/dynamic-certs.yaml
kubectl delete secret tls-certs
kubectl create secret tls tls-certs \
--cert certs/server-updated.pem \
--key certs/server-updated-key.pem