Skip to content

kubelet_extra_args cannot be specified in bootstrap_env #1724

@mustafa89

Description

@mustafa89

Description

I've been trying to use the KUBELET_EXTRA_ARGS in the bootstrap_env map in order to set taints but it was not working. After some digging I see that the default user_data always sets this value therefore the exported env var is never read.

SEE:

/etc/eks/bootstrap.sh ${cluster_name} --kubelet-extra-args <node-lables + taints + default labels> --apiserver-endpoint "$${API_SERVER_URL}" --b64-cluster-ca "$${B64_CLUSTER_CA}"

I think this should be mentioned in the README or Input descriptions. Currently, it implies all arguments to the bootstrap.sh script can be defined within in the bootstrap_env map.

⚠️ Note

Not using a custom AMI.

Versions

  • Terraform: 0.13.6
  • Provider(s): AWS: 3.63.0
  • Module: 17.23.0

Reproduction

Add the below bootstrap_env key-value to a node group definition. The value will not be propagated.

Code Snippet to Reproduce

bootstrap_env = {
          KUBELET_EXTRA_ARGS = "--register-with-taints=dedicated=TEST:NoSchedule"
}

Expected behavior

AFAIS, KUBELET_EXTRA_ARGS is not supported in bootstrap_env

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions