Debian Codegraph @

e2e/templates/agent/deployment.yaml

raw
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4 labels:
5 k8s-app: konnectivity-agent
6 namespace: kube-system
7 name: konnectivity-agent
8 spec:
9 replicas: {{ .Replicas }}
10 selector:
11 matchLabels:
12 k8s-app: konnectivity-agent
13 template:
14 metadata:
15 labels:
16 k8s-app: konnectivity-agent
17 spec:
18 containers:
19 - name: konnectivity-agent-container
20 image: {{ .Image }}
21 resources:
22 requests:
23 cpu: 50m
24 limits:
25 memory: 30Mi
26 command: [ "/proxy-agent"]
27 args: [
28 {{ range .Args }}
29 "--{{ .Flag }}{{if or (ne .Value "") .EmptyValue}}={{ .Value }}{{ end }}",
30 {{ end }}
31 ]
32 env:
33 - name: POD_NAME
34 valueFrom:
35 fieldRef:
36 fieldPath: metadata.name
37 - name: POD_NAMESPACE
38 valueFrom:
39 fieldRef:
40 fieldPath: metadata.namespace
41 - name: HOST_IP
42 valueFrom:
43 fieldRef:
44 fieldPath: status.hostIP
45 livenessProbe:
46 httpGet:
47 scheme: HTTP
48 port: 8093
49 path: /healthz
50 initialDelaySeconds: 15
51 timeoutSeconds: 15
52 readinessProbe:
53 httpGet:
54 scheme: HTTP
55 port: 8093
56 path: /readyz
57 initialDelaySeconds: 15
58 timeoutSeconds: 15
59 volumeMounts:
60 - name: kubernetes
61 mountPath: /etc/kubernetes
62 readOnly: true
63 - mountPath: /var/run/secrets/tokens
64 name: konnectivity-agent-token
65 ports:
66 - name: serverport
67 containerPort: 8090
68 hostPort: 8090
69 - name: agentport
70 containerPort: 8091
71 hostPort: 8091
72 - name: healthport
73 containerPort: 8093
74 hostPort: 8093
75 - name: adminport
76 containerPort: 8094
77 hostPort: 8094
78 volumes:
79 - name: kubernetes
80 hostPath:
81 path: /etc/kubernetes
82 - name: konnectivity-agent-token
83 projected:
84 sources:
85 - serviceAccountToken:
86 path: konnectivity-agent-token
87 audience: system:konnectivity-server
88 serviceAccountName: konnectivity-agent