Deploying Antrea on Minikube

Install Minikube

Follow these steps to install minikube and set its development environment.

Deploy Antrea

Deploy Antrea to Minikube cluster

  1. # curl is required because --cni flag does not accept URL as a parameter
  2. curl -Lo https://github.com/antrea-io/antrea/releases/download/<TAG>/antrea.yml
  3. minikube start --cni=antrea.yml --network-plugin=cni

Deploy a local build of Antrea to Minikube cluster (for developers)

These instructions assume that you have built the Antrea Docker image locally (e.g. by running make from the root of the repository, or in case of arm64 architecture by running ./hack/build-antrea-linux-all.sh --platform linux/arm64).

  1. # load the Antrea Docker images in the minikube nodes
  2. minikube image load antrea/antrea-controller-ubuntu:latest
  3. minikube image load antrea/antrea-agent-ubuntu:latest
  4. # deploy Antrea
  5. kubectl apply -f antrea/build/yamls/antrea.yml

Verification

After a few seconds you should be able to observe the following when running kubectl get pods -l app=antrea -n kube-system:

  1. NAME READY STATUS RESTARTS AGE
  2. antrea-agent-9ftn9 2/2 Running 0 66m
  3. antrea-controller-56f97bbcff-zbfmv 1/1 Running 0 66m