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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南