-
Notifications
You must be signed in to change notification settings - Fork 35
/
nsmgr.yaml
107 lines (107 loc) · 3.35 KB
/
nsmgr.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
106
107
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nsmgr
labels:
app: nsmgr
spec:
selector:
matchLabels:
app: nsmgr
template:
metadata:
labels:
app: nsmgr
"spiffe.io/spiffe-id": "true"
spec:
serviceAccount: nsmgr-sa
containers:
- image: ghcr.io/networkservicemesh/cmd-nsmgr:v1.11.1
imagePullPolicy: IfNotPresent
name: nsmgr
ports:
- containerPort: 5001
hostPort: 5001
env:
- name: SPIFFE_ENDPOINT_SOCKET
value: unix:///run/spire/sockets/agent.sock
- name: NSM_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NSM_LOG_LEVEL
value: INFO
- name: NSM_REGISTRY_URL
value: "registry:5002"
# - name: DLV_LISTEN_NSMGR
# value: :40000
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NSM_LISTEN_ON
value: unix:///var/lib/networkservicemesh/nsm.io.sock,tcp://[$(POD_IP)]:5001
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: true
- name: nsm-socket
mountPath: /var/lib/networkservicemesh
- name: exclude-prefixes-volume
mountPath: /var/lib/networkservicemesh/config/
resources:
requests:
memory: 100Mi
cpu: 200m
limits:
memory: 200Mi
cpu: 400m
readinessProbe:
exec:
command: ["/bin/grpc-health-probe", "-spiffe", "-addr=unix:///var/lib/networkservicemesh/nsm.io.sock"]
failureThreshold: 120
initialDelaySeconds: 1
periodSeconds: 1
successThreshold: 1
timeoutSeconds: 2
livenessProbe:
exec:
command: ["/bin/grpc-health-probe", "-spiffe", "-addr=unix:///var/lib/networkservicemesh/nsm.io.sock"]
failureThreshold: 25
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
startupProbe:
exec:
command: ["/bin/grpc-health-probe", "-spiffe", "-addr=unix:///var/lib/networkservicemesh/nsm.io.sock"]
failureThreshold: 25
periodSeconds: 5
- image: ghcr.io/networkservicemesh/cmd-exclude-prefixes-k8s:v1.11.1
imagePullPolicy: IfNotPresent
name: exclude-prefixes
env:
- name: NSM_LOG_LEVEL
value: INFO
volumeMounts:
- name: exclude-prefixes-volume
mountPath: /var/lib/networkservicemesh/config/
resources:
limits:
memory: 40Mi
cpu: 75m
volumes:
- name: spire-agent-socket
hostPath:
path: /run/spire/sockets
type: Directory
- name: nsm-socket
hostPath:
path: /var/lib/networkservicemesh
type: DirectoryOrCreate
- name: exclude-prefixes-volume
emptyDir: {}