1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
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-server/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-server
volumes:
- name: konnectivity-test-log
hostPath:
path: /var/log/konnectivity-test-client.log
type: FileOrCreate
- name: konnectivity-home
hostPath:
path: /etc/srv/kubernetes/konnectivity-server
type: DirectoryOrCreate
|