Code Review
/
ealt-edge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Some bug fixes
[ealt-edge.git]
/
mecm
/
mepm
/
applcm
/
resources
/
deployment
/
postgres-db-pvc.yaml
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
(file)
--- 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.
# See the License for the specific language governing permissions and
# limitations under the License.
-# yamllint disable
+
+# persistent volume
+---
+kind: PersistentVolume
apiVersion: v1
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
kind: PersistentVolumeClaim
+apiVersion: v1
metadata:
metadata:
- creationTimestamp: null
+ name: postgres-pv-claim
+ namespace: default
labels:
labels:
- io.kompose.service: my-db
- name: my-db
+ app: postgres
spec:
spec:
+ storageClassName: manual
accessModes:
accessModes:
- - ReadWriteOnce
+ - ReadWriteMany
resources:
requests:
resources:
requests:
- storage: 100Mi
-status: {}
-
-# yamllint enable
+ storage: 5Gi