Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.24 KB

antrea-agent-simulator.md

File metadata and controls

53 lines (37 loc) · 1.24 KB

Run Antrea agent simulator

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.

Build the images

make build-scale-simulator

Create the yaml file

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.

Taint the simulator node

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

Create secret for kubemark

kubectl create secret generic kubeconfig --type=Opaque --namespace=kube-system --from-file=admin.conf=<path to kubeconfig file>

Apply the yaml file

kubectl apply -f build/yamls/antrea-scale.yml

check the simulated Node:

kubectl get nodes -l 'antrea/instance=simulator'