-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathforwarder.yaml
More file actions
115 lines (115 loc) · 3.47 KB
/
Copy pathforwarder.yaml
File metadata and controls
115 lines (115 loc) · 3.47 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: forwarder-vpp
labels:
app: forwarder-vpp
spec:
selector:
matchLabels:
app: forwarder-vpp
template:
metadata:
labels:
app: forwarder-vpp
"spiffe.io/spiffe-id": "true"
spec:
hostPID: true
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- image: ghcr.io/networkservicemesh/ci/cmd-forwarder-vpp:deb3fd6
imagePullPolicy: IfNotPresent
name: forwarder-vpp
securityContext:
privileged: true
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
capabilities:
drop:
- ALL
add: ["DAC_OVERRIDE", "SYS_ADMIN", "NET_ADMIN", "IPC_LOCK", "NET_RAW", "SYS_PTRACE", "SETGID"]
env:
- name: SPIFFE_ENDPOINT_SOCKET
value: unix:///run/spire/sockets/agent.sock
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_TUNNEL_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NSM_CONNECT_TO
value: unix:///var/lib/networkservicemesh/nsm.io.sock
- name: NSM_LISTEN_ON
value: unix:///listen.on.sock
- name: NSM_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: true
- name: nsm-socket
mountPath: /var/lib/networkservicemesh
- name: kubelet-socket
mountPath: /var/lib/kubelet
- name: cgroup
mountPath: /host/sys/fs/cgroup
- name: vfio
mountPath: /host/dev/vfio
- name: vpp
mountPath: /var/run/vpp/external
resources:
requests:
cpu: 150m
limits:
memory: 500Mi
cpu: 525m
readinessProbe:
exec:
command: ["/bin/grpc-health-probe", "-spiffe", "-addr=unix:///listen.on.sock"]
failureThreshold: 120
initialDelaySeconds: 1
periodSeconds: 1
successThreshold: 1
timeoutSeconds: 2
livenessProbe:
exec:
command: ["/bin/grpc-health-probe", "-spiffe", "-addr=unix:///listen.on.sock"]
failureThreshold: 25
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
startupProbe:
exec:
command: ["/bin/grpc-health-probe", "-spiffe", "-addr=unix:///listen.on.sock"]
failureThreshold: 25
periodSeconds: 5
volumes:
- name: spire-agent-socket
hostPath:
path: /run/spire/sockets
type: Directory
- name: nsm-socket
hostPath:
path: /var/lib/networkservicemesh
type: DirectoryOrCreate
- name: kubelet-socket
hostPath:
path: /var/lib/kubelet
type: Directory
- name: cgroup
hostPath:
path: /sys/fs/cgroup
type: Directory
- name: vfio
hostPath:
path: /dev/vfio
type: DirectoryOrCreate
- name: vpp
hostPath:
path: /var/run/vpp
type: DirectoryOrCreate