Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Menu
Open sidebar
Soukaina Khalkhouli
global-knewledge
Commits
aafc775b
Commit
aafc775b
authored
May 24, 2021
by
Soukaina Khalkhouli
Browse files
test2
parent
ae8bdd97
Changes
1
Hide whitespace changes
Inline
Side-by-side
postgres-init-sample/2tpl-postgres-init.yaml
View file @
aafc775b
...
...
@@ -47,6 +47,7 @@ parameters:
description
:
Postresql admin password
required
:
true
objects
:
## Secrets
-
kind
:
Secret
# WEBHOOK SECRET
apiVersion
:
v1
...
...
@@ -147,15 +148,15 @@ objects:
app
:
${POSTGRESQL_APPNAME}
spec
:
volumes
:
-
name
:
${POSTGRESQL_PVCNAME}
-
name
:
postgres-storage-pvc-2
persistentVolumeClaim
:
claimName
:
postgres-storage-pvc
claimName
:
postgres-storage-pvc
-2
initContainers
:
-
name
:
${POSTGRESQL_APPNAME}-init
# INIT CONTAINER ${POSTGRESQL_APPNAME}-init
image
:
image-registry.openshift-image-registry.svc:5000/${NAMESPACE}/${POSTGRESQL_APPNAME}-init:latest
volumeMounts
:
-
mountPath
:
/pvc/postgres
name
:
${POSTGRESQL_PVCNAME}
name
:
postgres-storage-pvc-2
selector
:
name
:
${POSTGRESQL_APPNAME}
containers
:
...
...
@@ -176,7 +177,7 @@ objects:
value
:
${POSTGRESQL_ADMIN_PASSWORD}
volumeMounts
:
-
mountPath
:
/opt/app-root/src/postgresql-start
name
:
${POSTGRESQL_PVCNAME}
name
:
postgres-storage-pvc-2
triggers
:
-
type
:
ConfigChange
-
type
:
ImageChange
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment