-
Notifications
You must be signed in to change notification settings - Fork 35
/
pod-template.yaml
60 lines (60 loc) · 1.58 KB
/
pod-template.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
---
apiVersion: apps/v1
kind: Pod
metadata:
name: nse-vl3-{{ index .Labels "nodeName" }}
labels:
app: nse-vl3-vpp
"spiffe.io/spiffe-id": "true"
spec:
nodeName: {{index .Labels "nodeName"}}
restartPolicy: Never
containers:
- name: nse
image: ghcr.io/networkservicemesh/ci/cmd-nse-vl3-vpp:32fe538
imagePullPolicy: IfNotPresent
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: TRACE
- name: NSM_SERVICE_NAMES
value: vl3-scale-from-zero
- name: NSM_REGISTER_SERVICE
value: "false"
- name: NSM_IDLE_TIMEOUT
value: 15s
- name: NSM_LABELS
value: app:nse-vl3-vpp,capability:vl3
- name: NSM_REQUEST_LABELS
value: capability:vl3
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: true
- name: nsm-socket
mountPath: /var/lib/networkservicemesh
readOnly: true
resources:
requests:
cpu: 150m
limits:
memory: 400Mi
cpu: 500m
volumes:
- name: spire-agent-socket
hostPath:
path: /run/spire/sockets
type: Directory
- name: nsm-socket
hostPath:
path: /var/lib/networkservicemesh
type: DirectoryOrCreate