Dealing with pod density limitations on EKS worker nodes

aws eks describe-cluster --name $(cluster-name) | \
jq '.cluster.resourcesVpcConfig.subnetIds'
aws ec2 describe-subnets --filter \
Name=subnet-id,Values=subnet-0,subnet-1,subnet-2 | \
jq '.Subnets[].CidrBlock'
kubectl get nodes -o json | jq '.items[].status.capacity.pods'
kubectl delete daemonset -n kube-system aws-node
kubectl get pods -A -o json | jq '.items[].status.podIP'
--use-max-pods 
kubectl-host: kubectl exec -it -n kube-system <privileged-pod> shpod: chroot /host/node: vi /etc/kubernetes/kubelet/kubelet-config.json
// remove the max-pods entry at the end of the file, save & exit
node: systemctl restart kubelet

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store