Skip to content

Instantly share code, notes, and snippets.

@AlexisDucastel
Last active November 28, 2018 17:14
Show Gist options
  • Save AlexisDucastel/1b287428db8d40f528f1b383ba5a9571 to your computer and use it in GitHub Desktop.
Save AlexisDucastel/1b287428db8d40f528f1b383ba5a9571 to your computer and use it in GitHub Desktop.
Benchmark CNI Kubernetes - servers kube manifests
# server-iperf3.yml
apiVersion: v1
kind: Pod
metadata:
labels:
run: iperf-srv
name: iperf-srv
spec:
containers:
- args:
- iperf3
- -s
image: infrabuilder/netbench:server-iperf3
name: iperf-srv
nodeSelector:
kubernetes.io/hostname: s02
restartPolicy: Never
---
# server-http.yml
apiVersion: v1
kind: Pod
metadata:
labels:
run: http-srv
name: http-srv
spec:
containers:
- image: infrabuilder/netbench:server-http
name: httpd-srv
volumeMounts:
- name: data
mountPath: /usr/share/nginx/html
volumes:
- name: data
hostPath:
path: /home/ubuntu
nodeSelector:
kubernetes.io/hostname: s02
restartPolicy: Never
---
# server-ftp.yml
apiVersion: v1
kind: Pod
metadata:
labels:
run: ftp-srv
name: ftp-srv
spec:
containers:
- image: infrabuilder/netbench:server-ftp
name: ftpd-srv
env:
- name: ANON_MAX_RATE
value: "0"
volumeMounts:
- name: data
mountPath: /var/ftp
volumes:
- name: data
hostPath:
path: /home/ubuntu
nodeSelector:
kubernetes.io/hostname: s02
restartPolicy: Never
---
# server-ssh.yml
apiVersion: v1
kind: Pod
metadata:
labels:
run: ssh-srv
name: ssh-srv
spec:
containers:
- image: infrabuilder/netbench:server-ssh
name: sshd-srv
volumeMounts:
- name: data
mountPath: /root
volumes:
- name: data
hostPath:
path: /home/ubuntu
nodeSelector:
kubernetes.io/hostname: s02
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment