From 8e23656e09468cdd2c19114a86619bd79eb60884 Mon Sep 17 00:00:00 2001 From: Karina Murawko-Wisniewska Date: Tue, 13 Sep 2022 10:44:37 +0200 Subject: [PATCH] mount /etc/passwd and /etc/group for etcd ownership related checks Changes to job-master.yaml are also needed in job.yaml to properly check ownership of etcd data dir --- job.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/job.yaml b/job.yaml index d7d6554..f527dad 100644 --- a/job.yaml +++ b/job.yaml @@ -50,6 +50,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 @@ -85,3 +91,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"