blob: 9b8566a038d6b52858c513b0bef7704958128772 (
plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ vsys.id }}
labels:
app: {{ vsys.id }}
spec:
selector:
matchLabels:
app: {{ vsys.id }}
template:
metadata:
labels:
app: {{ vsys.id }}
spec:
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
containers:
- name: firewall
image: docker.io/library/tsg:firewall
imagePullPolicy: Never
command: ["/bin/bash", "-c", "tail -f /dev/null"]
securityContext:
privileged: true
volumeMounts:
- mountPath: /opt/tsg/mrzcpd
name: opt-tsg-mrzcpd
readOnly: false
- mountPath: /var/run/mrzcpd
name: var-run-mrzcpd
readOnly: false
- mountPath: /var/run/dpdk
name: var-run-dpdk
readOnly: false
- mountPath: /root/sys
name: root-sys
readOnly: false
- name: provision-config
mountPath: "/data/tsg-os-provision"
readOnly: true
{% if proxy.enable == 1 %}
- name: proxy
image: docker.io/library/tsg:proxy
imagePullPolicy: Never
command: ["/bin/bash", "-c", "tail -f /dev/null"]
securityContext:
privileged: true
volumeMounts:
- mountPath: /opt/tsg/mrzcpd
name: opt-tsg-mrzcpd
readOnly: false
- mountPath: /var/run/mrzcpd
name: var-run-mrzcpd
readOnly: false
- mountPath: /var/run/dpdk
name: var-run-dpdk
readOnly: false
- mountPath: /root/sys
name: root-sys
readOnly: false
- name: provision-config
mountPath: "/data/tsg-os-provision"
readOnly: true
{% endif %}
volumes:
- name: opt-tsg-mrzcpd
hostPath:
path: /opt/tsg/mrzcpd
- name: var-run-mrzcpd
hostPath:
path: /var/run/mrzcpd
- name: var-run-dpdk
hostPath:
path: /var/run/dpdk
- name: root-sys
hostPath:
path: /root/sys
- name: provision-config
configMap:
name: {{vsys.id}}-prosivion-config
|