Skip to content

Commit 30dbffa

Browse files
kubectl 部署开启 privileged
1 parent a4b7cb9 commit 30dbffa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/deploy/kubectl/kubepi-pvc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ spec:
7979
ports:
8080
- containerPort: 80
8181
protocol: TCP
82+
securityContext:
83+
privileged: true
8284
volumeMounts:
8385
- name: kubepi-persistent-storage
8486
mountPath: /var/lib/kubepi

docs/deploy/kubectl/kubepi.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ spec:
6161
imagePullPolicy: Always
6262
ports:
6363
- containerPort: 80
64-
protocol: TCP
64+
protocol: TCP
65+
securityContext:
66+
privileged: true

0 commit comments

Comments
 (0)