-
카테고리
-
세부 분야
데브옵스 · 인프라
-
해결 여부
미해결
Nginx 및 Ingress yaml 작성에 대해 못찾는 분들을 위해 남깁니다.
22.03.27 18:50 작성 조회수 211
1
[nginx ingress install]
- nginx 다운로드
git clone https://github.com/kubernetes/ingress-nginx/
- nginx 배포
kubectl apply -k `pwd`/ingress-nginx/deploy/static/provider/baremetal
- 배포 확인
kubectl get all -n ingress-nginx
[예제 deploy]
- Deploy pod 배포
kubectl create deployment http-go --image=gasbugs/http-go:ingress
- service 생성
kubectl expose deploy http-go --port=80 --target-port=8080
[Ingress rule]
- Ingress Rule 작성
답변을 작성해보세요.
답변 0