Changing the CNIPlugin in Avi Kubernetes Operator
search cancel

Changing the CNIPlugin in Avi Kubernetes Operator

book

Article ID: 442681

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

This article outlines the configuration steps required for the Avi Kubernetes Operator (AKO) when migrating the CNI plugin from OpenShift SDN to OVN-Kubernetes.

Environment

  • Platform: OpenShift
  • Avi Kubernetes Operator Version: All
  • CNI Migration: OpenShiftSDN to OVNKubernetes

Resolution

Please follow these steps to update the CNIPlugin in Avi Kubernetes Operator 

Important: Before initiating the migration, validate that the current and new CNI configurations are mutually compatible

  1. Verify Compatibility : Ensure your target CNI plugin is supported by your current AKO version. Reference the AKO Compatibility Matrix to confirm that both the old and new plugins are compatible.
  2. Locate the Configuration Map & Update by following the steps

Note

Step-1: Login to your Kubernetes cluster and identify the AKO config-map name: 

user@####-####:~$ kubectl get configmap -n <namespace>
NAME               DATA   AGE
avi-k8s-config     46     49d

Steps-2: Edit the config-map by running the command

user@####-####:~$ kubectl edit configmap <config-map-name> -n <namespace>

       

      3. Restart the AKO pod for the changes to reflect

      kubectl delete <ako-pod-name> -n <namespace>

Note: Updating the config-map and restarting the AKO pod is the only requirement from the AKO side to complete the CNI plugin transition.