HTTPS Renew
To renew your https certificates follow these steps:
PS: To get started, access the project terraform directory.
Access the nginx 443 container by pod:
kubectl --kubeconfig ./secrets/admin.conf exec POD_NAME -c CONTAINER_NAME -it /bin/bash
In the container:
cd /opt/letsencrypt
./letsencrypt-auto --agree-tos --renew-by-default --redirect -d DOMAIN
If you have more than one domain:
./letsencrypt-auto --agree-tos --renew-by-default --redirect -d DOMAIN_1 -d DOMAIN_2 -d DOMAIN_N
Finally restart nginx 443 and 80. On the server get the id of the containers:
docker ps
And then to both:
docker rm -f CONTAINER_ID