forked from aroute/cp4d35
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnorootsquash.yaml
55 lines (55 loc) · 1.27 KB
/
norootsquash.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: norootsquash
namespace: kube-system
labels:
tier: management
app: norootsquash
spec:
selector:
matchLabels:
name: norootsquash
template:
metadata:
labels:
name: norootsquash
spec:
tolerations:
- operator: Exists
hostNetwork: true
hostPID: true
hostIPC: true
containers:
- resources:
requests:
cpu: 0.01
name: systemdutil01
image: cp.icr.io/cp/cpd/norootsquash:3.0-amd64
imagePullPolicy: Always
args: ["-option", "restart", "-service", "nfs-idmapd.service"]
volumeMounts:
- mountPath: /host/etc
name: host-etc
- mountPath: /host/var/log
name: host-log
readOnly: true
- mountPath: /run/systemd
name: host-systemd
- mountPath: /host/sys
name: host-sys
imagePullSecrets:
- name: cpregistrysecret
volumes:
- name: host-etc
hostPath:
path: /etc
- name: host-log
hostPath:
path: /var/log
- name: host-systemd
hostPath:
path: /run/systemd
- name: host-sys
hostPath:
path: /sys