-
Notifications
You must be signed in to change notification settings - Fork 35
/
admission-webhook.yaml
57 lines (57 loc) · 1.76 KB
/
admission-webhook.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: admission-webhook-k8s
labels:
app: admission-webhook-k8s
spec:
selector:
matchLabels:
app: admission-webhook-k8s
template:
metadata:
labels:
app: admission-webhook-k8s
spec:
serviceAccount: admission-webhook-sa
containers:
- name: admission-webhook-k8s
image: ghcr.io/networkservicemesh/cmd-admission-webhook-k8s:v1.11.1
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
path: /ready
port: 443
scheme: HTTPS
env:
- name: SPIFFE_ENDPOINT_SOCKET
value: unix:///run/spire/sockets/agent.sock
- name: NSM_SERVICE_NAME
value: admission-webhook-svc
- name: NSM_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NSM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NSM_ANNOTATION
value: networkservicemesh.io
- name: NSM_CONTAINER_IMAGES
value: ghcr.io/networkservicemesh/cmd-nsc:v1.11.1
- name: NSM_INIT_CONTAINER_IMAGES
value: ghcr.io/networkservicemesh/cmd-nsc-init:v1.11.1
- name: NSM_LABELS
value: spiffe.io/spiffe-id:true
- name: NSM_ENVS
value: NSM_LOG_LEVEL=INFO
- name: NSM_SIDECAR_LIMITS_MEMORY
value: 80Mi
- name: NSM_SIDECAR_REQUESTS_MEMORY
value: 40Mi
- name: NSM_SIDECAR_LIMITS_CPU
value: 200m
- name: NSM_SIDECAR_REQUESTS_CPU
value: 100m