English 中文(简体)
AWS EKS 节格组创建时没有错误, 但被排除而不加入分组
原标题:AWS EKS nodegroup creation throws no error when created, but gets excluded and doesn t join the cluster

我正在尝试在 AWS EKS 组上创建一个新的节点组, 使用以下的调制调制 :

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: kf
  region: us-east-1

vpc:
  id: <VPC_ID>
  securityGroup: <SG_ID>
  subnets:
    private:
      private1:
        id: <SUBNET1>
      private2:
        id: <SUBNET2>
      private3:
        id: <SUBNET3>

managedNodeGroups:
  - name: managed-ng-gpu-g4dn
    amiFamily: AmazonLinux2
    ami: ami-072885db87a9a23d7
    overrideBootstrapCommand: |
      #!/bin/bash
      /etc/eks/bootstrap.sh kf
    instanceType: g4dn.xlarge
    labels: { role: workers }
    minSize: 0
    maxSize: 4
    volumeSize: 45
    privateNetworking: true

当我去创建节点组时, 它从未加入该组。 未丢弃错误, 但节点组没有被排除, 也从未创建。 我不使用 cli 命令中的包含或排除参数, 只是 eksctl 创建节点组 -- config- file create_ nodegroup. yaml

2024-05-18 08:25:36 [ℹ]  will use version 1.25 for new nodegroup(s) based on control plane version
2024-05-18 08:25:37 [!]  no eksctl-managed CloudFormation stacks found for "kf", will attempt to create nodegroup(s) on non eksctl-managed cluster
2024-05-18 08:25:39 [ℹ]  nodegroup "managed-ng-gpu-g4dn" will use "ami-072885db87a9a23d7" [AmazonLinux2/1.25]
2024-05-18 08:25:40 [ℹ]  3 existing nodegroup(s) (managed-ng-gpu-g4dn,managed-ng-gpu-p2-xlarge,managed-ondemand-cpu-20240503123911636500000009) will be excluded
2024-05-18 08:25:40 [ℹ]  1 task: { no tasks }
2024-05-18 08:25:40 [ℹ]  no tasks
2024-05-18 08:25:40 [✔]  created 0 nodegroup(s) in cluster "kf"
2024-05-18 08:25:40 [✔]  created 0 managed nodegroup(s) in cluster "kf"
2024-05-18 08:25:40 [ℹ]  checking security group configuration for all nodegroups
2024-05-18 08:25:40 [ℹ]  all nodegroups have up-to-date cloudformation templates
问题回答

...节点群体被排斥在外 从未被创造出来

尝试删除您的集并重新创建 :

...
overrideBootstrapCommand: |
  #!/bin/bash
  /etc/eks/bootstrap.sh kf --kubelet-extra-args  --node-labels=eks.amazonaws.com/nodegroup=managed-ng-gpu-g4dn,eks.amazonaws.com/nodegroup-image=ami-072885db87a9a23d7 




相关问题
Kong Error no Route matched with those values

currently I m trying to add aws-lambda plugin to existing EKS which uses Kong helmchart as an API gateway. I already made a CRD for Kong plugin apiVersion: configuration.konghq.com/v1 kind: KongPlugin ...

terraform eks aws_auth is overwrittne

I was using terraform to manage an eks cluster as IaC. Originally, only one eks cluster was being used. In order to apply blue-green deployment, I am planning to create an additional new eks cluster. ...