-
Create Kubernetes cluster
eksctl create cluster -f eks-cluster.yaml
-
Install Traefik
helm install traefik traefik/traefik --version 23.1.
-
Create DNS
CNAME
record point to Traefik external IP. In Cloudflare disabled proxy. -
Install cert-manager
helm install cert-manager jetstack/cert-manager --version v1.12.2 --set installCRDs=true
-
For production
-
Create
Issuer
kubectl apply -f cert-manager/issuer/issuer-prod.yaml
-
Create
Certificate
kubectl apply -f cert-manager/cert/certificate-prod.yaml
-
Create Traefik
Middleware
to redirect HTTP to HTTPSkubectl apply -f traefik/middleware/https.yaml
-
Create Traefik HTTP
Ingressroute
kubectl apply -f traefik/ingressroute/ingressroute-with-middleware.yaml
-
Create Traefik HTTPS
IngressRoute
kubectl apply -f traefik/ingressroute/ingressroute-secure-prod.yaml
-
-
Uninstall cert-manager
helm uninstall cert-manager
-
Uninstall Traefik
helm uninstall traefik
-
Delete Kubernetes cluster
eksctl delete cluster -f eks-cluster.yaml
- https://traefik.io/blog/secure-web-applications-with-traefik-proxy-cert-manager-and-lets-encrypt/
- https://doc.traefik.io/traefik/getting-started/install-traefik/#use-the-helm-chart
- https://github.com/traefik/traefik-helm-chart/tree/master
- https://cert-manager.io/docs/installation/helm/
- https://cert-manager.io/docs/configuration/acme/http01/
- https://docs.technotim.live/posts/kube-traefik-cert-manager-le/
- https://medium.com/@alexgued3s/how-to-easily-ish-471307f276a9