apiVersion: v1
kind: Pod
metadata:
name: hello-world
spec:
containers:
# specification of the pod's containers
# ...
# 指定volume的安全策略, user: jenkins, group: jenkins
securityContext:
runAsUser: jenkins
fsGroup: jenkins
Permissions kubernetes the volume of (the owner and group)
Guess you like
Origin www.cnblogs.com/aiops/p/11237980.html
Recommended
Ranking