-
eks (2) 번외 RunBook카테고리 없음 2024. 5. 16. 13:28
AWS EKS NodeGroup "Create failed": Instances failed to join the kubernetes cluster
AWS EKS NodeGroup "Create failed": Instances failed to join the kubernetes cluster
I am able to create an EKS cluster but when I try to add nodegroups, I receive a "Create failed" error with details: "NodeCreationFailure": Instances failed to join the kubernetes
stackoverflow.com
클러스터 구축을 위하여 node group를 생성하던 중 autoscaling group과 ec2를 생성 하지만 node group이 생성 완료가 완되고 해당 에러를 뱉었다.
https://docs.aws.amazon.com/eks/latest/userguide/troubleshooting.html
Amazon EKS troubleshooting - Amazon EKS
If the script is not present at that location, then the CNI container failed to run. You can manually download and run the script with the following command: curl -O https://raw.githubusercontent.com/awslabs/amazon-eks-ami/master/log-collector-script/linux
docs.aws.amazon.com
해당 이슈에 대하여 RunBook을 추천해서 써봤는데 success가 잡힌다.
success는 잡혔지만 아래 vpc관련 에러가 있었다.
vpc를 콘솔로 생성 시켜서 자동으로 만들어 주는데 nat gateway가 연결이 안됬었다. 그래서 혹시나해서 다른 리전에서 vpc를 생성해보고 똑같은거 cidr만 바꾸어서 몇번 만들었는데도 위와 같이 나왔는데
다시 새로 만드니까 이렇게 나오는 것이더라. 이 부분은 아직도 못찾았으며 버그인가? 이생각까지 하게 만들었다. 테스트용으로 natgateway를 만들려고 하니까 가끔 이상하게 나오는 거 같다. 근데 예전부터 다른 곳 세팅할때도 한번에 natgateway가 다 연결된 상태로 나왔어서 의심을 한적이 없는데 왜 이럴까. 아무튼 다 날리고 새로 vpc부터 다시 시작해야할것 같다.