-
[Trouble Shooting] AKS 연결 안됨Kubernetes 2024. 5. 20. 19:47728x90
k8s 클러스터 구축 중에, service 배포 후 할당된 외부 IP 접속이 안되어 문제가 발생했다.
대략적으로, AKS 배포 진행 단계는 다음과 같다.
- Dockerfile 작성
- 이미지 빌드
- Azure 포탈 내 Container Registry 생성
- Container Registry 로그인
- Docker tag -> docker push
- K8s cluster 생성
- Cli에서 명령어 가져와 Cluster 연결
- 컨테이너 띄우고 yaml 파일 작성후 배포(Deployment -> Service)
- Sevice 배포 단계에서 외부 IP 획득
여러 방면으로 생각을 해봐야할텐데...
traceroute 결과 msn.net 홉을 거친 이후 timeout이 발생하는 것을 볼 수 있다.
원인은 총 2가지다.
첫째로, 내가 만든 WEB Deployment가 잘못 작성이 된건지, docker hub에 있는 echo server 이미지로 해보니 정상적으로 호출되었다.
둘째로, Echo server의 경우 80 포트를 지정해줘야 열리는 데, 8080으로 yaml 파일에 설정해주어 생긴 현상이었다.
원인은 파악했으니 yaml 파일 수정과 DB와 cluster 연결이 나에게 남은 과제다..
728x90'Kubernetes' 카테고리의 다른 글
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied) (0) 2024.05.21 Kubernetes가 사용되는 이유 (0) 2024.05.08 [Kubernetes] Replica Set (0) 2024.04.03 [Kubernetes] Pod (0) 2024.04.03 [Kubernetes] Minikube와 쿠버네티스 개요 (1) 2024.04.03