Skip to content

Instantly share code, notes, and snippets.

@h-otter
Created September 15, 2017 07:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h-otter/5a3f048f99ff22c928ffad8d07ce8c0c to your computer and use it in GitHub Desktop.
Save h-otter/5a3f048f99ff22c928ffad8d07ce8c0c to your computer and use it in GitHub Desktop.
iperf3 on kubernetes
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
labels:
test-iperf3: server
name: iperf3-server
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
test-iperf3: server
template:
metadata:
labels:
test-iperf3: server
spec:
containers:
- name: iperf3-server
image: networkstatic/iperf3
args:
- -s
ports:
- containerPort: 5201
protocol: TCP
---
apiVersion: v1
kind: Pod
metadata:
labels:
test-iperf3: client
name: iperf3-client
spec:
containers:
- name: iperf3-client
image: networkstatic/iperf3
args:
- -c
- iperf3-server
restartPolicy: OnFailure
nodeSelector:
kubernetes.io/hostname: k8s-minion-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment