Cisco Container Networking Release Notes for ACI Release 6.0(4)

Available Languages

Download Options

  • PDF
    (711.8 KB)
    View with Adobe Reader on a variety of devices
Updated:August 22, 2024

Bias-Free Language

The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.

Available Languages

Download Options

  • PDF
    (711.8 KB)
    View with Adobe Reader on a variety of devices
Updated:August 22, 2024
 

 

Introduction

This document describes the features, bugs, and limitations for the Cisco Network Operator (CNO) 1.1 corresponding to ACI release 6.0(4). CNO stitches together Cisco network fabrics, and standard host-based networking technologies to provide differentiated and performant network services to Kubernetes, Red Hat OpenShift, and Rancher RKE clusters on a Cisco ACI fabric. It allows the cluster pods to be treated as fabric end points in the fabric integrated overlay. It also provides the option of IP Address Management (IPAM), security policy enforcement, load balancing services and other network infrastructure services to ensure a frictionless deployment for container workloads.

Release Notes are sometimes updated with new information about restrictions and bugs. See the following website for the most recent version of this document:

https://www.cisco.com/c/en/us/support/cloud-systems-management/application-policy-infrastructure-controller-apic/tsd-products-support-series-home.html

For more information about this product, see "Related Content."

Date

Description

August 29, 2024

Added content for Release 6.0.4.3. See the New Software Features, Software-Configuration and Container Images, Usage Guidelines, and Resolved Issues sections.

June 13, 2024

Added content for Release 6.0.4.2. See the New Software Features, Software, Known Limitations, Usage Guidelines and Resolved Issues sections.

February 28, 2024

Release 6.0(4) became available.

New Software Features

Telco & CNF workloads

Feature

Description

 OVN-Kubernetes CNI plugin

Cisco ACI supports using OVN-Kubernetes CNI Plugin with OCP 4.14.

MacVLAN, SR-IOV, IPVLAN and Linux-bridge based networks

Cisco ACI supports using MacVLAN, SR-IOV, IPVLAN and Linux-bridge CNI plugins with Multus for creating additional pod network interfaces on OCP 4.14.

Support for contracts on auto-created EPGs corresponding to additional networks define by network-attachment-definitions (NADs).

Cisco ACI supports attaching contracts on EPGs corresponding to additional networks, defined by NADs with the use of NetworkFabricconfiguration CRs. An entry can be added corresponding to the vlan used by the EPG and there the consumer and provider EPGs can be mentioned.

Support for auto-injection of Chained Cisco CNI for additional networks

When enabled, user can have all network-attachment-definitions chained with Cisco CNI at the end of the chain to provision the fabric correspondingly.

 

Enterprise workloads (with Cisco ACI CNI 6.0.4.3)

Feature

Description

Support for Kubernetes 1.28 and 1.29

Cisco ACI supports Kubernetes 1.28, 1.29 using the Cisco ACI Container Network Interface (CNI) plug-in and is installed with kubeadm on Ubuntu 22.04 using CRI-O.

OpenShift 4.14 on OpenStack 16.2

Cisco ACI supports Red Hat OpenShift 4.14 nested in Red Hat (OSP) 16.2. To enable this support, Cisco ACI provides customized Ansible modules to complement the upstream OpenShift installer.

OpenShift 4.14 on Bare Metal

Cisco ACI supports Red Hat OpenShift 4.14 on Bare metal with User Provisioned Infrastructure (UPI) method of installation. Cisco ACI provides customized Python script to complement the upstream OpenShift installer for integration with the ACI CNI.

OpenShift 4.14  on VMware vSphere

Cisco ACI supports Red Hat OpenShift 4.14 nested in VMware vSphere 7. Cisco ACI provides customized Ansible modules as reference to complement the upstream OpenShift installer for integration with the Cisco ACI CNI.

OpenShift Service Mesh on OCP 4.14

Cisco ACI supports Red Hat OpenShift Service Mesh on OpenShift 4.14.

 OpenShift Virtualization on OCP 4.14

Cisco ACI supports Red Hat OpenShift Virtualization on OpenShift 4.14.

SNAT Node Filter

Cisco ACI CNI supports excluding a list of nodes from the SNAT redirect policy by providing the list of roles assigned to the nodes in the configuration file.

Add taint when node is not ready

Cisco ACI CNI supports making a node unschedulable when the node goes to NotReady state and make it schedulable when the host-agent is done with the initialization and ready to process the pods.

APIC connection retry limit

Cisco ACI CNI supports configuring the retry limit to connect to an APIC host if it is not reachable before trying to connect to the next APIC host in the list of APIC hosts.

Disable recording packet drop event in Drop-logs

Cisco ACI CNI supports to disable the recording of the packet drop event under the pod events.

Assign ingress contract to aci-containers-default EPG for Service of type LoadBalancer

Cisco ACI CNI supports automatically consuming ingress contract configured by ACI CNI plugin every time a service is exposed outside, as type LoadBalancer needs to be consumed under aci-containers-default EPG to allow PBR redirect for E/W communication towards external IP. Earlier this was done manually.

Support for Rancher node migration between Remote Leafs within the same site

Cisco ACI supports Rancher or Kubernetes cluster on ESX hosts connected to ACI Remote Leafs. Kubernetes nodes running as VMs can be migrated between these ESX hosts.

Calico 3.26.3

Cisco ACI supports deploying Kubernetes cluster with Calico CNI 3.26.3 using the acc-provision tool.

 


 

The following features are being released as a technology preview to gather feedback; it is not recommended to use them directly in production.

Feature

Description

Cilium Support

Cisco ACI supports running Cilium CNI with ACI CNI to get the best of both. Cilium handles Network Policy enforcement on the node and ACI CNI continues to provide all other fabric-specific features including policy-based segmentaion, hardware loadbalancing, SNAT, and more. For more details, refer to the ACI and Cilium Integration document.

OVS-CNI based additional networks

Cisco ACI supports using OVS CNI plugins with Multus for creating additional pod network interfaces on OCP 4.14

Rancher Kubernetes Engine (RKE) 1.5.13 and 1.6.2

Cisco ACI supports an RKE 1.5.13 and 1.6.2 installed cluster integrated with Cisco ACI CNI.

Openshfit 4.14 Agent Based Installer support for Baremetal

Integration of OpenShift 4.14 with Cisco ACI CNI on Baremetal using agent-based installation.

Openshfit 4.14 Agent Based Installer support for VMware vSphere

 

Integration of OpenShift 4.14 with Cisco ACI CNI on ESX using agent-based installation.

 

Cisco ACI Virtualization Compatibility Matrix

For information about all Cisco ACI-supported (currently-supported) Container products along with the supported ecosystem releases (Kubernetes, OpenShift, OpenStack, Rancher, and vSphere), see the Cisco ACI Virtualization Compatibility Matrix at the following URL:

https://www.cisco.com/c/dam/en/us/td/docs/Website/datacenter/aci/virtualization/matrix/virtmatrix.html

Software

Installers:

OpenShift installer source scripts for OCP 4.12, 4.13 and 4.14 on OpenStack 16.2 are provided as releases artifacts.

For OpenShift on Baremetal, OpenStack and vSphere please refer to the Install Guides.

Configuration:

This release uses the acc-provision upstream open source project release 6.0.4.3 for ACI-CNI, Calico, OVN, OVS, MACVLAN, or SR-IOV CNI support and Cisco ACI fabric configuration. Information about acc-provision PyPI package can be found in the upstream release status page.

Installation (needs Python 3.9 or later):

pip install acc-provision==6.0.4.3

Usage:

For details on how to use acc-provision, refer the following documents:

Provisioning Cisco ACI to Work with Kubernetes

Generating an Updated Cisco ACI CNI Configuration

Container Images:

acc-provision generates deployment manifests that reference ACI-CNI container images built in upstream open source projects aci-containers, OpFlex, and acc-provision-operator with tag 6.0.4.3. Package and vulnerability details of these images are documented in the upstream release status page.

Supported Scale

For the verified scalability limits (except for CLI limits), see the Verified Scalability Guide for this release. For Kubernetes-based integrations (including Docker, OpenShift, and Rancher) and OpenStack platform scale limits, see the following table.

Note: The scalability information in the following table applies to Kubernetes or OpenStack resources integrated with OpFlex into the Cisco ACI fabric. It does not apply to Microsoft SCVMM hosts or Cisco ACI Virtual Edge instances.

Limit Type

Maximum Supported

Number of OpFlex hosts per leaf1

120

Number of OpFlex hosts per port

20

Number of vPC links per leaf

40

Number of endpoints per leaf

10,000

Number of endpoints per host

400

Number of virtual endpoints per leaf

40,000

1-The indicated scale value is for Cisco ACI release 5.0(1) and later. If the Cisco ACI release is earlier than 5.0(1), the number of supported OpFlex hosts are 40.

Notes:

    For containers, an endpoint corresponds to a pod’s network interface. The number of pods that can be run on each node is however constrained by other system configuration and Kubernetes distribution specified limits. For kubeadm installed upstream Kubernetes its 110 pods per node, and for OpenShift its 250 pods per node.

    For OpFlex hosts per port a port is either a physical port or a vPC. One vPC equals one port.The number of member ports in a vPC is inconsequential.

    For the CLI verified scalability limits, see the Cisco NX-OS Style Command-Line Interface Configuration Guide for this release.

Known Limitations

    A pod selector has to be always provided in a network policy to map a port name to the port number, and an empty pod selector is not supported in the ingress direction.

    The Cisco ACI CNI Plug-in is not integrated with the Multi-Site Orchestrator. When deploying to a Multi-Site deployment, the Cisco ACI configurations implemented by the plug-in must not be affected by the Multi-Site Orchestrator.

    SNAT policy configuration is not applicable to traffic within the same cluster.

    An SNAT policy which goes into the Failed state (for example, on account of reusing an already used SNAT IP), cannot be updated or reused. A failed SNAT policy needs to be deleted and a new one created.

    The SNAT feature was not supported with Cisco APIC release 6.0(3). The support is added from Cisco API release 6.0(4a). Users who have deployed the SNAT feature with the Cisco APIC 5.2 releases should not upgrade to Cisco APIC 6.0(3).

    Due to Python 3 dependencies, the acc-provision tool is supported on RHEL8 operating system.

    The NodePort service statistics exported to Prometheus get accounted under ClusterIp service statistics in on-premises deployments.

    The file openvswitch/db.sock sometimes becomes a directory after node reload due to a race-condition between the openvswitch installed on the node and openvswitch installed by ACI-CNI. The work around is to delete the /var/run/openvswitch/db.sock directory, and restart the aci-containers-openvswitch pod. For more details, see Red Hat Case 03299085.

    If the cluster is downgraded from ACI CNI release 6.0.3.2 or higher version to any of the lower versions, there is a chance that opflex-agent container of host-agent pod will restart, and thus the host-agent pod remains in crashloopbackoff. You can resolve this by manually deleting the file /var/lib/opflex-agent-ovs/reboot-conf.d/reset.conf from the node where the hostagent pod in crashloopbackoff is scheduled to.

Usage Guidelines

    To upgrade a Cisco ACI CNI cluster, use acc-provision with the "--upgrade" option.

    In ACI 6.0(x), a new attribute, serviceBdRoutingDisable, has been introduced to service BD which should be set to yes for the SNAT to work. If the ACI CNI version is less than 6.0.4.2, and APIC is upgraded from 5.2(x) to 6.0(x), then, SNAT might not work till the controller pod is restarted as the serviceBdRoutingDisable attribute of the service BD is still on no. So, it is recommended to upgrade the ACI CNI version to 6.0.4.2 or higher before upgrading APIC from from 5.2(x) to 6.0(x).

    istio_config configuration is not supported.

    To avoid scheduling of pods before the host agent is running on a node we can use the following configuration:

 

                           kube_config:                

                          taint_not_ready_node: True

This will  make node unschedulable by adding a taint if it's not in Ready state and taint will be removed when the node becomes Ready and host-agent initialization is complete on that node. Below taint will be added to facilitate this:

 

           aci-containers-host/unavailable:NoSchedule

    Optimizations to mapping of Kubernetes Network Policy to ACI Host Protection Policies can be turned ON with the following configuration:

kube_config:

      hpp_optimization: True

This, and all other configuration changes should be performed using the acc-provision tool, and will take effect after the new manifests generated by acc-provision are applied. This configuration will be enabled by default in future releases.

    The forwarding behavior for unknown-unicast traffic within Service Bridge Domain (BD) used in Kubernetes Loadbalancer-type services and SNAT feature will be set to “proxy” mode by default to avoid flooding.  It can be reverted to the earlier “flood” mode by setting the following configuration:

kube_config:

     ….

           unknown_mac_unicast_action: "flood"

      The host protection policy functionality can be disabled, effectively disabling the Kubernetes network policy functionality, using the configuration listed below:

                 kube_config:

                 …

                   disable_hpp_rendering: True

Default value is False.

    For running more than 250 pods per node, the following configuration needs to be added:

kube_config:

 …

      opflex_agent_ovs_asyncjson_enabled: "true"

This is a preview feature. Note the configuration value is a string in quotation marks.

    The aci-containers-operator uses the Ansible Operator SDK. If another Kubernetes Operator which uses the Ansible Operator SDK is deployed on the same node, the health-check ports of the two Operators will conflict. There is currently no way to override these default ports either. To overcome this issue, the aci-containers-operator pod has node affinity rule for "preferredDuringSchedulingIgnoredDuringExecutionfor" with key “preferred-node” and value “aci-containers-operator-2577247291”. You can ensure that the aci-containers-operator is scheduled on a particular node by adding the following label to the node:

preferred-node=aci-containers-operator-2577247291

A similar affinity scheme should be applied to other conflicting pods to ensure that they do not get scheduled on the above node.

Note that if no node with the above label exists, then, the aci-containers-operator will still get scheduled on some node.

    The size of each log file collected in the cluster report can be optionally set using the following acc-provision input configuration (default is 10 MB):

logging:

      size <size-in-bytes>

Note that the truncation happens at the beginning and the latest content of the log file is collected.

    The aci-containers-operator pod logging level can be set to debug by adding the following configuration:

           logging:

                              operator_log_level: debug

    If FIPS mode is enabled on the host, the following configuration needs to be added:f FIPS mode is enabled on the host, the following configuration needs to be added:

                      kube_config:

                          opflex_openssl_compat: True  

             default is False.

    The nodes can be excluded from the SNAT redirect policy by providing the following configuration in the acc-provision input configuration file, the nodes which match all the labels in any group will be excluded from the SNAT redirect policy:

    kube_config:

                node_snat_redirect_exclude:

                - group: <node_group_name_1>:

                  labels:

                  - <label_1>

                  - <label_2>

                  - <label_n>

                - group: <node_group_name_n>:

                  labels:

                  - <label_1>

                  - <label_2>

                  - <label_n>

 

            Example:

         kube_config:

                node_snat_redirect_exclude:

                - group: router

                  labels:

                  - router

                  - infra

                - group: infra

                  labels:

                  - control-plane

             - master

                  

The nodes having labels [router and infra] or [control-plane and master] will be excluded from the SNAT redirect policy, i.e if all the labels in any of the mentioned groups in configuration is matched with the node labels then that node will be excluded.

      When the controller starts and is unable to connect to the first APIC in the apic_hosts list, it will switch to the next APIC in the list after retrying the number of times specified in the configuration shown below:

           kube_config:

                      apic_connection_retry_limit: <retry_count>

  The default is 5 retries.             

    The OpFlex Agent reconnect after VM Migration can be enabled by providing the following configuration in the acc-provision input configuration file:

kube_config:

     enable_opflex_agent_reconnect: True

    Set tolerations seconds for aci controller pod by providing the following configuration in the kube_config section of acc-provision input file: 

           toleration_seconds: 100

            default value is 60 and 600 for non rke and rke flavors respectively.

    Sometimes it takes longer for service endpoints to be ready but since they are configured are successfully configured as endpoints of that service, traffic will start get loadbalanced to these endpoints and may get temporarily blackholed. To avoid this, a delay along with the details of the services of type Loadbalancer can be specified in the acc-provision input file, such that the Cisco ACI service graph will be programmed with a delay. The following example shows a delay of 30 seconds being introduced for ingress-service (belonging to openshift-ingress) and a delay pf 60 seconds for monitoring-service (belonging to openshift-monitoring):

 

kube_config:

      service_graph_endpoint_add_delay:

       delay: 30

       services:

       - name: ingress-service

         namespace: openshift-ingress

       - name: monitoring-service

         namespace: openshift-monitoring

         delay:60           #override delay of 30   

Note that endpoints are added to the service graph only after the pod goes into Ready state.

    To enable drop logging, perform the following configuration in the acc-provision input file:

drop_log_config:

     enable: True

For more information, see Enabling the OpFlex Drop Log Feature.

To disable recording packet drop event under the pod add following configuration in the acc provision input file:

 drop_log_config:

      disable_events: True

    The scope of the SNAT service graph contract can be configured by the user in the acc-provision input file as follows:

kube_config:

  snat_operator:

    contract_scope: <scope name>

Valid values (as allowed by Cisco APIC) are "global", "tenant" and "context". The default is set to "global".

    The subnets listed under extern_static and extern_dynamic can be automatically added to rdconfig usersubnets by setting the following configuration in acc-provision input file:

kube_config:

  add_external_subnets_to_rdconfig: True

Note that if the initial value of add_external_subnets_to_rdconfig is true but later modified to false, the usersubnets automatically will not be removed and the rdconfig CR will have to be updated manually to remove them. Each entry in the rdconfig results in a new OVS flow regardless of whether the subnets overlap or not.

    The aci-containers-controller pod subscribes for notifications on certain objects to the Cisco APIC. There is a timeout associated with this subscription. A shorter timeout requires more frequent subscription renewals. The timeout is set to 900 seconds, and can be changed by configuring the acc-provision input file:

aci_config:

  apic_refreshtime: 1200

Note: The subscription timeout is configurable only in Cisco APIC 4.x or later.

    To ensure that the subscription renewal happens in time before the subscription timeout expires on the APIC side, the aci-containers-controller pod starts the renewal process a little earlier. By default, it starts 150 seconds before the subscription expiry. If the system is heavily loaded and you notice subscriptions are not renewed in time (this requires examining the aci-containers-controller and Nginx APIC logs), this period can be altered by adjusting the following configuration in the acc-provision input file:

aci_config:

  apic_refreshticker_adjust: 150

    The memory request and limit for the Open vSwitch container is set to 128Mi and 1Gi respectively. It can be changed by configuring the acc-provision input file as follows:

kube_config:

  ovs_memory_limit: "5Gi"

  ovs_memory_request: "512Mi"

 

    The Multus CNI deployment can be enabled in the OpenShift installation by performing the following configuration in the acc-provision input file:

multus:

  disable: False

    The memory request and limit for the Open vSwitch container is set to 128Mi and 1Gi respectively. It can be changed by configuring the acc-provision input file as follows:

kube_config:

  ovs_memory_limit: "5Gi"

  ovs_memory_request: "512Mi"

    Default memory request and limit for aci-containers-system namespace pods is set to 128Mi and 3Gi respectively  and can be changed by configuring the acc-provision input file as follows.

kube_config:

  aci_containers_memory_request: "512Mi"

  aci_containers_memory_limit: "5Gi"

 

Note: This namespace wide memory resource setting is not applied to openvswitch container. As stated earlier, please use ovs_memory_request, ovs_memory_limit to change openvswitch container memory request and limit.

Apart from the above option to set namespace wide memory request and limit, you can choose to configure container specific memory request and limit through acc-provision input file as follows:

 

kube_config:

  aci_containers_controller_memory_request: "256Mi"

  aci_containers_controller_memory_limit: "5Gi"

  aci_containers_host_memory_request: "256Mi"

  aci_containers_host_memory_limit: "5Gi"

  mcast_daemon_memory_request: "256Mi"

  mcast_daemon_memory_limit: "5Gi"

  opflex_agent_memory_request: "256Mi"

  opflex_agent_memory_request: "5Gi"

  acc_provision_operator_memory_request: "256Mi"

  acc_provision_operator_memory_limit: "5Gi"

  aci_containers_operator_memory_request: "256Mi"

  aci_containers_operator_memory_limit: "5Gi"

 

       This container specific configuration takes priority over the namespace wide configuration.

 

    ACI CNI pods are cirtical and to mark them node critical, PriorityClass "system-node-critical" can be set by configuring the acc-provision input file as follows:

 

kube_config:

  use_system_node_priority_class: True

 

    Running Rancher Kubernetes clusters with ACI CNI on VMware ESX-based virtual machines is supported in a Cisco ACI Multi-Pod environment. The following configuration should be provided in the acc-provision input file to enable this feature:

 

kube_config:

  aci_multipod: True

 

For clusters running on the Ubuntu host operating system, the following additional configuration should be set in the acc-provision input file:

 

kube_config:

  aci_multipod_ubuntu: True

 

    If moving an ESX-based VM across Cisco ACI pods, the DHCP needs to be renewed on the infra-vlan after the VM move. ACI-CNI’s host-agent initiates this DHCP release and request. To reliably obtain the DHCP, sometimes multiple attempts may be required. By default, this is attempted five times each after a delay of five seconds. These defaults can be tuned using the following configuration in the acc-provision input file:

 

kube_config:

  dhcp_renew_max_retry_count: 4

  dhcp_delay: 6

To avoid redundant DHCP renews on opflex-agent disconnects when not performing VM migration, a timeout interval in seconds can be configured.  The host-agent waits for this interval before triggerring a DHCP release and renew. If the OpFlex agent reconnects before this interval expires, no DHCP renewal is initiated.

 

This timeout interval can be configured as follows:

kube_config:

  opflex_device_reconnect_wait_timeout: 10

    Dual-stack can be configured by providing the IPv4 and IPv6 in the acc-provision input configuration file as follows:

net_config:

  node_subnet:

    - <ipv4-subnet>

    - <ipv6-subnet>

  pod_subnet:

    - <ipv4-subnet>

    - <ipv6-subnet>

  extern_dynamic:

    - <ipv4-subnet>

    - <ipv6-subnet>

  extern_static:

    - <ipv4-subnet>

    - <ipv6-subnet >

 

                Note that the dual-stack feature is only supported for OpenShift on Bare Metal.

    Static loadbalancer IP can be provided to the loadbalancer service via annotation in the below format:

"opflex.cisco.com/lb-ipam-ips": "<ipv4>,<ipv6>"

    In cases of heavy load, the opflex-agent requests to the leaf switch may fail and the opflex-agent needs to retry after a randomized backoff. The upper bound on this backoff can be configured to adapt specific load conditions to avoid frequent retries:

kube_config:

  opflex_agent_policy_retry_delay_timer: 60  # default is 10 seconds

    Control opflex agent statistics by adding following configuration in the acc provision input file:

kube_config:

   opflex_agent_statistics: False # default is True

          Set this to False if statistics load is very high.

    The opflex agent builds with the latest version of openssl (3.x) which causes compatibility issues when FIPS is enabled on the host running opflex-agent. This happens because the leaf filters out the ciphers needed for openssl 3.x to work properly. Until this is fixed on the leaf side the workaround is to run opflex-agent in openssl 1.1 compatibility mode so the connectivity to leaf is not broken when FIPS is enabled on the host running opflex-agent. This can be done by adding following configuration in acc provision input file:

           kube_config:

              opflex_openssl_compat: True # default is False

    The ingress contract created by ACI CNI plugin every time a service is exposed outside as type LoadBalancer needs to be consumed under aci-containers-default EPG to allow PBR redirect for E/W communication towards external IP. The contract assignmet was done manually earlier but now can be automated by adding following configuration in acc provision input file:

 

           kube_config:

              add_external_contract_to_default_epg: True # default is False

 

Prerequisites:

1.     Flag add_external_subnets_to_rdconfig: true should be cofigured in acc provision input file:

 

                         kube_config:

                 add_external_subnets_to_rdconfig: True

2.     SnatPolicy should be created.

 

    For the VMware VDS integration, you can refer to the Enhanced Link Aggregation Group (eLAG) configured through the Cisco APIC by using the following configuration in the acc-provision input file:

nested_inside:
 type: vmware

 elag_name: <eLAG-name-used>

    User update to include a firewall node in the loadbalancer service graph template are now supported. The following annotation should be added to the corresponding Kubernetes loadbalancer type service:

 

opflex.cisco.com/service-graph-name: <some-value>

 

    Policy Based Routing (PBR) tracking can be enabled for the Cisco APIC service graph created for supporting the SNAT feature. More details on PBR tracking can be found in the chapter "Configuring Policy-Based Redirect" in the Cisco APIC Layer 4 to Layer 7 Services Deployment Guide.

One HealthGroup for each node is created, and it is associated with the redirect policy of the SNAT service graph with the internet protocol service level agreement (IP SLA) interval set to 5 seconds. This interval is configurable through the acc- provision input file:

net_config:

  service_monitor_interval: 10

If the service_monitor_interval is set to zero, PBR tracking is disabled.

PBR tracking can be also be enabled for other Cisco APIC service graphs created for each Kubernetes external service, setting the following configuration in the acc-provision input file:

net_config:

  pbr_tracking_non_snat: true

If enabled, the service_monitoring_interval described earlier applies here as well.

Note: In a Cisco ACI CNI-based cluster, the same worker node is used to provide both the external Layer 4 load balancer and SNAT services. So if PBR tracking is enabled, and if the worker node reports unhealthy status for SNAT, a fault appears in the redirect policies associated with all other (non-SNAT) service graphs that have this node. However, this fault does not actually affect those other services and traffic from those services is still distributed to that node. The fault manifests for those other services only in the Cisco APIC GUI.

    OpenShift's default OVN-Kubernetes CNI can be used as the primary CNI for the primary interface using acc-provision flavor openshift-sdn-ovn-baremetal. The following input configuration is required for acc-provision to be able to configure the node network:

aci_config:

  system_id: mykube             # Every cluster must have a distinct ID

  apic_hosts:                   # List of APIC hosts to connect for APIC API

  - 10.1.1.101

  physical_domain:              # Non mandatory field

    domain: kube-physdom        # If physical domain provided, then mention name. Otherwise one will be created with name <system_id>-physdom

  aep: kube-cluster             # The AEP for ports/VPCs used by this cluster

  vrf:                          # This VRF used to create the BDs

    name: mykube-vrf

tenant: common              # This can be system-id or common

net_config:

  node_subnet: 10.1.0.1/16      # Subnet to use for nodes

  kubeapi_vlan: 4001            # The VLAN used by the physdom for nodes

·       Creation of additional networks is supported when using OpenShift’s default OVN-Kubernetes CNI as the primary CNI for the primary interface and the acc-provision flavor openshift-sdn-ovn-baremetal.

·       A new AEP is required for the additional network and can be configured as follows:

aci_config:

       secondary_aep: kube-cluster-2 # The AEP for additional networks

·       Cisco CNI can be automatically chained at the end of every Network-Attachment-Definition(NAD) or only those NADs with the annotation netop-cni.cisco.com/auto-chain-cni:"true" by enabling the following options. A webhook server will be deployed as a result. This server can use the cert-manager provided by the platform (eg RedHat OCP) or Cisco CNI can deploy a local cert-manager instance if the platform does not have one, which has an option below:

chained_cni_config:

  auto_insertion_for_nad: True #Default False

             require_annotation_for_nad_mutation_webhook: True #Default False

             local_cert_manager_enabled: True #Default False

These additional networks are isolated using VLAN configuration on the Cisco ACI fabric.Following CNIs are supported as the primary CNI on secondary networks: MACVLAN, SRIOV, IPVLAN, Linux-bridge and OVS(OpenVswitch). Where both L2 and L3 modes are possible with a CNI – as in bridge and IPVLAN, only L2 mode is currently supported.  

OVS support requires the configuration as follows: .

chained_cni_config:

   enable_ovs_cni_support: True

Furthermore OpenVswitch needs to be installed on all the nodes, OVS-CNI plugin must be copied over to the local CNI binary directory, required OVS bridge should be configured with the uplink port added to the bridge. Openvswitch support enablement will change the image tags to ones with the prefix –ovscni.

NetworkFabricConfiguration CR supports renaming auto-created epg/bd,adding subnets, changing vrf, tenant and associating contracts with the epgs. An example is shown below:

               apiVersion: aci.fabricattachment/v1

               kind: NetworkFabricConfiguration

                     metadata:

                        name: networkfabricconfiguration

                        namespace: aci-containers-system

                     spec:

                       nadVlanRefs:

                         vlans:

                         - vlans: "101"  # Match EPG based on explicit VLAN ID

                            aeps:

                            - "router-aaep"

                            epg:

                            name: custom-epg1

                              bd:

                                name: custom-bd1

                                common-tenant: false

                                subnets:

                                - "10.2.3.0/24"

                                vrf:

                                  name: common-vrf1

                                  common-tenant: true

                              contracts:

                                consumer:

                                - ctrct1

                                provider:

                                - ctrct2

Automating the configuration of these VLANs is achieved by leveraging a Chained CNI configuration using the following configuration:

chained_cni_config:

  secondary_interface_chaining: True

     secondary_vlans:              # VLANs for additional networks

     - 402

     - 403-406

     - 410, 425

    The aci-containers-operator deployment contains an acc-provision-operator container. The container is not essential for the functioning of this solution and is provided as an experimental feature for ease of configuration. It can be excluded from the deployment by using the following configuration:

acc_provision_operator:

  exclude: True

    A fault (vmmClusterFaultInfo) is generated in Cisco ACI, if a Kubernetes namespace, deployment, or pod is annotated with an EPG name that does not resolve to an existing EPG. A log statement is added in the aci-containers-controller log to alert the user. The fault will be cleared upon the next correct annotation, or when the aci-containers-controller restarts, or when the annotated namespace, deployment, or pod is deleted.

    Out-of-band management IP of APICs can be used to perform day-zero provision ACI fabric and in-band management IP for aci controller pod to communicate with the APIC. If there are multiple APICs in the aci-input file, the first APIC is always taken by the aci controller pod to establish websocket connection. This can be specified through command line with the –apic-oobm-ip parameter:

acc-provision -a -c <input.yaml> -f <flavor> -u <user> -p <pass> -o <deployment.yaml> --apic-oobm-ip <ip>

    By default, tar.gz will not be generated for cluster upgrade. User can pass “-z <tar-file-name>” option to generate it:

acc-provision --upgrade -c <input.yaml> -f <flavor> -u <user> -p <pass> -o <upgrade_deployment.yaml> -z <upgrade_deployment.tar.gz>

    While deleting APIC resources with “–d” option of acc-provision, can pass “–-skip-app-profile-check" flag to directly delete tenant without checking the presence of application profiles:

acc-provision -d -u <user> -p <pass> -c <input.yaml> -f <flavor> -o <deployment.yaml> --skip-app-profile-check

    Refer to the following documents for details on installation, upgrades, and configuration of specific features:  

    Cisco ACI and Kubernetes Integration

    Cisco ACI CNI Plugin for Red Hat OpenShift Container Platform Architecture and Design Guide

    OpenShift Install Guides

    Rancher Install Guides

    Configuration Options for Features using acc-provision (in-tree document)

    Upgrading the Cisco ACI CNI Plug-in

    Cisco Network Operator for Additional Interfaces

    Cisco ACI and Calico 3.26.3 Integration

    OpenShift has a tighter security model by default, and many off-the-shelf Kubernetes applications, such as guestbook, may not run on OpenShift (if, for example, they run as root or open privileged ports like 80).

    Refer to the article Getting any Docker image running in your own OpenShift cluster on the Red Hat OpenShift website for details. The Cisco ACI CNI Plug-in is not aware of any configuration on OpenShift cluster or pods when it comes to working behind a proxy. Running OpenShift "oc new-app”, for instance, may require access to Git Hub, and if the proxy settings on the OpenShift cluster are not correctly set, this access may fail. Ensure your proxy settings are correctly set.

    In this release, the maximum supported number of PBR based external services is 250 virtual IP addresses (VIPs). Scalability is expected to increase in upcoming releases.

Note: With OpenShift, master nodes and router nodes are tainted by default, and you might see lower scale than an upstream Kubernetes installation on the same hardware.

    Some deployments require installation of an "allow" entry in IP tables for IGMP. This must be added to all hosts running an OpFlex agent and using VXLAN encapsulation to the leaf. The rule must be added using the following command:

$ iptables -A INPUT -p igmp -j ACCEPT

In order to make this change persistent across reboots, add the command either to /etc/rc.d/rc.local or to a cron job that runs after reboot.

    Both RHEL and Ubuntu distributions set net.ipv4.igmp_max_memberships set to 20 by default. This limits the number of end point groups (EPGs) that can be used in addition to the kube-default EPG for pod networking. If you anticipate using more than 20 EPGs, set the value to the desired number of EPGs on each node as follows:

$ sysctl net.ipv4.igmp_max_memberships=desired_number_of_epgs

Open Issues

There are no open issues targeted for this release.

Resolved Issues

Click the bug ID to access the Bug Search tool and see additional information about the bug.

Bug ID                    

Description

CSCwi60995

Optimize HPP policy objects for netpol with empty namespaceSelector.

CSCwj05207

ACI CNI controller pod does not switch between APIC hosts.

CSCwh71494

Kubernetes Network Policy supports only a single address family.

CSCwh71581

Forwarding between hosts within the PBR Bridge Domain results in L3 lookup instead of L2 lookup.

CSCwh71479

Remove unused CRDs(like SNAT) from provisioning in chained-mode flavors.

CSCwj17264

ACI CNI 5.2.7.1 :: SNAT policy not updated.

CSCwj83530

aci-containers-contrller pod is crashing due to unexpected APIC API response.

CSCwj83522

aci-containers-controller malformed APIC API call when similarly named VMM domains are present.

CSCwj25192

ACI-CNI delayed processing of L4L7 RedirectPolicy after live migration.

CSCwj21260

NetworkPolicy to allow specific protocol traffic is not working as expected.

CSCwj84898

SNAT failure after upgrade of ACI from 5.2(x) to 6.0(4a) or above.

CSCwi99378

Stale entries in gbp cache caused by improper cleanup of opflexpL3Ep and and opflexpPEp.

CSCwk86076

HPP object getting deleted when the network policies are re-applied (without change in spec).

CSCwk59142

Rancher cluster fails to commision after decommision, due to vmmDomP object absent on leaves.

CSCwj36224

ACI CNI: External Service with dynamic allocation takes IP out of static pool.

Known Issues

Click the bug ID to access the Bug Search tool and see additional information about the bug.

Bug ID                    

Description

CSCwa36696

Temporary loss of K8s Pods cause 30-60 seconds traffic drops due to Cisco ACI objects re-deploy.

Related Content

See the Cisco Application Policy Infrastructure Controller (APIC) page for the documentation.

The documentation includes installation, upgrade, configuration, programming, and troubleshooting guides, technical references, release notes, and knowledge base (KB) articles, as well as other documentation. KB articles provide information about a specific use case or a specific topic.

By using the "Choose a topic" and "Choose a document type" fields of the Cisco APIC documentation website, you can narrow down the displayed documentation list to make it easier to find the desired document.

You can watch videos that demonstrate how to perform specific tasks in the Cisco APIC on the Cisco Data Center Networking YouTube channel.

Documentation Feedback

To provide technical feedback on this document, or to report an error or omission, send your comments to apic-docfeedback@cisco.com. We appreciate your feedback.

Legal Information

Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: http://www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R)

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.

© 2024 Cisco Systems, Inc. All rights reserved.

Learn more