> Be brave and try not to cry, you will probably fail at some steps and this tutorial is likely already outdated. Hopefully this can help a little.
...
...
@@ -8,7 +8,7 @@ Summary of the steps you need to do:
2.[Contact the DSI to create namespaces](#namespaces-creation)
3.[Configure your project](#configure-your-project)
## Namespaces creation
## :label: Namespaces creation
You need to contact the DSI either by email or on [Rocket.Chat](https://rocketchat.pasteur.cloud/channel/support-kubernetes-gitlab-ci-cd/channel-settings).
...
...
@@ -20,11 +20,11 @@ You can give as much information as possible to the team for creation:
* Is the service going to be available on Pasteur network only or on the web
* Anything you might think of that could be useful
## Configure your project
## :open_file_folder: Configure your project
### Deploy tokens
### :key: Deploy tokens
> You can name variables the way you want, of course.
> 💬 You can name variables the way you want, of course.
1. Create your token (`Settings/Repository/Deploy tokens`)
***name**: kubernetes
...
...
@@ -33,7 +33,11 @@ You can give as much information as possible to the team for creation:
* Add the username (by default `gitlab+deploy-token-xx`) and name it `DEPLOY_USER`
* Add the token and name it `DEPLOY_TOKEN`
### Build your image
### :package: Build your image
To run your app on Kubernetes, you first need to have `Dockerfile` for your different services.
> 💬 Let's take the example, for the backend of an application.
First you need to build your image during the CI in gitlab. For this, I recommand to write a script that do this process and call it in the `.gitlab-ci.yml`: