Changes done for bug fixes
[ealt-edge.git] / ocd / infra / playbooks / roles / applcm / files / deploy / postgres-db-pvc.yaml
 # 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