| `K8S_KUBECTL_IMAGE` | the Docker image used to run Kubernetes `kubectl` commands <br/>:warning: **set the version required by your Kubernetes server** | `bitnami/kubectl:latest` |
| `K8S_REVIEW_APP_NAME` | application name for `review` env | `"${K8S_BASE_APP_NAME}-${CI_COMMIT_REF_SLUG}"` |
| `K8S_REVIEW_ENVIRONMENT_URL`| The review environments url _(only define for static environment URLs declaration and if different from default)_ | `$K8S_ENVIRONMENT_URL` |
| :lock: `K8S_REVIEW_KUBE_CONFIG` | kubeconfig content used by `kubectl` for `review` env _(only define if not using exploded kubeconfig parameters and if different from default)_ | `$K8S_DEFAULT_KUBE_CONFIG` |
| `K8S_REVIEW_URL` | Kubernetes API url for `review` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_URL` |
| `K8S_REVIEW_CA_CERT` | the Kubernetes server certificate authority for `review` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_CA_CERT` |
| :lock: `K8S_REVIEW_TOKEN`| service account token for `review` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_TOKEN` |
| `K8S_INTEG_APP_NAME` | application name for `integration` env | `$K8S_BASE_APP_NAME-integration` |
| `K8S_INTEG_ENVIRONMENT_URL`| The integration environment url _(only define for static environment URLs declaration and if different from default)_ | `$K8S_ENVIRONMENT_URL` |
| :lock: `K8S_INTEG_KUBE_CONFIG` | kubeconfig content used by `kubectl` for `integration` env _(only define if not using exploded kubeconfig parameters and if different from default)_ | `$K8S_DEFAULT_KUBE_CONFIG` |
| `K8S_INTEG_URL` | Kubernetes API url for `integration` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_URL` |
| `K8S_INTEG_CA_CERT` | the Kubernetes server certificate authority for `integration` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_CA_CERT` |
| :lock: `K8S_INTEG_TOKEN` | service account token for `integration` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_TOKEN` |
| `K8S_INTEG_ENVIRONMENT_URL` | The integration environment url **including scheme** (ex: `https://my-application-integration.nonpublic.k8s.domain.com`). Do not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that. | _none_ |
### Staging environment configuration
@@ -410,11 +408,11 @@ Here are variables supported to configure the staging environment:
| `K8S_STAGING_APP_NAME` | application name for `staging` env | `$K8S_BASE_APP_NAME-staging` |
| `K8S_STAGING_ENVIRONMENT_URL`| The staging environment url _(only define for static environment URLs declaration and if different from default)_ | `$K8S_ENVIRONMENT_URL` |
| :lock: `K8S_STAGING_KUBE_CONFIG` | kubeconfig content used by `kubectl` for `staging` env _(only define if not using exploded kubeconfig parameters and if different from default)_ | `$K8S_DEFAULT_KUBE_CONFIG` |
| `K8S_STAGING_URL` | Kubernetes API url for `staging` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_URL` |
| `K8S_STAGING_CA_CERT` | the Kubernetes server certificate authority for `staging` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_CA_CERT` |
| :lock: `K8S_STAGING_TOKEN`| service account token for `staging` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_TOKEN` |
| `K8S_STAGING_ENVIRONMENT_URL` | The staging environment url **including scheme** (ex: `https://my-application-staging.nonpublic.k8s.domain.com`). Do not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that. | _none_ |
### Production environment configuration
@@ -428,12 +426,12 @@ Here are variables supported to configure the production environment:
| `K8S_PROD_APP_NAME` | application name for `production` env | `$K8S_BASE_APP_NAME` |
| `K8S_PROD_ENVIRONMENT_URL`| The production environment url _(only define for static environment URLs declaration and if different from default)_ | `$K8S_ENVIRONMENT_URL` |
| :lock: `K8S_PROD_KUBE_CONFIG` | kubeconfig content used by `kubectl` for `production` env _(only define if not using exploded kubeconfig parameters and if different from default)_ | `$K8S_DEFAULT_KUBE_CONFIG` |
| `K8S_PROD_URL` | Kubernetes API url for `production` env _(only define if using exploded kubeconfig parameters and if different from default)_| `$K8S_URL` |
| `K8S_PROD_CA_CERT` | the Kubernetes server certificate authority for `production` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_CA_CERT` |
| :lock: `K8S_PROD_TOKEN` | service account token for `production` env _(only define if using exploded kubeconfig parameters and if different from default)_ | `$K8S_TOKEN` |
| `AUTODEPLOY_TO_PROD` | Set this variable to auto-deploy to production. If not set deployment to production will be `manual` (default behaviour). | _none_ (disabled) |
| `K8S_PROD_ENVIRONMENT_URL` | The production environment url **including scheme** (ex: `https://my-application.public.k8s.domain.com`) Do not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that. | _none_ |
"description":"The review environment domain (ex: `noprod-kubernetes.domain.com`).\n\nBy default review `environment.url` will be built as `${K8S_REVIEW_ENVIRONMENT_SCHEME}://${$CI_PROJECT_NAME}-${CI_ENVIRONMENT_SLUG}.${K8S_REVIEW_ENVIRONMENT_DOMAIN}`",
"mandatory":true
"name":"K8S_REVIEW_ENVIRONMENT_URL",
"type":"url",
"description":"The review environments url _(only define for static environment URLs declaration and if different from default)_",
"advanced":true
},
{
"name":"K8S_REVIEW_KUBE_CONFIG",
@@ -134,8 +134,8 @@
{
"name":"K8S_INTEG_ENVIRONMENT_URL",
"type":"url",
"description":"The integration environment url including scheme (ex: `https://my-application-integration.noprod-kubernetes.domain.com`).\n\nDo not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that.",
"mandatory":true
"description":"The integration environment url _(only define for static environment URLs declaration and if different from default)_",
"advanced":true
},
{
"name":"K8S_INTEG_KUBE_CONFIG",
@@ -178,8 +178,8 @@
{
"name":"K8S_STAGING_ENVIRONMENT_URL",
"type":"url",
"description":"The staging environment url including scheme (ex: `https://my-application-staging.noprod-kubernetes.domain.com`).\n\nDo not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that.",
"mandatory":true
"description":"The staging environment url _(only define for static environment URLs declaration and if different from default)_",
"advanced":true
},
{
"name":"K8S_STAGING_KUBE_CONFIG",
@@ -222,8 +222,8 @@
{
"name":"K8S_PROD_ENVIRONMENT_URL",
"type":"url",
"description":"The production environment url including scheme (ex: `https://my-application.kubernetes.domain.com`).\n\nDo not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that.",
"mandatory":true
"description":"The production environment url _(only define for static environment URLs declaration and if different from default)_",