forked from intel/CPU-Manager-for-Kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmk-webhook-configmap.yaml
45 lines (45 loc) · 1.13 KB
/
cmk-webhook-configmap.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
apiVersion: v1
kind: ConfigMap
metadata:
name: cmk-webhook-configmap
#namespace: user-supplied-namespace
data:
server.yaml: |
server:
binding-address: "0.0.0.0"
port: 443
cert: "/etc/ssl/cert.pem"
key: "/etc/ssl/key.pem"
mutations: "/etc/webhook/mutations.yaml"
mutations.yaml: |
mutations:
perPod:
metadata:
annotations:
cmk.intel.com/resources-injected: "true"
spec:
serviceAccount: cmk-serviceaccount
tolerations:
- operator: Exists
volumes:
- name: cmk-host-proc
hostPath:
path: "/proc"
- name: cmk-config-dir
hostPath:
path: "/etc/cmk"
- name: cmk-install-dir
hostPath:
path: "/opt/bin"
perContainer:
env:
- name: CMK_PROC_FS
value: "/host/proc"
volumeMounts:
- name: cmk-host-proc
mountPath: /host/proc
readOnly: true
- name: cmk-config-dir
mountPath: /etc/cmk
- name: cmk-install-dir
mountPath: /opt/bin