Issue
What is the difference between using eksctl and AWS Management Console when creating a kubernetes cluster on aws ?
like what is really happening under the hood ?
in both cases the cluster gets created but only when using eksctl, you can connect to the cluster after it gets created.
Any ideas what is happening here ?
How to Reproduce
I'm following the official tutorials of AWS.
This tutorial doesn't work, the cluster gets created but you cannot connect to it. if you follow it, by the time you get to step 2.3 and try the command, you get an error that you need to be logged in.
Ref1: https://docs.aws.amazon.com/eks/latest/userguide/getting-started-console.html
However, following the guidelines of the adjacent tutorial of AWS which uses the eksctl, everything works fine.
Ref2: https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html
Just follow the steps as they tell you to do, one works the other doesn't :/
How to Test
1- Using AWS Management Console
Command
kubectl get svc
Output
error: You must be logged in to the server (Unauthorized)
2- Using eksctl
Command
kubectl get svc
Output
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.100.0.1 <none> 443/TCP 6m13s
Expected Output
Expected
Both should allow me to connect to the kubernetes cluster.
Actual
i am only able to connect to the cluster if i create it using eksctl