当前位置: 首页 > 工具软件 > eksctl > 使用案例 >

eksctl and kubectl

孔城
2023-12-01

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
 类似资料:

相关阅读

相关文章

相关问答