-
Notifications
You must be signed in to change notification settings - Fork 35
/
forwarder.yaml
105 lines (105 loc) · 3.11 KB
/
forwarder.yaml
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
---
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/cmd-forwarder-vpp:v1.11.1
imagePullPolicy: IfNotPresent
name: forwarder-vpp
securityContext:
privileged: true
env:
- name: SPIFFE_ENDPOINT_SOCKET
value: unix:///run/spire/sockets/agent.sock
- name: NSM_LOG_LEVEL
value: INFO
- 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:
memory: 350Mi
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