Skip to content

Instantly share code, notes, and snippets.

@nithu0115
Created May 26, 2020 02:58
Show Gist options
  • Save nithu0115/978eccbc1529325d4af98e0ed6a7e2cb to your computer and use it in GitHub Desktop.
Save nithu0115/978eccbc1529325d4af98e0ed6a7e2cb to your computer and use it in GitHub Desktop.
CNI bandwidth testing
apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/ingress-bandwidth: 1M
kubernetes.io/egress-bandwidth: 1M
name: iperf-server
labels:
app: iperf-server
spec:
restartPolicy: OnFailure
containers:
- name: iperf-server
image: networkstatic/iperf3
args: [ "-s" ]
ports:
- containerPort: 5201
---
apiVersion: v1
kind: Service
metadata:
name: iperf-server
labels:
app: iperf-server
spec:
ports:
- port: 5201
targetPort: 5201
selector:
app: iperf-server
---
apiVersion: v1
kind: Pod
metadata:
name: iperf-client
labels:
app: iperf-client
spec:
restartPolicy: OnFailure
containers:
- name: iperf-server
image: networkstatic/iperf3
args: [ "-c", "iperf-server" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment