📖

「network: add cmd: failed to assign an IP address to container」と出る

2021/05/28に公開

ログ

  • ContainerCreateから進まない
  Warning  FailedCreatePodSandBox  5m36s                  kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "xxxxx" network for pod "elasticsearch-867694d588-245kp": networkPlugin cni failed to set up pod "elasticsearch-867694d588-245kp_log" network: add cmd: failed to assign an IP address to container

原因

  • Nodeに追加するIPアドレスの上限に達した

スケールアップ

eksctl scale nodegroup --cluster=vamdemic-clsuter --name t3large --nodes 2

確認

kubectl get node

Discussion