쿠버네티스 공식 페이지에는 ingress nginx에 대한 설명이 되어 있다.
https://github.com/kubernetes/ingress-nginx/blob/master/docs/deploy/index.md
기본은 아래와 같다.
https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
특이할 점은 service는 따로 정의되어 있지 않지만, ingress-nginx namespace가 디폴트로 사용됨을 알 수 있다.
한편, aws에서 l7을 사용하려면 loadbalancer type을 사용하는 것을 참고할 수 있다.
spec:
type: LoadBalancer
selector:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
ports:
- name: http
port: 80
targetPort: http
- name: https
port: 443
targetPort: http이후 아래 링크에서 응용 버전을 참고할 수 있다.


