AWS 使用Eksctl 创建EKS IPv6集群

使用AWS Console创建的EKS IPv6集群遇到了以下问题,所以可以参考这个文章, 如果嫌麻烦的话可以使用eksctl来创建EKS集群
failed to assign an IP address to container


1. 使用eksctl 命令创建集群,把subnet改成你原有的,如果擦掉的话就会创建新的,nodegroup的规格改成你想要的

eksctl create cluster -f deploy.yaml
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: MainCluster
  version: "1.29"
  region: ap-southeast-1

kubernetesNetworkConfig:
  ipFamily: IPv6

vpc:
  id: "vpc-015676d7776ac7382"
  subnets:
    public:
      ap-southeast-1a:
        id: "subnet-0a01faa37516ac96f"
      ap-southeast-1b:
        id: "subnet-0adfec202b827d769"
      ap-southeast-1c:
        id: "subnet-01eb21dfe1ba8ce77"
    private:
      ap-southeast-1a:
        id: "subnet-00daf232195d57c05"
      ap-southeast-1b:
        id: "subnet-09fadff22c7e2b4da"
      ap-southeast-1c:
        id: "subnet-00d212cbc61a7931c"

  clusterEndpoints:
    publicAccess: true
    privateAccess: true

iam:
  withOIDC: true

addons:
  - name: vpc-cni
    version: latest 
  - name: coredns
    version: latest 
  - name: kube-proxy
    version: latest
  - name: eks-pod-identity-agent
    version: latest 

managedNodeGroups:
  - name: arm-al2-on-demand-large
    amiFamily: AmazonLinux2
    instanceTypes: [ "a1.large" ]
    minSize: 1
    desiredCapacity: 1
    maxSize: 1
    volumeSize: 20
    volumeType: gp3
    volumeEncrypted: true
    labels:
      os-distribution: amazon-linux-2
    privateNetworking: true
    subnets:
      - subnet-09fadff22c7e2b4da

Loading

Facebook评论