Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python Django Template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amine GHOZLANE
Python Django Template
Commits
33a8d64d
Commit
33a8d64d
authored
6 years ago
by
Amine GHOZLANE
Browse files
Options
Downloads
Patches
Plain Diff
Update postgresql.yaml
parent
3402bc2a
No related branches found
No related tags found
No related merge requests found
Pipeline
#12562
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
postgresql.yaml
+83
-0
83 additions, 0 deletions
postgresql.yaml
with
83 additions
and
0 deletions
postgresql.yaml
+
83
−
0
View file @
33a8d64d
...
...
@@ -10,3 +10,86 @@ spec:
resources
:
requests
:
storage
:
1Gi
---
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
postgresql-credentials
type
:
Opaque
data
:
username
:
cG9sbHNfdXNlcgo=
password
:
cG9sbHMK
database
:
cG9sbHMK
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
postgresql
labels
:
app
:
postgresql
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
postgresql
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
app
:
postgresql
tier
:
postgreSQL
spec
:
containers
:
-
name
:
postgresql
image
:
postgres:9.6.2-alpine
env
:
-
name
:
POSTGRES_USER
valueFrom
:
secretKeyRef
:
name
:
postgresql-credentials
key
:
username
-
name
:
POSTGRES_DB
valueFrom
:
secretKeyRef
:
name
:
postgresql-credentials
key
:
database
-
name
:
POSTGRES_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
postgresql-credentials
key
:
password
ports
:
-
containerPort
:
5432
name
:
postgresql
resources
:
requests
:
memory
:
"
64Mi"
cpu
:
"
50m"
limits
:
memory
:
"
128Mi"
cpu
:
"
100m"
volumeMounts
:
-
name
:
postgresql
mountPath
:
/var/lib/postgresql/data
subPath
:
data
volumes
:
-
name
:
postgresql
persistentVolumeClaim
:
claimName
:
postgres-claim
-
name
:
postgresql-credentials
secret
:
secretName
:
postgresql-credentials
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
postgresql
labels
:
app
:
postgresql
spec
:
ports
:
-
port
:
5432
selector
:
app
:
postgresql
tier
:
postgreSQL
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment