Search code examples
kubernetesamazon-eks

I am trying to deploy a pod in eks cluster but it is showing too many pods, but i have only one pod in that


enter image description here[I am trying to deploy one pod in node but it is in pending state when i describe pod I got too many pods, but i have only one pod in node][1]


Solution

  • As the image suggests, you have too many pods on your nodes. Each node in the cluster normally has a limit to how many pods it is allowed to hold. For example our GKE nodes allow 110 pods per node. The amount of pods you can have on your node is normally detemined by what CIDR range is assigned to it.

    Bear in mind the cluster has more pods than just the stuff you deploy. You should check what you actually have deployed in the cluster, and clean up stuff you don't need.

    A starting point for your investigation would be to use kubectl get nodes to get your nodes then kubectl describe node {node-name} to see details of what is actually on the node.