Hi all, Anyone deployed an app to EKS successfully...
# kubernetes
s
Hi all, Anyone deployed an app to EKS successfully? I keep getting hanging issue whenever I tried to create a k8s resource
c
Do you have local connectivity to the VPC where the cluster is being created, or have public access enabled? I don't see any Security Groups defined.
s
Security groups were created automatically
how to enable have public access ?
c
Copy code
endpointPublicAccess: true,
      publicAccessCidrs: ['your.ip.here/32'],
s
thank you, i try again
I update this option but still getting the issue
c
have you tested you can connect to the cluster, using
kubectl
or
k9s
or something?
s
yes
i can connect to the cluster using kubectl
just can't make any resource using pulumi, but can do using kubectl
c
Maybe the kubeconfig being generated from the cluster object is not using the public endpoints? If you print out the context does it match what's in your local .kube/config ?
Alternatively, instead of specifying the
kubeconfig
property in your Provider, use
context
and set it to your local context name
s
should be the same, because I exported the kubeconfig to .kube/config
c
Hard to say then if its just hanging, you can up the verbosity level of pulumi or use standard network diagnostic tools to see what pulumi is doing on the wire
s
how to get it?
can guide me
q
Hey @straight-planet-8925, you mention that you're program is getting stuck. What resources is it getting stuck on? And what errors - if any - are you seeing? Also, how did you configure AWS access? Are you using an AWS CLI profile? If yes, how is it configured?
s
I'm getting stuck when creating a k8s resource using pulumi, e.g deployment
I'm using the default aws profile
I set keys in .aws/credentials
q
Are there any logs/diagnostic messages in the output of
pulumi up
? Is the deployment getting created, but it doesn't become healthy or does it not even get created at all (i.e.
kubectl get deployment
in the target namespace)?
s
no, the deployment is not created
q
And what error message are you getting?
s
hang so long
without errors
q
And there's no output at all?
s
yeah
have you deployed EKS successfully?
q
Yes absolutely! Do you mind sharing your program including the versions of the providers you're using? It's a bit tricky giving advice without knowing what you're working with
s
yes
Can try to run it?
Now I'm using k8s playbooks to make deployments, services, lol
q
This seems to work for me! Can you inspect your kubeconfig your using with kubectl (i.e.
cat ~/.kube/config
) and compare it with the one exported by your program? Any major differences?
s
there is no difference, do you think is there any aws settings cause the issue?
or pulumi settings
Hi @quick-house-41860 Which region did you try ?
q
I tried eu-central-1
s
ok
I will try again in this region
I got issue in ap-southeast-1