From 30dbffa38c2e3e6362c2df1e179e4834207123d6 Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Thu, 28 Oct 2021 11:21:48 +0800 Subject: [PATCH] =?UTF-8?q?kubectl=20=E9=83=A8=E7=BD=B2=E5=BC=80=E5=90=AF?= =?UTF-8?q?=20privileged?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/deploy/kubectl/kubepi-pvc.yaml | 2 ++ docs/deploy/kubectl/kubepi.yaml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/deploy/kubectl/kubepi-pvc.yaml b/docs/deploy/kubectl/kubepi-pvc.yaml index e78ccf1e..5ea77a90 100644 --- a/docs/deploy/kubectl/kubepi-pvc.yaml +++ b/docs/deploy/kubectl/kubepi-pvc.yaml @@ -79,6 +79,8 @@ spec: ports: - containerPort: 80 protocol: TCP + securityContext: + privileged: true volumeMounts: - name: kubepi-persistent-storage mountPath: /var/lib/kubepi diff --git a/docs/deploy/kubectl/kubepi.yaml b/docs/deploy/kubectl/kubepi.yaml index 4af0190c..09125e89 100644 --- a/docs/deploy/kubectl/kubepi.yaml +++ b/docs/deploy/kubectl/kubepi.yaml @@ -61,4 +61,6 @@ spec: imagePullPolicy: Always ports: - containerPort: 80 - protocol: TCP \ No newline at end of file + protocol: TCP + securityContext: + privileged: true \ No newline at end of file