Skip to content

Elastic Kubernetes Service(EKS)

提醒:

  • CloudShell中的kubectl通过互联网连接EKSAPI Serverhttps://docs.aws.amazon.com/zh_cn/eks/latest/userguide/create-kubeconfig.html

    打开CloudShell后执行以下命令会自动配置~/.kube/config

    bash
    aws eks update-kubeconfig --region ap-northeast-1 --name demo-k8s1
    • region-code替换为您的集群所在的AWS区域,并将my-cluster替换为您的集群的名称。

    测试

    bash
    kubectl get nodes -o wide
  • 成功使用 链接 测试集群环境。

Amazon Elastic Kubernetes Service(Amazon EKS)是一项托管服务,无需在Amazon Web Services (AWS) 上安装、操作和维护自己的Kubernetes控制面板。支持AWS FargateKarpenter、托管节点组和自行管理worker节点https://docs.aws.amazon.com/zh_cn/eks/latest/userguide/eks-compute.html

创建集群

https://docs.aws.amazon.com/zh_cn/eks/latest/userguide/getting-started-console.html

提醒:

  • Cluster endpoint access(Configure access to the Kubernetes API server endpoint.)选择Public and private(The cluster endpoint is accessible from outside of your VPC. Worker node traffic to the endpoint will stay within your VPC.)因为CloudShell中的kubectl通过互联网连接到API server
  • 集群创建后需要手动添加Node Group以创建worker节点,https://ap-northeast-1.console.aws.amazon.com/eks/home?region=ap-northeast-1#/clusters/demo-k8s1?selectedTab=cluster-compute-tab