How to update VPC CNI in EKS while I have ENABLE_POD_ENI and ENABLE_PREFIX_DELEGATION enabled?

0

Assuming I have these set after I have installed VPC CNI for my EKS cluster:

            - name: ENABLE_PREFIX_DELEGATION
              value: 'true'
            - name: ENABLE_POD_ENI
              value: 'true'

When I upgrade VPC CNI I got:

Conflicts found when trying to apply. Will not continue due to resolve conflicts mode. Conflicts: DaemonSet.apps aws-node - .spec.template.spec.containers[name="aws-node"].env[name="ENABLE_POD_ENI"].value DaemonSet.apps aws-node - .spec.template.spec.containers[name="aws-node"].env[name="ENABLE_PREFIX_DELEGATION"].value	

It is hard to find an example for setting those 2 parameters in Configuration values. And I don't want to risk EKS going to replace my nodes with those 2 parameters switched off as it will vastly reduce no. of pods can be hosted each node from 110 to 30 only.

Thank you for helping

Tom Lo
asked a month ago310 views
1 Answer
1

Hi Tom Lo

Here's how you can resolve the conflicts:

  • Review DaemonSet Configuration: First, review the configuration of the aws-node DaemonSet. You'll need to find where the ENABLE_PREFIX_DELEGATION and ENABLE_POD_ENI parameters are configured and ensure that they are consistent with your desired settings.
  • Update DaemonSet Configuration: Once you've identified the configuration section for the aws-node DaemonSet, update it to reflect the desired values for ENABLE_PREFIX_DELEGATION and ENABLE_POD_ENI.
  • Apply Configuration Changes: After updating the DaemonSet configuration, apply the changes to your EKS cluster. You can use kubectl apply or any other method you prefer to apply the changes.

Here's a general example of what the DaemonSet configuration might look like:

yaml
Copy code
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: aws-node
  namespace: kube-system
spec:
  selector:
    matchLabels:
      app: aws-node
  template:
    metadata:
      labels:
        app: aws-node
    spec:
      containers:
      - name: aws-node
        image: amazon/amazon-eks-cni:v1.9.0
        env:
        - name: ENABLE_PREFIX_DELEGATION
          value: 'true'
        - name: ENABLE_POD_ENI
          value: 'true'

Other container configuration...

Ensure that the env section within the spec reflects your desired values for ENABLE_PREFIX_DELEGATION and ENABLE_POD_ENI.

By updating the Daemon Set configuration to reflect the desired settings, you should be able to resolve the conflicts encountered during the VPC CNI upgrade process. Make sure to test the changes in a non-production environment before applying them to your production cluster.

answered a month ago
  • My problem is I cannot upgrade the VPC CNI addon in AWS EKS console. And the problem is config conflict which the config AWS EKS going to apply does not contain those 2 parameters presents in my current daemon set which cause the conflict.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions