node-io: add io.max layer so dind cannot fill the device queue
This commit is contained in:
parent
f38f9433b9
commit
6d9f5176e1
3 changed files with 89 additions and 13 deletions
|
|
@ -43,6 +43,11 @@ spec:
|
|||
configMapKeyRef:
|
||||
name: etcd-io-guard-config
|
||||
key: dirty-background-bytes
|
||||
- name: DIND_WBPS
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: etcd-io-guard-config
|
||||
key: dind-wbps
|
||||
securityContext:
|
||||
privileged: true
|
||||
resources:
|
||||
|
|
@ -55,6 +60,11 @@ spec:
|
|||
volumeMounts:
|
||||
- name: host-proc-sys
|
||||
mountPath: /host/proc/sys/vm
|
||||
- name: host-proc
|
||||
mountPath: /host/proc
|
||||
readOnly: true
|
||||
- name: host-cgroup
|
||||
mountPath: /host/sys/fs/cgroup
|
||||
- name: script
|
||||
mountPath: /opt/guard
|
||||
readOnly: true
|
||||
|
|
@ -63,6 +73,14 @@ spec:
|
|||
hostPath:
|
||||
path: /proc/sys/vm
|
||||
type: Directory
|
||||
- name: host-proc
|
||||
hostPath:
|
||||
path: /proc
|
||||
type: Directory
|
||||
- name: host-cgroup
|
||||
hostPath:
|
||||
path: /sys/fs/cgroup
|
||||
type: Directory
|
||||
- name: script
|
||||
configMap:
|
||||
name: etcd-io-guard-script
|
||||
|
|
|
|||
Loading…
Reference in a new issue