AWS EKS Cluster 구축하고 CloudeShell에서 명령어 입력했는데 안된다고 뜹니다.

0

안녕하세요 질문할게 있어서 이렇게 올립니다. 제가 aws eks Cluster 구축하고있는데 문제가 발생해서요. 문제는 EKS랑 Node 생성하고나서 CloudShell에 접속하고 명령어 kubectl get nods를 입력하고 나니 오류구문이 뜨더라구요 이렇게요 E0108 18:54:12.656581 159 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused E0108 18:54:12.657296 159 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused E0108 18:54:12.658907 159 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused E0108 18:54:12.660341 159 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused E0108 18:54:12.661992 159 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused The connection to the server localhost:8080 was refused - did you specify the right host or port? 이거는 어떻게 해결해야하나요? eks랑 node를 재설치를해보았는데도 안되네요. 태그를 제가 맞게했는지 모르겠네요

hoon
질문됨 4달 전530회 조회
1개 답변
0

메시지를 확인했을때는 클러스터에 제대로 연결이 안되는 것으로 보입니다. 통상 K8s 클러스터를 생성 하시고 나면, 클러스터에 접근 할 수 있도록 컨트롤 플레인의 엔드포인트와 접속 정보들을 설정하여야 합니다. EKS 를 설치하게 되면, 자동으로 kubeconfig 를 업데이트 해주는데요. CloudShell 에 해당 설정이 정확하게 되어있는지 확인해 보십시오. 클러스터가 정상적으로 생성이 되었다면, 아래 명령어를 통하여 설정 파일을 업데이트 하실 수 있습니다.

aws eks update-kubeconfig --region region-code --name my-cluster

보다 자세한 내역은 메뉴얼을 참고 하십시오. https://docs.aws.amazon.com/ko_kr/eks/latest/userguide/create-kubeconfig.html

감사합니다.

profile picture
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠