| 1 | apiVersion: v1 |
| 2 | kind: ServiceAccount |
| 3 | metadata: |
| 4 | name: konnectivity-agent |
| 5 | namespace: kube-system |
| 6 | --- |
| 7 | apiVersion: v1 |
| 8 | kind: Pod |
| 9 | metadata: |
| 10 | name: konnectivity-agent |
| 11 | namespace: kube-system |
| 12 | annotations: |
| 13 | scheduler.alpha.kubernetes.io/critical-pod: '' |
| 14 | seccomp.security.alpha.kubernetes.io/pod: 'docker/default' |
| 15 | spec: |
| 16 | hostNetwork: true |
| 17 | containers: |
| 18 | - name: konnectivity-agent-container |
| 19 | image: ${AGENT_IMAGE}:${TAG} |
| 20 | resources: |
| 21 | requests: |
| 22 | cpu: 50m |
| 23 | limits: |
| 24 | memory: 30Mi |
| 25 | command: [ "/proxy-agent"] |
| 26 | args: [ |
| 27 | "--logtostderr=true", |
| 28 | "--ca-cert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt", |
| 29 | "--proxy-server-host=${CLUSTER_IP}", |
| 30 | "--proxy-server-port=8091", |
| 31 | "--service-account-token-path=/var/run/secrets/tokens/konnectivity-agent-token", |
| 32 | ] |
| 33 | livenessProbe: |
| 34 | httpGet: |
| 35 | scheme: HTTP |
| 36 | port: 8093 |
| 37 | path: /healthz |
| 38 | initialDelaySeconds: 15 |
| 39 | timeoutSeconds: 15 |
| 40 | readinessProbe: |
| 41 | httpGet: |
| 42 | scheme: HTTP |
| 43 | port: 8093 |
| 44 | path: /readyz |
| 45 | initialDelaySeconds: 15 |
| 46 | timeoutSeconds: 15 |
| 47 | volumeMounts: |
| 48 | - mountPath: /var/run/secrets/tokens |
| 49 | name: konnectivity-agent-token |
| 50 | serviceAccountName: konnectivity-agent |
| 51 | volumes: |
| 52 | - name: konnectivity-agent-token |
| 53 | projected: |
| 54 | sources: |
| 55 | - serviceAccountToken: |
| 56 | path: konnectivity-agent-token |
| 57 | audience: system:konnectivity-server |