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
5963cb89
Commit
5963cb89
authored
6 years ago
by
Thomas MENARD
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
7e50584e
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
README.md
+6
-6
6 additions, 6 deletions
README.md
with
6 additions
and
6 deletions
README.md
+
6
−
6
View file @
5963cb89
...
...
@@ -20,7 +20,7 @@ In order to deploy this app on Kubernetes we will need to complete the following
*
Setup Gitlab CI in order to define the Continuous Delivery (CD)
## Step by step guide
1.
Create Docker Registry Access Token
###
Create Docker Registry Access Token
One of the many Gitlab feature is the ability to host docker images.
In order to permit Kubernetes to fetch those images, you need to provide an access token.
...
...
@@ -32,7 +32,7 @@ Please follow the following steps in order to create the access token :

2.
Declare the docker registry access token in variables
###
Declare the docker registry access token in variables
We will reuse the previously created access token in order to reuse them in the Continuous Integration pipeline.
To do that we will store them in CI variables that we will use during our CI pipeline.
...
...
@@ -45,7 +45,7 @@ To do that we will store them in CI variables that we will use during our CI pip

3.
Create the Dockerfile
###
Create the Dockerfile
In the root directory of your project create
`Dockerfile`
file and fill it like the following :
```
docker
...
...
@@ -79,7 +79,7 @@ ADD . /app
CMD
gunicorn -b :$PORT mysite.wsgi
```
4.
Setup Gitlab CI
###
Setup Gitlab CI
At the root of your git repository create a
`.gitlab-ci.yaml`
file.
...
...
@@ -115,7 +115,7 @@ Save, commit and push; you should be abble to see your first running pipeline
Once succesfully completed, you can see the docker image in the
`Registry`
section on the left pane.
5.
Create manifest yaml file
###
Create manifest yaml file
Create a file `manifest.yaml` at the root directory of your git repository and fill it with the following definition.
> Keep in mind that yaml formating require that you seperate each declaration with `---` line.
...
...
@@ -358,7 +358,7 @@ Once succesfully completed, you can see the docker image in the `Registry`sectio
restartPolicy: Never
backoffLimit: 5
```
6.
Setup Continuous Delivery in Gitlab CI
###
Setup Continuous Delivery in Gitlab CI
```
yaml
deploy
:
...
...
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