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

Create nodegroups using config file or spec block #55

Open
abhinavgpt opened this issue Jul 19, 2021 · 0 comments
Open

Create nodegroups using config file or spec block #55

abhinavgpt opened this issue Jul 19, 2021 · 0 comments

Comments

@abhinavgpt
Copy link

Hi :)

I am trying to add nodegroups dynamically to the cluster using the eksctl_nodegroup resource, but this resource currently only provides options which are supported by eksctl CLI. Unfortunately, I have to use the option overrideBootstrapCommand to set kubelet arguments, which is not supported by the CLI. I cannot add this nodegroup in the eksctl_cluster resource since nodegroups are created and deleted dynamically. Is there any way to do this using this provider?

Essentially I am looking to be able to add nodegroups to an existing cluster using code like:

resource "eksctl_nodegroup" "default" {
  name = "ng1"
  region = us-east-1
  cluster = test-cluster
  spec       = <<-EOS
  managedNodeGroups:
    - name: ng1
      privateNetworking: true
      instanceType: t3.medium
      ami: "ami-0ef0c69399dbb5f3f"
      overrideBootstrapCommand: |
          #!/bin/bash
          /etc/eks/bootstrap.sh test-cluster --kubelet-extra-args "--kube-reserved=cpu=140m,memory=2.6Gi"
  EOS
}

Any pointers are highly appreciated :)

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