diff --git a/persistent-volumes/claims/claim-01.yaml b/persistent-volumes/claims/claim-01.yaml index cb0a2abb..3c69d2e1 100644 --- a/persistent-volumes/claims/claim-01.yaml +++ b/persistent-volumes/claims/claim-01.yaml @@ -7,4 +7,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 3 + storage: 3Gi diff --git a/persistent-volumes/claims/claim-02.yaml b/persistent-volumes/claims/claim-02.yaml index 134ae4cf..48d48070 100644 --- a/persistent-volumes/claims/claim-02.yaml +++ b/persistent-volumes/claims/claim-02.yaml @@ -7,4 +7,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 8 + storage: 8Gi diff --git a/persistent-volumes/volumes/gce.yaml b/persistent-volumes/volumes/gce.yaml index 3e124c59..da3d56ad 100644 --- a/persistent-volumes/volumes/gce.yaml +++ b/persistent-volumes/volumes/gce.yaml @@ -4,7 +4,10 @@ metadata: name: pv0003 spec: capacity: - storage: 10 + storage: 10Gi + accessModes: + - ReadWriteOnce + ReadOnlyMany gcePersistentDisk: pdName: "abc123" fsType: "ext4" diff --git a/persistent-volumes/volumes/local-01.yaml b/persistent-volumes/volumes/local-01.yaml index 105e4393..ce0fe9fb 100644 --- a/persistent-volumes/volumes/local-01.yaml +++ b/persistent-volumes/volumes/local-01.yaml @@ -7,5 +7,7 @@ metadata: spec: capacity: storage: 10Gi + accessModes: + - ReadWriteOnce hostPath: path: "/tmp/data01" diff --git a/persistent-volumes/volumes/local-02.yaml b/persistent-volumes/volumes/local-02.yaml index 1f40d7a0..24bca725 100644 --- a/persistent-volumes/volumes/local-02.yaml +++ b/persistent-volumes/volumes/local-02.yaml @@ -7,5 +7,7 @@ metadata: spec: capacity: storage: 5Gi + accessModes: + - ReadWriteOnce hostPath: path: "/tmp/data02"