https://pulumi.com logo
#python
Title
# python
d

damp-salesmen-74351

08/10/2023, 11:47 PM
Hi, I created a
VPC
using
pulumi_aws
and a
cluster
using
pulumi_eks
, but in the end, I received the error
no nodes available to schedule pods.
Here is the code: https://github.com/omidraha/pulumi_example/blob/main/vpc.py https://github.com/omidraha/pulumi_example/blob/main/iam.py https://github.com/omidraha/pulumi_example/blob/main/cluster.py https://github.com/omidraha/pulumi_example/blob/main/setup.py
Copy code
$ kubectl get pods -A 
NAMESPACE     NAME                       READY   STATUS    RESTARTS   AGE
kube-system   coredns-6ff9c46cd8-98sck   0/1     Pending   0          24h
kube-system   coredns-6ff9c46cd8-hrj56   0/1     Pending   0          24h

$ kubectl get event -A
NAMESPACE     LAST SEEN   TYPE      REASON             OBJECT                         MESSAGE
kube-system   38s         Warning   FailedScheduling   pod/coredns-6ff9c46cd8-98sck   no nodes available to schedule pods
kube-system   68s         Warning   FailedScheduling   pod/coredns-6ff9c46cd8-hrj56   no nodes available to schedule pods

$  kubectl get nodes -A
No resource found
s

stocky-restaurant-98004

08/11/2023, 5:27 PM
Does coredns require storage? If so, you may be seeing this issue: https://github.com/pulumi/pulumi-eks/issues/833
Try installing NGINX (which has no PVCs) as a service and see if you get a similar issue.
d

damp-salesmen-74351

08/11/2023, 6:18 PM
Same issue for other
nginxdemos/hello
pod.
s

stocky-restaurant-98004

08/11/2023, 7:31 PM
How about kubectl get nodes? You seeing what you expect?