TL;DR

  • NS 생성 (선택)
kubectl create ns system-ingressctl
kubectl -n system-ingressctl create secret tls tls-ingress --cert=path/to/cert/file --key=path/to/key/file
ingress.yaml
controller:
  extraArgs:
    default-ssl-certificate: "system-ingressctl/tls-ingress"
  service:
    type: NodePort
    nodePorts:
      http: "30080"
      https: "30443"
    externalTrafficPolicy: "Local"
  config:
    proxy-body-size: "0"
  ingressClassResource:
    default: true
  • 여기서 externalTrafficPolicy: "Local" 은 성능을 위한 것이다.
  • Helm repo add
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
  • Helm install:
helm -n system-ingressctl upgrade --install ingress-nginx ingress-nginx/ingress-nginx -f ingress.yaml