(01)Install
Linux
1sudo apt-get install -y certbot python3-certbot-nginx2# Or standalone:3sudo apt-get install -y certbotFree HTTPS/SSL certificates for your website
What is this?
Certbot gets free HTTPS certificates from Let's Encrypt so your website shows the padlock icon.
Where to create or edit the main configuration — paths below match the setup steps.
/etc/letsencrypt/Location: Certificate store on server
Issued certs and renewal configs
Step 01
1sudo apt-get install -y certbot python3-certbot-nginx2# Or standalone:3sudo apt-get install -y certbotStep 02
1sudo certbot --nginx -d example.com -d www.example.com2# Auto-renewal test:3sudo certbot renew --dry-runStep 03
1sudo certbot certificates2curl -I https://example.comStep 04
1sudo certbot renew2sudo systemctl status certbot.timer1 YAML template for Certbot (Let's Encrypt). Copy and deploy after setup.
1 ready-to-copy template. Expand one, copy the YAML, then run the deploy commands.
Ingress.yml
1apiVersion: networking.k8s.io/v12kind: Ingress3metadata:4 name: minimal-ingress5 annotations:6 nginx.ingress.kubernetes.io/rewrite-target: /7spec:8 rules:9 - http:10 paths:11 - path: /testpath12 pathType: Prefix13 backend:14 service:15 name: test16 port:17 number: 80Step 01
1kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.11.1/deploy/static/provider/cloud/deploy.yaml2kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=120s1kubectl apply -f Ingress.yml2kubectl get ingress3kubectl describe ingress minimal-ingress