Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EKS controller]: can't create a node group #2208

Open
gecube opened this issue Nov 10, 2024 · 1 comment
Open

[EKS controller]: can't create a node group #2208

gecube opened this issue Nov 10, 2024 · 1 comment

Comments

@gecube
Copy link

gecube commented Nov 10, 2024

Hello!

I tried to use the next manifest

apiVersion: eks.services.k8s.aws/v1alpha1
kind: Nodegroup
metadata:
  name: production-fix-ng-20241010-b
  namespace: infra-production
spec:
  name: production-fix-ng-20241010-b
  clusterName: production
  diskSize: 100
  subnetRefs:
    - from:
        name: production-private-eu-west-2b
  nodeRole: arn:aws:iam::****:role/*****
  scalingConfig:
    minSize: 1
    maxSize: 1
    desiredSize: 1
  instanceTypes:
    - m5.large
  taints:
    - key: node-role.kubernetes.io/fix
      value: ""
      effect: "NO_SCHEDULE"
  labels:
    node-role.kubernetes.io/fix: ""
  amiType: BOTTLEROCKET_x86_64

I am getting the next error in the status:

status:
  ackResourceMetadata:
    ownerAccountID: '******'
    region: eu-west-2
  conditions:
    - lastTransitionTime: '2024-11-10T11:59:37Z'
      status: 'True'
      type: ACK.ReferencesResolved
    - message: |-
        InvalidParameterException: Invalid value:  : field must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]')
        {
          RespMetadata: {
            StatusCode: 400,
            RequestID: "c371ba24-6718-412a-96c2-3073d7041b3d"
          },
          ClusterName: "production",
          Message_: "Invalid value:  : field must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]')",
          NodegroupName: "production-fix-ng-20241010-b"
        }
      status: 'True'
      type: ACK.Terminal
    - lastTransitionTime: '2024-11-10T11:59:38Z'
      message: Resource not synced
      reason: resource is in terminal condition
      status: 'False'
      type: ACK.ResourceSynced

It is very ambiguous error and does not give me any information about what is wrong.

@gecube
Copy link
Author

gecube commented Nov 10, 2024

It helped to remove the label, but it is really strange as in the doc there are no restrictions:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-labels

@gecube gecube changed the title can't create a node group [EKS controller]: can't create a node group Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant