跳转至

Create Public Access EKS Cluster in China Region

  • create cloud9
  • create vpc
right-click & open-in-new-tab:

../../cloud9/create-standard-vpc-for-lab-in-china-region

  • get vpc id
right-click & open-in-new-tab:

../../cloud9/create-standard-vpc-for-lab-in-china-region

  • pre-config
right-click & open-in-new-tab:

eks-private-access-cluster

  • cluster config
    ---
    apiVersion: eksctl.io/v1alpha5
    kind: ClusterConfig
    
    metadata:
      name: ekscluster131 # MODIFY cluster name
      region: "cn-north-1" # MODIFY region
      version: "1.24" # MODIFY version
    
    # REPLACE THIS CODE BLOCK
    vpc:
      subnets:
        private:
          us-east-2a:
            id: subnet-xxxxxxxx
          us-east-2b:
            id: subnet-xxxxxxxx
        public:
          us-east-2a:
            id: subnet-xxxxxxxx
          us-east-2b:
            id: subnet-xxxxxxxx
      sharedNodeSecurityGroup: sg-xxxxxxxx
    
    cloudWatch:
      clusterLogging:
        enableTypes: ["*"]
    
    # secretsEncryption:
    #   keyARN: ${MASTER_ARN}
    
    managedNodeGroups:
    
    - name: mng1
      minSize: 2
      maxSize: 5
      desiredCapacity: 2
      instanceType: m5.large
      ssh:
        enableSsm: true
      privateNetworking: true
    
    iam:
      withOIDC: true
    
    addons:
    
    - name: vpc-cni 
      version: latest
    - name: coredns
      version: latest # auto discovers the latest available
    - name: kube-proxy
      version: latest
    

^8ir6w8