Permissions kubernetes the volume of (the owner and group)

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

Guess you like

Origin www.cnblogs.com/aiops/p/11237980.html