hisosic

EKS instance당 수용 가능한 pod 갯수 본문

Container/Kubernetes

EKS instance당 수용 가능한 pod 갯수

hisosic 2022. 4. 19. 19:02

백엔드 마이크로 서비스에 대한 로드 밸런싱을 테스트해보려고 하다가,

worker node의 capability가 모두 차서, 더 이상 pod을 가진 service가 배포되지 않는 상황이 발생하였다.

pod 갯수가 worker node instance에서 허용 가능한 갯수를 초과한 것이다.

따라서, worker node가 가득 찬 상태에서는

개발자들이 서비스를 배포하면, 배포 대상인 pod들이 pending 상태가 되며 새로운 서비스를 deploy할 수 없는 상황이 발생했다. 

 

instance당 수용 가능한 pod 갯수는 아래 링크에서 확인할 수 있다.

https://github.com/awslabs/amazon-eks-ami/blob/master/files/eni-max-pods.txt

# Mapping is calculated from AWS ENI documentation, with the following modifications:
# * First IP on each ENI is not used for pods
# * 2 additional host-networking pods (AWS ENI and kube-proxy) are accounted for
#
# # of ENI * (# of IPv4 per ENI - 1)  + 2

 

만약의 최대 pod 갯수를 초과하면, worker node를 오토 스케일링 하는 방법을 강구해야 한다. 

 

출처 : https://corgipan.tistory.com/2

Comments