Deploy 3 replicas traefik. Cert-manager to get and automatically renew lets`encrypt certificates. And the test nginx application with ingress and redirect 301 http->https.
- Helm v3
- Kubernetes Cluster (e.g. GKE)
$ kubectl create namespace traefik
$ helm repo add traefik https://containous.github.io/traefik-helm-chart
$ helm repo update
$ helm install -n traefik traefik traefik/traefik -f traefik/traefik-values.yaml
kubectl create namespace cert-manager
$ helm repo add jetstack https://charts.jetstack.io
$ helm repo update
$ helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--version v0.16.0 \
--set installCRDs=true
- Change in file ingress.yml field routes -> match - write your dns name
$ kubectl create namespace app
$ kubectl apply -f app-nginx/
- Change in file Certificate.yml field dnsNames - write your dns name
- Change in file ClusterIssuer.yml field email - write your email
$ kubectl apply -f certs/