/
[Kubernetes] Ingress 이미지 배포

[Kubernetes] Ingress 이미지 배포

 

Ingress Controller 설치

  • 아래와 같은 설치 명령어로 해당 파일을 배포하면 인그레스 컨트롤러의 새로운 namespace가 생성된다.

$ kubectl apply -f http://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/baremetal/deploy.yaml

호스트 설정

  • localhost 포워딩

$ sudo vi /etc/hosts ... 127.0.0.1 local.twoseed.co.kr

서비스 배포

  • 로드밸런서 타입의 Service 배포 예제

vi service.yaml apiVersion: v1 kind: Service metadata: name: ch-world-service spec: selector: app: ch-world type: NodePort ports: - name: http port: 85 protocol: TCP targetPort: 5000

다음과 같은 명령어로 서비스 배포

Deployment 배포

  • ingress-nginx가 포워딩할 웹어플리케이션 pod 배포 예제

본 예제는 Local에 설치되어 있는 Harbor에 배포된 이미지를 활용하였다.

다음과 같은 명령어로 deployment 배포

manifest 배포

Ingress-Nginx manifest 파일을 배포 예제

다음과 같은 명령어로 deployment 배포

배포 확인

 

Related content

[Kubernetes] Ingress 설치
[Kubernetes] Ingress 설치
More like this
[Kubernetes] Local 클러스터 구성
[Kubernetes] Local 클러스터 구성
More like this
[Kubernetes] Gitlab 클러스터 연결
[Kubernetes] Gitlab 클러스터 연결
More like this
[Kubernetes] Elastic Stack 설치
[Kubernetes] Elastic Stack 설치
More like this
Keycloak, Kong, Konga 생성을 위한 Docker-compose.yml 예제
Keycloak, Kong, Konga 생성을 위한 Docker-compose.yml 예제
More like this
GitLab에 Kubernetes 클러스터 연결
GitLab에 Kubernetes 클러스터 연결
More like this