{"id":18512823,"url":"https://github.com/vmware/antrea-operator-for-kubernetes","last_synced_at":"2025-07-08T19:05:23.739Z","repository":{"id":39593681,"uuid":"307347977","full_name":"vmware/antrea-operator-for-kubernetes","owner":"vmware","description":"Antrea Operator for Kubernetes deployments","archived":false,"fork":false,"pushed_at":"2025-04-15T07:09:41.000Z","size":999,"stargazers_count":16,"open_issues_count":5,"forks_count":13,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-26T05:09:56.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-10-26T11:19:27.000Z","updated_at":"2025-02-19T18:08:20.000Z","dependencies_parsed_at":"2024-03-14T12:48:02.406Z","dependency_job_id":"9dbe1276-bb13-496d-a72f-ff657c653d49","html_url":"https://github.com/vmware/antrea-operator-for-kubernetes","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/vmware/antrea-operator-for-kubernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fantrea-operator-for-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fantrea-operator-for-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fantrea-operator-for-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fantrea-operator-for-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmware","download_url":"https://codeload.github.com/vmware/antrea-operator-for-kubernetes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware%2Fantrea-operator-for-kubernetes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264330497,"owners_count":23591953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T15:35:35.916Z","updated_at":"2025-07-08T19:05:23.714Z","avatar_url":"https://github.com/vmware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Antrea Operator For Kubernetes\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n## Overview\n\nThe Antrea Operator installs [Antrea](https://github.com/vmware-tanzu/antrea/)\nCNI plugin on a Kubernetes cluster.\nThe operator will be deployed as deployment and it will take care of deploying\nAntrea components:\n\n* The antrea-controller deployment\n* The antrea-agent daemonset\n\nAt the moment the antrea operator only works on OpenShift 4 platform, the\nsupport for other platforms is still in progress.\n\nThe antrea operator uses a dedicated CRD(`AntreaInstall`) object for\nantrea-controller and antrea-agent configuration. Users can set antrea\nconfigurations using the CRD instance. The operator monitors the update of\nAntreaInstall CR and restarts the relevant pods so that the relevant\nconfiguration changes are picked up.\n\n## Build\n\nBuilding the antrea operator docker image is very simple. From the project root\ndirectory simply type the following command.\n\n```\nmake all\n```\n\nTo build antrea operator binary. Run the following command.\n\n```\nmake bin\n```\n\n## Try it out on OpenShift 4 cluster\n\nFor Openshift 4 clusters, antrea operator will be deployed in the early phases\nof cluster deployment. The antrea operator monitors cluster network\nconfiguration CRD(`Network.config.openshift.io/v1`) object to update the\ncontainer network CIDRs and service network CIDRs used by Antrea.\n\nGenerate install-config.yaml by using openshift-install command.\n```\n$ openshift-install --dir=MY_CLUSTER create install-config\n```\n\nEdit `MY_CLUSTER/install-config.yaml` to update networking section.\nChange `networkType` to `antrea`(case insensitive).\nSet container network CIDRs `clusterNetwork` and `serviceNetwork` in\n`MY_CLUSTER/install-config.yaml`.\n\nCreate manifest files:\n```\n$ openshift-install --dir=MY_CLUSTER create manifests\n```\nPut operator yaml files from `deploy/` to\n`MY_CLUSTER/manifests`. Edit `operator.antrea.vmware.com_v1_antreainstall_cr.yaml`\nto set Antrea configurations and image version.\n\nGenerate ignition configuration files:\n```\n$ openshift-install --dir=MY_CLUSTER create ignition-configs\n```\nThis bootstrap ignition file will be added to the terraform tfvars.\nThen use terraform to install Openshift 4 cluster on vSphere.\n\n### Cluster network config\nCluster network config is initially set in install-config.yaml, user could apply\n`Network.config.openshift.io` CRD to update `clusterNetwork` and\n`serviceNetwork` in `manifests/cluster-network-02-config.yml`.\n\n*Example configurations*\n```\napiVersion: config.openshift.io/v1\nkind: Network\nmetadata:\n  name: cluster\nspec:\n  networkType: antrea\n  clusterNetwork:\n  - cidr: 10.10.0.0/14\n  serviceNetwork:\n  - 172.30.0.0/16\n```\n\n### Operator CR\nOperator CR `antrea-install` is used to provide antrea configurations:\n- AntreaAgentConfig holds the configurations for antrea-agent.\n- AntreaCNIConfig holds the configurations of CNI.\n- AntreaControllerConfig holds the configurations for antrea-controller.\n- AntreaImage is the Antrea image name and version used by antrea-agent and antrea-controller.\n\n## Contributing\n\nWe welcome community contributions to the Antrea operator for Kubernetes!\n\nBefore you start submitting code to antrea-operator-for-kuberentes, you should sign\nour contributor license agreement (CLA).\n\nIf you wish to contribute code and you have not signed our CLA, our bot will update\nthe issue when you open a Pull Request.\nFor more detailed information, refer to [CONTRIBUTING.md](CONTRIBUTING.md).\n\nFor any questions about the CLA process, please refer to our [FAQ](https://cla.vmware.com/faq).\n\n## License\n\nThis repository is available under the [Apache 2.0 license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware%2Fantrea-operator-for-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmware%2Fantrea-operator-for-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware%2Fantrea-operator-for-kubernetes/lists"}