This document describes how to run the Antrea agent simulator. The simulator is useful for Antrea scalability testing, without having to create a very large cluster.
make build-scale-simulator
This demo uses 1 simulator, this command will create a yaml file build/yamls/antrea-scale.yml
make manifest-scale
The above yaml will create one simulated Node/Pod, to change the number of
instances, you can modify spec.replicas
of the StatefulSet
antrea-agent-simulator
in the yaml, or scale it via
kubectl scale statefulset/antrea-agent-simulator -n kube-system --replicas=<COUNT>
after deploying it.
To prevent Pods from being scheduled on the simulated Node(s), you can use the following taint.
kubectl taint -l 'antrea/instance=simulator' node mocknode=true:NoExecute
kubectl create secret generic kubeconfig --type=Opaque --namespace=kube-system --from-file=admin.conf=<path to kubeconfig file>
kubectl apply -f build/yamls/antrea-scale.yml
check the simulated Node:
kubectl get nodes -l 'antrea/instance=simulator'