forked from networkservicemesh/deployments-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
passthrough-1.yaml
56 lines (56 loc) · 1.55 KB
/
passthrough-1.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nse-firewall-vpp
name: nse-passthrough-1
spec:
selector:
matchLabels:
app: nse-firewall-vpp
template:
metadata:
labels:
app: nse-firewall-vpp
"spiffe.io/spiffe-id": "true"
spec:
containers:
- name: nse
image: ghcr.io/networkservicemesh/ci/cmd-nse-firewall-vpp:2a680b8
imagePullPolicy: IfNotPresent
env:
- name: NSM_SERVICE_NAME
value: nse-composition
- name: NSM_LABELS
value: app:passthrough-1
- name: SPIFFE_ENDPOINT_SOCKET
value: unix:///run/spire/sockets/agent.sock
- name: NSM_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NSM_CONNECT_TO
value: unix:///var/lib/networkservicemesh/nsm.io.sock
volumeMounts:
- mountPath: /run/spire/sockets
name: spire-agent-socket
readOnly: true
- mountPath: /var/lib/networkservicemesh
name: nsm-socket
readOnly: true
resources:
requests:
cpu: 150m
limits:
memory: 450Mi
cpu: 500m
volumes:
- name: spire-agent-socket
hostPath:
path: /run/spire/sockets
type: Directory
- name: nsm-socket
hostPath:
path: /var/lib/networkservicemesh
type: DirectoryOrCreate