X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=mecm%2Fmepm%2Fapplcm%2Fresources%2Fdeployment%2Fpostgres-db-pvc.yaml;fp=mecm%2Fmepm%2Fapplcm%2Fresources%2Fdeployment%2Fmy-db-persistentvolumeclaim.yaml;h=85aac621ba6a964e417ea110e6e65cb16398fe33;hb=91d6efdc1b75562abed73af65ef017800eac977d;hp=a0e6cfc9eefcac9546e9fa4cb9a914d57e14d8ef;hpb=4319a9b65e74956509c59d15ba0e8aafceaa13d8;p=ealt-edge.git diff --git a/mecm/mepm/applcm/resources/deployment/my-db-persistentvolumeclaim.yaml b/mecm/mepm/applcm/resources/deployment/postgres-db-pvc.yaml similarity index 63% rename from mecm/mepm/applcm/resources/deployment/my-db-persistentvolumeclaim.yaml rename to mecm/mepm/applcm/resources/deployment/postgres-db-pvc.yaml index a0e6cfc..85aac62 100644 --- a/mecm/mepm/applcm/resources/deployment/my-db-persistentvolumeclaim.yaml +++ b/mecm/mepm/applcm/resources/deployment/postgres-db-pvc.yaml @@ -12,20 +12,38 @@ # See the License for the specific language governing permissions and # limitations under the License. -# yamllint disable + +# persistent volume +--- +kind: PersistentVolume apiVersion: v1 +metadata: + name: postgres-pv-volume + labels: + type: local + app: postgres +spec: + storageClassName: manual + capacity: + storage: 5Gi + accessModes: + - ReadWriteMany + hostPath: + path: "/data" + +# pvc +--- kind: PersistentVolumeClaim +apiVersion: v1 metadata: - creationTimestamp: null + name: postgres-pv-claim + namespace: default labels: - io.kompose.service: my-db - name: my-db + app: postgres spec: + storageClassName: manual accessModes: - - ReadWriteOnce + - ReadWriteMany resources: requests: - storage: 100Mi -status: {} - -# yamllint enable + storage: 5Gi