Antrea Feature Gates

This page contains an overview of the various features an administrator can turn on or off for Antrea components. We follow the same convention as the Kubernetes feature gates.

In particular: * a feature in the Alpha stage will be disabled by default but can be enabled by editing the appropriate .conf entry in the Antrea manifest. * a feature in the Beta stage will be enabled by default but can be disabled by editing the appropriate .conf entry in the Antrea manifest. * a feature in the GA stage will be enabled by default and cannot be disabled.

Some features are specific to the Agent, others are specific to the Controller, and some apply to both and should be enabled / disabled consistently in both .conf entries.

To enable / disable a feature, edit the Antrea manifest appropriately. For example, to enable AntreaProxy on Linux, edit the Agent configuration in the antrea ConfigMap as follows:

  1. antrea-agent.conf: |
  2. # FeatureGates is a map of feature names to bools that enable or disable experimental features.
  3. featureGates:
  4. # Enable antrea proxy which provides ServiceLB for in-cluster services in antrea agent.
  5. # It should be enabled on Windows, otherwise NetworkPolicy will not take effect on
  6. # Service traffic.
  7. AntreaProxy: true

List of Available Features

Feature NameComponentDefaultStageAlpha ReleaseBeta ReleaseGA ReleaseExtra RequirementsNotes
AntreaProxyAgentfalseAlphav0.8.0N/AN/AYesMust be enabled for Windows.
ClusterNetworkPolicyControllerfalseAlphav0.8.0N/AN/ANo
TraceflowAgent + ControllerfalseAlphav0.8.0N/AN/AYes

Description and Requirements of Features

AntreaProxy

AntreaProxy implements Service load-balancing for ClusterIP Services as part of the OVS pipeline, as opposed to relying on kube-proxy. This only applies to traffic originating from Pods, and destined to ClusterIP Services. In particular, it does not apply to NodePort Services.

Note that this feature must be enabled for Windows. The Antrea Windows YAML manifest provided as part of releases enables this feature by default. If you edit the manifest, make sure you do not disable it, as it is needed for correct NetworkPolicy implementation for Pod-to-Service traffic.

Requirements for this Feature

When using the OVS built-in kernel module (which is the most common case), your kernel version must be >= 4.6 (as opposed to >= 4.4 without this feature).

ClusterNetworkPolicy

ClusterNetworkPolicy is an Antrea-specific extension to K8s NetworkPolicies, which enables cluster admins to define security policies which apply to the entire cluster. Refer to this document for more information.

Requirements for this Feature

None

Traceflow

Traceflow enables a CRD API for Antrea that supports generating tracing requests for traffic going through the Antrea-managed Pod network. This is useful for troubleshooting connectivity issues, e.g. determining if a NetworkPolicy is responsible for traffic drops between two Pods.

We are currently working on adding documentation for this feature.

Requirements for this Feature

This feature can only be used in “encap” mode when the Geneve tunnel type is being used. Note that this is the default configuration for both Linux and Windows.