eksctl icon indicating copy to clipboard operation
eksctl copied to clipboard

`update-auth-configmap=false` flag not being respected for both create and delete nodegroup commands

Open sushanthmangalore opened this issue 5 years ago • 5 comments

What were you trying to accomplish? Trying to add/remove node groups to an eksctl created cluster without any updates to the aws-auth configmap

What happened? The eksctl create nodegroup command added an entry in aws-auth configmap. The eksctl delete nodegroup command removed the entry in aws-auth configmap.

How to reproduce it? Create a new EKS cluster using eksctl version 0.62.0 and Kubernetes version 1.20. Config file below -

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: basic-cluster
  region: us-west-1

managedNodeGroups:
  - name: ng-1
    instanceType: m5.large
    desiredCapacity: 3
    volumeSize: 80
  - name: ng-2
    instanceType: t3.large
    desiredCapacity: 2
    volumeSize: 80

Add a new node group to the cluster using the command -

eksctl create nodegroup --cluster=basic-cluster --region=us-west-1 --managed --name=ng-new --instance-types=t2.large,t3.large --update-auth-configmap=false -v 4

Logs

Anything else we need to know? OS - Amazon Linux 2, x86

Versions

$ eksctl info

eksctl version: 0.62.0
kubectl version: v1.22.1
OS: darwin

sushanthmangalore avatar Aug 26 '21 03:08 sushanthmangalore

--update-auth-configmap is only applicable for unmanaged nodegroups (nodeGroups field in ClusterConfig), not managed nodegroups. For managed ndoegroups, the EKS API handles adding entries to the aws-auth ConfigMap and this behaviour cannot be disabled. If you need to be able to skip adding entries to aws-auth, use unmanaged nodegroups. Additionally, what's your use-case for not adding entries to aws-auth? Are you handling that yourself via a different process?

cPu1 avatar Aug 26 '21 09:08 cPu1

Yes, I am looking to handle this using a GitOps stack like Flux or Argo, like with all the other mainfests. Do you have any recommendations for this?

sushanthmangalore avatar Aug 26 '21 13:08 sushanthmangalore

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 26 '21 01:09 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 28 '21 01:10 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Nov 02 '21 01:11 github-actions[bot]