apiVersion: v1
kind: Pod
metadata:
  name: konnectivity-test-client
  namespace: kube-system
  annotations:
    scheduler.alpha.kubernetes.io/critical-pod: ''
    seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
  hostNetwork: true
  restartPolicy: Never
  containers:
  - name: konnectivity-test-client
    image: ${TEST_CLIENT_IMAGE}:${TAG}
    resources:
      requests:
        cpu: 1m
    command: [ "/proxy-test-client"]
    args: [
      "--log-file=/var/log/konnectivity-test-client.log",
      "--logtostderr=false",
      "--proxy-uds=/etc/srv/kubernetes/konnectivity/konnectivity-server.socket",
      "--proxy-host=",
      "--proxy-port=0",
      "--mode=http-connect",
      "--request-port=80",
      "--request-host=${KUBIA_IP}",
      ]
    volumeMounts:
    - name: konnectivity-test-log
      mountPath: /var/log/konnectivity-test-client.log
      readOnly: false
    - name: konnectivity-home
      mountPath: /etc/srv/kubernetes/konnectivity
  volumes:
  - name: konnectivity-test-log
    hostPath:
      path: /var/log/konnectivity-test-client.log
      type: FileOrCreate
  - name: konnectivity-home
    hostPath:
      path: /etc/srv/kubernetes/konnectivity
      type: DirectoryOrCreate
