Pod安全上下文支持设置
fsGroup,允许您设置拥有该卷的组ID,从而确定谁可以写入该卷。文档中的示例:
apiVersion: v1kind: Podmetadata: name: hello-worldspec: containers: # specification of the pod's containers # ... securityContext: fsGroup: 1234
更多信息在这里

Pod安全上下文支持设置
fsGroup,允许您设置拥有该卷的组ID,从而确定谁可以写入该卷。文档中的示例:
apiVersion: v1kind: Podmetadata: name: hello-worldspec: containers: # specification of the pod's containers # ... securityContext: fsGroup: 1234
更多信息在这里