Hi I am unable to create k8s cluster on your aws playground, I have tried all workaround but final conclusion I came to is that in ec2 dashboard your dedicated hosts gives API error and when i run any kubectl command i.e get pods or nodes it throws error “couldn’t get current server API group list: Get “http://localhost:8080/api?timeout=32s”: dial tcp 127.0.0.1:8080: connect: connection refused”. kindly confirm that i am correct and why is this API error in your plaground
How did you create the k8s cluster ? Did you try EKS ?
Please try EKS with the following criteria
"You should be able to launch EKS with “Self-managed nodes”. As of now “Managed Node-group” and “Fargate Profile” will not work with EKS.
Also, you need to keep in mind below restrictions as well.
-
choose one of these instance types: *.nano, *micro, *.small, *.medium of t1,t2 and t3 instance class.
-
choose disk type as “gp2” only.
-
Maximum disk size per node allowed is 30GB.
In order to deploy EKS; it needs to meet all above criteria."
Hi @konarkwalia24,
The error you shared is not related to the playground. It could happen because you didn’t set up the kubeconfig.
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Reference: -
Regards,