X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fapplcm%2Ffiles%2Fdeploy%2Fpostgres-db-pvc.yaml;fp=ocd%2Finfra%2Fplaybooks%2Froles%2Fapplcm%2Ffiles%2Fdeploy%2Fdb-service.yaml;h=85aac621ba6a964e417ea110e6e65cb16398fe33;hb=995547b0dc8084266a7ff02da90931615b4318a3;hp=ee1adb2f1a738e8fcc0bc4097fb9435d8ce93f90;hpb=91d6efdc1b75562abed73af65ef017800eac977d;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/applcm/files/deploy/db-service.yaml b/ocd/infra/playbooks/roles/applcm/files/deploy/postgres-db-pvc.yaml similarity index 56% rename from ocd/infra/playbooks/roles/applcm/files/deploy/db-service.yaml rename to ocd/infra/playbooks/roles/applcm/files/deploy/postgres-db-pvc.yaml index ee1adb2..85aac62 100644 --- a/ocd/infra/playbooks/roles/applcm/files/deploy/db-service.yaml +++ b/ocd/infra/playbooks/roles/applcm/files/deploy/postgres-db-pvc.yaml @@ -12,25 +12,38 @@ # See the License for the specific language governing permissions and # limitations under the License. -# yamllint disable + +# persistent volume +--- +kind: PersistentVolume apiVersion: v1 -kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.21.0 (992df58d8) - creationTimestamp: null + name: postgres-pv-volume labels: - io.kompose.service: db - name: dbhost + type: local + app: postgres spec: - ports: - - name: "3306" - port: 3306 - targetPort: 3306 - selector: - io.kompose.service: db -status: - loadBalancer: {} + storageClassName: manual + capacity: + storage: 5Gi + accessModes: + - ReadWriteMany + hostPath: + path: "/data" -# yamllint enable +# pvc +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: postgres-pv-claim + namespace: default + labels: + app: postgres +spec: + storageClassName: manual + accessModes: + - ReadWriteMany + resources: + requests: + storage: 5Gi