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
b78f811a
Commit
b78f811a
authored
6 years ago
by
Thomas MENARD
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile, gitlab-ci
parent
a74c69d3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifest.yaml
+40
-43
40 additions, 43 deletions
manifest.yaml
with
40 additions
and
43 deletions
manifest.yaml
+
40
−
43
View file @
b78f811a
...
...
@@ -2,32 +2,32 @@
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
postgres-claim
labels
:
app
:
postgresql
name
:
postgres-claim
labels
:
app
:
postgresql
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
---
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
postgresql-credentials
type
:
Opaque
name
:
postgresql-credentials
type
:
Opaque
data
:
username
:
cG9sbHNfdXNlcgo=
password
:
cG9sbHMK
database
:
cG9sbHMK
username
:
cG9sbHNfdXNlcgo=
password
:
cG9sbHMK
database
:
cG9sbHMK
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
postgresql
labels
:
app
:
postgresql
name
:
postgresql
labels
:
app
:
postgresql
spec
:
strategy
:
type
:
Recreate
...
...
@@ -74,25 +74,25 @@ template:
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
postgresql
labels
:
app
:
postgresql
name
:
postgresql
labels
:
app
:
postgresql
spec
:
ports
:
-
port
:
5432
selector
:
app
:
postgresql
tier
:
postgreSQL
ports
:
-
port
:
5432
selector
:
app
:
postgresql
tier
:
postgreSQL
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
polls
labels
:
app
:
polls
name
:
polls
labels
:
app
:
polls
spec
:
replicas
:
3
template
:
replicas
:
3
template
:
metadata
:
labels
:
app
:
polls
...
...
@@ -100,9 +100,6 @@ template:
containers
:
name
:
polls-app
image
:
$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME/polls:${CI_COMMIT_SHORT_SHA}
# This setting makes nodes pull the docker image every time before
# starting the pod. This is useful when debugging, but should be turned
# off in production.
imagePullPolicy
:
Always
env
:
-
name
:
DATABASE_NAME
...
...
@@ -130,15 +127,15 @@ template:
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
polls
labels
:
name
:
polls
labels
:
app
:
polls
spec
:
type
:
ClusterIP
ports
:
-
port
:
80
type
:
ClusterIP
ports
:
-
port
:
80
targetPort
:
8080
selector
:
selector
:
app
:
polls
---
apiVersion
:
extensions/v1beta1
...
...
@@ -153,11 +150,11 @@ spec:
rules
:
-
host
:
https://${CI_PROJECT_NAME}.k8s-dev.pasteur.fr
http
:
paths
:
-
backend
:
serviceName
:
polls
servicePort
:
80
path
:
/
paths
:
-
backend
:
serviceName
:
polls
servicePort
:
80
path
:
/
---
apiVersion
:
batch/v1
kind
:
Job
...
...
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