| 1 | apiVersion: v1 |
| 2 | kind: Pod |
| 3 | metadata: |
| 4 | name: konnectivity-test-client |
| 5 | namespace: kube-system |
| 6 | annotations: |
| 7 | scheduler.alpha.kubernetes.io/critical-pod: '' |
| 8 | seccomp.security.alpha.kubernetes.io/pod: 'docker/default' |
| 9 | spec: |
| 10 | hostNetwork: true |
| 11 | restartPolicy: Never |
| 12 | containers: |
| 13 | - name: konnectivity-test-client |
| 14 | image: ${TEST_CLIENT_IMAGE}:${TAG} |
| 15 | resources: |
| 16 | requests: |
| 17 | cpu: 1m |
| 18 | command: [ "/proxy-test-client"] |
| 19 | args: [ |
| 20 | "--log-file=/var/log/konnectivity-test-client.log", |
| 21 | "--logtostderr=false", |
| 22 | "--proxy-uds=/etc/srv/kubernetes/konnectivity-server/konnectivity-server.socket", |
| 23 | "--proxy-host=", |
| 24 | "--proxy-port=0", |
| 25 | "--mode=http-connect", |
| 26 | "--request-port=80", |
| 27 | "--request-host=${KUBIA_IP}", |
| 28 | ] |
| 29 | volumeMounts: |
| 30 | - name: konnectivity-test-log |
| 31 | mountPath: /var/log/konnectivity-test-client.log |
| 32 | readOnly: false |
| 33 | - name: konnectivity-home |
| 34 | mountPath: /etc/srv/kubernetes/konnectivity-server |
| 35 | volumes: |
| 36 | - name: konnectivity-test-log |
| 37 | hostPath: |
| 38 | path: /var/log/konnectivity-test-client.log |
| 39 | type: FileOrCreate |
| 40 | - name: konnectivity-home |
| 41 | hostPath: |
| 42 | path: /etc/srv/kubernetes/konnectivity-server |
| 43 | type: DirectoryOrCreate |