CORE DNS PODS IN KUBE-SYSTEM NOT WORKING

0

I have a fargate class in EKS but my Core DNS pods are in a pending state. How do I go about the issue?

2 回答
2

Hello Joash,

By default, CoreDNS deployment manifest will have an annotation eks.amazonaws.com/compute-type : ec2 which will make sure that coredns pods get scheduled only in nodes with EC2 type. As you are trying to run the coredns pods in Fargate nodes, you will have to remove this annotation.

To do this manually, use the following kubectl command line interface (CLI) commands, in sequential order, after you create the Amazon EKS cluster:

kubectl patch deployment coredns -n kube-system --type=json -p='[{"op": "remove", "path": "/spec/template/metadata/annotations", "value": "eks.amazonaws.com/compute-type"}]'
kubectl rollout restart -n kube-system deployment coredns

Also, please make sure that your cluster has a fargate profile available for the kube-system namespace.

If you are still having issues after checking the above suggestions, please share the coredns pod describe output.

Hope this is helpful!

profile pictureAWS
支持工程师
已回答 1 年前
  • It was helpful. Thank you Do I need different fargate profiles for my frontend and backend? How can I deploy my backend and frontend in EKS?

  • Hey Joash, you can create one fargate profile with a specific namespace and run both your frontend and backend workloads in that namespace to run them on EKS fargate.

  • If we configure cordons this way, then how can we spin up both EC2 and Fargate load together ?

0

If any pods are stuck in the Pending state, confirm that your node instance type is listed in limits.go

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则