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
Changes done for bug fixes
[ealt-edge.git]
/
ocd
/
infra
/
playbooks
/
roles
/
applcm
/
files
/
deploy
/
postgres-db-pvc.yaml
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
(file)
--- 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.
# See the License for the specific language governing permissions and
# limitations under the License.
-# yamllint disable
+
+# persistent volume
+---
+kind: PersistentVolume
apiVersion: v1
apiVersion: v1
-kind: Service
metadata:
metadata:
- annotations:
- kompose.cmd: kompose convert
- kompose.version: 1.21.0 (992df58d8)
- creationTimestamp: null
+ name: postgres-pv-volume
labels:
labels:
- io.kompose.service: db
- name: dbhost
+ type: local
+ app: postgres
spec:
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