kubectl 部署开启 privileged

This commit is contained in:
wanghe-fit2cloud
2021-10-28 11:21:48 +08:00
parent a4b7cb9019
commit 30dbffa38c
2 changed files with 5 additions and 1 deletions

View File

@@ -79,6 +79,8 @@ spec:
ports:
- containerPort: 80
protocol: TCP
securityContext:
privileged: true
volumeMounts:
- name: kubepi-persistent-storage
mountPath: /var/lib/kubepi

View File

@@ -61,4 +61,6 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 80
protocol: TCP
protocol: TCP
securityContext:
privileged: true