Official AWS NLB documentation
Here will try to deploy cluster based on Network load balancer, because we want to manage subdomains, urls inside of the cluster and it is much easier!
What needs?
- Install eksctl to local machine (it needs to setup cluster from terminal instead of UI)
- Prepare simple eksctl yaml file: same file as in post about ALB
- Apply ingress controller deployment. Pay attention, that helm’s chart does not work as expected (2021-01-12)
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.32.0/deploy/static/provider/aws/deploy.yaml
Example of the ingress part
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: yourapp-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
nginx.ingress.kubernetes.io/rewrite-target: /