Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

VMware Antrea is now Generally Available on OpenShift

August 3, 2023
Vivien Wang
Related topics:
ContainersOperators
Related products:
Red Hat OpenShiftRed Hat OpenShift Container Platform

Share:

    The VMware Antrea Operator, a network cluster operator for deploying Antrea as the default cluster network in Red Hat OpenShift, is now certified and available as a container network interface (CNI) plug-in and can be deployed on OpenShift 4.9, 4.10, 4.11, and 4.12.

    The container network interface (CNI) badge represents a distinct classification in the Red Hat OpenShift certification ecosystem and is reserved for networking solutions that integrate with OpenShift via a CNI plug-in.

    To qualify for this badge, the CNI plug-in must be deployed and managed through an operator. Partners are required to complete the relevant operator certification and successfully pass a series of end-to-end tests. Once approved, the operator is published in the Red Hat Ecosystem Catalog and can be utilized by customers and partners.

    Overview of Antrea

    The Antrea operator is responsible for deploying and managing the Antrea CNI plugin in an OpenShift cluster. The Antrea operator leverages a dedicated Custom Resource Definition (CRD) called AntreaInstall to store configuration parameters specific to both the antrea-controller and antrea-agent. By continuously monitoring the AntreaInstall CR, the operator automatically applies any relevant configuration changes and efficiently restarts the affected pods, ensuring smooth updates to the Antrea components.

    Antrea features

    • Antrea seamlessly integrates into OpenShift clusters through the Antrea operator, enabling the dynamic application of configuration changes to all operand components. Additionally, it maintains continuous monitoring of the OpenShift network CRD, accurately detecting alterations in available pod and service networking CIDRs.
    • The Antrea operator offers a simplified configuration process by centralizing all configuration parameters for each Antrea component into a single location. This streamlined approach ensures that configurations are efficiently propagated to their respective components without any complications.
    • Constant monitoring of components is a key feature of the Antrea operator. The cluster operator CR provides timely reports on the status of pods across deployments and daemonsets, promptly identifying and reporting any configuration errors that might hinder the correct implementation of changes on operands.

    How to deploy VMware Antrea on OpenShift

    The Antrea operator should be deployed in the early phases of cluster deployment for OpenShift 4 cluster. Its primary role is to monitor the cluster network configuration CR (network.config.openshift.io/v1). By doing so, it can keep the container network CIDRs and service network CIDRs used by Antrea up to date and properly configured.

    Step 1: Generate the install-config.yaml using the openshift-install command:

    $ openshift-install --dir=MY_CLUSTER create install-config

    Step 2: Update the install-config.yaml and make sure to change the networkType to "antrea" (case insensitive). Set container network CIDRs (clusterNetwork) and service network CIDRs (serviceNetwork).

    Step 3: Create manifest files:

    $ openshift-install --dir=MY_CLUSTER create manifests

    Step 4: Copy operator YAML files from deploy/ to MY_CLUSTER/manifests. Modify operator.antrea.vmware.com_v1_antreainstall_cr.yaml to configure Antrea and set the desired image version.

    Step 5: Generate ignition configuration files:

    $ openshift-install --dir=MY_CLUSTER create ignition-configs.

    Include the bootstrap ignition file in the terraform tfvars. Proceed with installing Openshift 4 cluster on vSphere using terraform.

    Step 6: Initiate cluster bootstrap and wait for the process to complete.

    Configuring your cluster network

    Initially, the cluster network configuration is defined in the install-config.yaml file. To update the clusterNetwork and serviceNetwork settings, users can apply changes through the network.config.openshift.io CRD in manifests/cluster-network-02-config.yml.

    Here is a sample configuration:

    apiVersion: config.openshift.io/v1
    kind: Network
    metadata:
      name: cluster
    spec:
      networkType: antrea
      clusterNetwork:
      - cidr: 10.10.0.0/14
      serviceNetwork:
      - 172.30.0.0/16

    Learn more

    For more information on the available installation processes and how to prepare a cluster installation for users, please consult the Selecting a cluster installation method and preparing it for users section in the Red Hat OpenShift Container Platform documentation. These instructions provide comprehensive guidance on choosing the appropriate installation method and preparing the cluster environment for users.

    If you wish to leverage the OperatorHub for installation, the following links provide detailed information:

    • Installing from OperatorHub using the web console
    • Installing from OperatorHub using the CLI

    To learn more about Certified OpenShift CNI Plug-ins and the third-party CNI plug-ins that have been certified by Red Hat for use with the OpenShift Container Platform, please refer to this document.

    Learn more about Antrea:

    • Antrea Operator For Kubernetes
    • VMware Container Networking with Antrea Documentation
    Last updated: September 19, 2023

    Related Posts

    • Using Quiver with AMQ on Red Hat OpenShift Container Platform

    • Where can I find REST API client libraries for OpenShift?

    • Change deployments on the fly in OpenShift 4.8

    • Access your Developer Sandbox from the command line

    Recent Posts

    • More Essential AI tutorials for Node.js Developers

    • How to run a fraud detection AI model on RHEL CVMs

    • How we use software provenance at Red Hat

    • Alternatives to creating bootc images from scratch

    • How to update OpenStack Services on OpenShift

    What’s up next?

    GitOps has become a standard in deploying applications to Kubernetes, and many companies are adopting the methodology for their DevOps and cloud-native strategy. Download the GitOps Cookbook for useful recipes and examples for successful hands-on applications development and deployment with GitOps.

    Download the GitOps Cookbook
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue