Commit 4a648828 authored by Evan Read's avatar Evan Read Committed by Marcia Ramos

Fix deploy example and other fixes

parent 4f90f934
...@@ -87,6 +87,10 @@ Auto DevOps provides great defaults for all the stages; you can, however, ...@@ -87,6 +87,10 @@ Auto DevOps provides great defaults for all the stages; you can, however,
For an overview on the creation of Auto DevOps, read the blog post [From 2/3 of the Self-Hosted Git Market, to the Next-Generation CI System, to Auto DevOps](https://about.gitlab.com/2017/06/29/whats-next-for-gitlab-ci/). For an overview on the creation of Auto DevOps, read the blog post [From 2/3 of the Self-Hosted Git Market, to the Next-Generation CI System, to Auto DevOps](https://about.gitlab.com/2017/06/29/whats-next-for-gitlab-ci/).
NOTE: **Note**
Kubernetes clusters can [be used without](../../user/project/clusters/index.md)
Auto DevOps.
## Requirements ## Requirements
To make full use of Auto DevOps, you will need: To make full use of Auto DevOps, you will need:
......
# Kubernetes clusters # Kubernetes clusters
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/35954) for > - [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/35954) in GitLab 10.1 for projects.
> projects in GitLab 10.1. > - [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/34758) in
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/34758) for > GitLab 11.6 for [groups](../../group/clusters/index.md).
> [groups](../../group/clusters/index.md) in GitLab 11.6. > - [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/39840) in
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/39840) for > GitLab 11.11 for [instances](../../instance/clusters/index.md).
> [instances](../../instance/clusters/index.md) in GitLab 11.11.
GitLab provides many features with a Kubernetes integration. Kubernetes can be GitLab provides many features with a Kubernetes integration. Kubernetes can be
integrated with projects, but also: integrated with projects, but also:
...@@ -76,6 +75,9 @@ you will need the Kubernetes project integration enabled. ...@@ -76,6 +75,9 @@ you will need the Kubernetes project integration enabled.
[Read more about Auto DevOps](../../../topics/autodevops/index.md) [Read more about Auto DevOps](../../../topics/autodevops/index.md)
NOTE: **Note**
Kubernetes clusters can be used without Auto DevOps.
### Web terminals ### Web terminals
NOTE: **Note:** NOTE: **Note:**
...@@ -477,10 +479,10 @@ For example, let's say the following Kubernetes clusters exist in a project: ...@@ -477,10 +479,10 @@ For example, let's say the following Kubernetes clusters exist in a project:
| Cluster | Environment scope | | Cluster | Environment scope |
| ----------- | ----------------- | | ----------- | ----------------- |
| Development | `*` | | Development | `*` |
| Staging | `staging` |
| Production | `production` | | Production | `production` |
And the following environments are set in [`.gitlab-ci.yml`](../../../ci/yaml/README.md): And the following environments are set in
[`.gitlab-ci.yml`](../../../ci/yaml/README.md):
```yaml ```yaml
stages: stages:
...@@ -508,9 +510,12 @@ deploy to production: ...@@ -508,9 +510,12 @@ deploy to production:
The result will then be: The result will then be:
- The development cluster will be used for the "test" job. - The Development cluster details will be available in the `deploy to staging`
- The staging cluster will be used for the "deploy to staging" job. job.
- The production cluster will be used for the "deploy to production" job. - The production cluster details will be available in the `deploy to production`
job.
- No cluster details will be available in the `test` job because it doesn't
define any environment.
### Multiple Kubernetes clusters **(PREMIUM)** ### Multiple Kubernetes clusters **(PREMIUM)**
...@@ -615,8 +620,8 @@ use an A record. If your external endpoint is a hostname, use a CNAME record. ...@@ -615,8 +620,8 @@ use an A record. If your external endpoint is a hostname, use a CNAME record.
## Deploying to a Kubernetes cluster ## Deploying to a Kubernetes cluster
A Kubernetes cluster can be the destination for a deployment job, using A Kubernetes cluster can be the destination for a deployment job using special
special [deployment variables](#deployment-variables). [deployment variables](#deployment-variables).
### Deployment variables ### Deployment variables
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment