apiVersion: v1
kind: Pod
metadata:
  name: iperf-server-${instance_hostname}
  namespace: ${iperf_namespace}
  labels:
    app: iperf-server
spec:
  containers:
    - image: ${registry_name}/toolbox-svo:1.0
      imagePullPolicy: Always
      command: ["/usr/bin/iperf3"]
      args: ["-s", "-p", "3000"]
      name: toolbox-svo
      securityContext:
        privileged: true
  imagePullSecrets:
    - name: default-secret
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
          - matchExpressions:
            - key: kubernetes.io/hostname 
              operator: In
              values:
                - ${instance_hostname}
