Commit 0642ca71 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

docs: use top base job to enable multiple environments

parent 7d6b13bc
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -349,13 +349,13 @@ The Kubernetes template allows deploying multiple environments in parallel. Use
- multi-instances deployment of the same application.

This feature can be enabled using the [parallel matrix jobs](https://docs.gitlab.com/ee/ci/yaml/#parallelmatrix)
pattern at the `.k8s-env-base` job level (this is the top parent job of all deployment jobs).
pattern at the `.k8s-base` job level (the template's base job).
Environments namespacing is ensured by the `K8S_ENVIRONMENT_NAMESPACE` variable (must start with a slash `/`).

Here is the example of the `.gitlab-ci.yml` file for a project deploying both a frontend and a backend applications:

```yaml
.k8s-env-base:
.k8s-base:
  parallel:
    matrix:
      - K8S_ENVIRONMENT_NAMESPACE: "/front"