Merge pull request #7009 from darkowlzz/patch-2
configure-pvs: enable yaml syntax highlighting
This commit is contained in:
@@ -172,14 +172,14 @@ with a GID. Then the GID is automatically added to any Pod that uses the
|
|||||||
PersistentVolume.
|
PersistentVolume.
|
||||||
|
|
||||||
Use the `pv.beta.kubernetes.io/gid` annotation as follows:
|
Use the `pv.beta.kubernetes.io/gid` annotation as follows:
|
||||||
|
```yaml
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: pv1
|
name: pv1
|
||||||
annotations:
|
annotations:
|
||||||
pv.beta.kubernetes.io/gid: "1234"
|
pv.beta.kubernetes.io/gid: "1234"
|
||||||
|
```
|
||||||
When a Pod consumes a PersistentVolume that has a GID annotation, the annotated GID
|
When a Pod consumes a PersistentVolume that has a GID annotation, the annotated GID
|
||||||
is applied to all Containers in the Pod in the same way that GIDs specified in the
|
is applied to all Containers in the Pod in the same way that GIDs specified in the
|
||||||
Pod’s security context are. Every GID, whether it originates from a PersistentVolume
|
Pod’s security context are. Every GID, whether it originates from a PersistentVolume
|
||||||
|
|||||||
Reference in New Issue
Block a user