mount /etc/passwd and /etc/group for etcd ownership related checks (#868)

pull/869/head^2
Huang Huang 3 years ago committed by GitHub
parent a1bd51db99
commit 182e64753e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,6 +53,12 @@ spec:
- name: opt-cni-bin
mountPath: /opt/cni/bin/
readOnly: true
- name: etc-passwd
mountPath: /etc/passwd
readOnly: true
- name: etc-group
mountPath: /etc/group
readOnly: true
restartPolicy: Never
volumes:
- name: var-lib-etcd
@ -88,3 +94,9 @@ spec:
- name: opt-cni-bin
hostPath:
path: "/opt/cni/bin/"
- name: etc-passwd
hostPath:
path: "/etc/passwd"
- name: etc-group
hostPath:
path: "/etc/group"

Loading…
Cancel
Save