EKS (fargate) + NLB

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?

  1. Install eksctl to local machine (it needs to setup cluster from terminal instead of UI)
  2. Prepare simple eksctl yaml file: same file as in post about ALB
  3. 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: /

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started