eksctl
create cluster and ssh into worker node
eksctl create cluster \
--name oap-sg \
--region us-east-2 \
--with-oidc \
--ssh-access \
--ssh-public-key Intel_cluster.pub \
--managed
#Create the ec2 client with the same vpc and login into
sudo ssh -i Intel_cluster.pem ec2-user@ip-192-168-29-30.us-east-2.compute.internal
sudo ssh -i Intel_cluster.pem ec2-user@ip-192-168-58-104.us-east-2.compute.internal
kubectl
$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* i-07b9e259d6042977f@oap-sg.us-east-2.eksctl.io oap-sg.us-east-2.eksctl.io i-07b9e259d6042977f@oap-sg.us-east-2.eksctl.io
i-07b9e259d6042977f@oap.us-east-2.eksctl.io oap.us-east-2.eksctl.io i-07b9e259d6042977f@oap.us-east-2.eksctl.io
select Kubernetes cluster
kubectl config use-context i-07b9e259d6042977f@oap.us-east-2.eksctl.io