forked from kubernetes-retired/kpng
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkpng-deployment-ds.yaml.tmpl
70 lines (69 loc) · 1.79 KB
/
kpng-deployment-ds.yaml.tmpl
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: apps/v1
kind: DaemonSet
metadata:
creationTimestamp: null
labels:
app: kpng
name: kpng
namespace: ${NAMESPACE}
spec:
selector:
matchLabels:
app: kpng
template:
metadata:
labels:
app: kpng
spec:
# to enable progressive deployment on existing cluster you can use node labels:
#nodeSelector:
# kpng: kpng
serviceAccountName: ${SERVICE_ACCOUNT_NAME}
hostNetwork: true
# so that kpng always runs on the controlplane nodes...
tolerations:
- operator: "Exists"
effect: "NoSchedule"
containers:
# We'll sed-replace this with a valid kpng image at creat time
- image: ${IMAGE}
imagePullPolicy: ${PULL}
env:
- name: GOLANG_PROTOBUF_REGISTRATION_CONFLICT
value: warn
name: kpng
volumeMounts:
- name: empty
mountPath: /k8s
- mountPath: /var/lib/kpng
name: kpng-config
args:
- kube
- --kubeconfig=/var/lib/kpng/kubeconfig.conf
- to-api
- --listen=unix:///k8s/proxy.sock
- image: ${IMAGE}
imagePullPolicy: ${PULL}
env:
- name: GOLANG_PROTOBUF_REGISTRATION_CONFLICT
value: warn
name: kpng-${E2E_BACKEND}
securityContext:
privileged: true
volumeMounts:
- name: empty
mountPath: /k8s
- name: modules
mountPath: /lib/modules
readOnly: true
args: [ "local", "--api=unix:///k8s/proxy.sock", "to-${E2E_BACKEND}", "--v=${KPNG_DEBUG_LEVEL}"]
#- --dry-run
volumes:
- name: empty
emptyDir: {}
- name: modules
hostPath:
path: /lib/modules
- name: kpng-config
configMap:
name: ${CONFIG_MAP_NAME}