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
Kubernetes Templates
Python Django Template
Commits
9b249a07
Commit
9b249a07
authored
5 years ago
by
Thomas MENARD
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile, gitlab-ci
parent
5d27a8cc
No related branches found
No related tags found
1 merge request
!1
Update with a working example
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifest.yaml
+41
-41
41 additions, 41 deletions
manifest.yaml
with
41 additions
and
41 deletions
manifest.yaml
+
41
−
41
View file @
9b249a07
...
...
@@ -29,47 +29,47 @@ metadata:
labels
:
app
:
postgresql
spec
:
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
app
:
postgresql
tier
:
postgreSQL
spec
:
containers
:
-
image
:
postgres:9.6.2-alpine
name
:
postgresql
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
volumeMounts
:
-
name
:
postgresql
mountPath
:
/var/lib/postgresql/data
subPath
:
data
volumes
:
-
name
:
postgresql
persistentVolumeClaim
:
claimName
:
postgres-claim
-
name
:
postgresql-credentials
secret
:
secretName
:
postgresql
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
app
:
postgresql
tier
:
postgreSQL
spec
:
containers
:
-
image
:
postgres:9.6.2-alpine
name
:
postgresql
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
volumeMounts
:
-
name
:
postgresql
mountPath
:
/var/lib/postgresql/data
subPath
:
data
volumes
:
-
name
:
postgresql
persistentVolumeClaim
:
claimName
:
postgres-claim
-
name
:
postgresql-credentials
secret
:
secretName
:
postgresql
---
apiVersion
:
v1
kind
:
Service
...
...
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