Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
11e7d29c
Commit
11e7d29c
authored
Mar 21, 2017
by
Joshua Lambert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor tweaks
parent
fa8d2e53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
doc/user/project/deploy_boards.md
doc/user/project/deploy_boards.md
+11
-12
No files found.
doc/user/project/deploy_boards.md
View file @
11e7d29c
...
@@ -43,29 +43,28 @@ The complete requirements for Deploy Boards to display for a specific [environme
...
@@ -43,29 +43,28 @@ The complete requirements for Deploy Boards to display for a specific [environme
1.
Configure the
[
Kubernetes service
][
kube-service
]
in your project for the cluster.
1.
Configure the
[
Kubernetes service
][
kube-service
]
in your project for the cluster.
1.
GitLab Runner should be configured with the
[
Docker
][
docker-exec
]
or
1.
GitLab Runner should be configured with the
[
Docker
][
docker-exec
]
or
[
Kubernetes
][
kube-exec
]
executor
[
Kubernetes
][
kube-exec
]
executor
1.
Use the Kubernetes labels and label your deployments
`app=$CI_ENVIRONMENT_SLUG`
1.
Ensure a Kubernetes label of
`app=$CI_ENVIRONMENT_SLUG`
in the unique namespace specified in the Kubernetes service setting. GitLab has a
is applied to the deployments, replica sets, and pods. These resources should be contained in the namespace defined in Kubernetes service setting.
1.
Optionally, use an [Autodeploy]
`.gitlab-ci.yml`
template which has predefined stages and commands to use, and automatically applies the labeling. GitLab also has a
[
Kubernetes deployment example
](
#using-the-kubernetes-deploy-example-project
)
[
Kubernetes deployment example
](
#using-the-kubernetes-deploy-example-project
)
which can simplify the build and deployment process.
which can simplify the build and deployment process.
1.
Optionally, use an [Autodeploy]
`.gitlab-ci.yml`
template which has predefined stages and commands to use.
Once all of the above are set up and the pipeline has run at least once,
Once all of the above are set up and the pipeline has run at least once,
navigate to the environments page under
**Pipelines ➔ Environments**
. GitLab
navigate to the environments page under
**Pipelines ➔ Environments**
. GitLab
will query Kubernetes for the state of each node (e.g.,
spinning up, down
,
will query Kubernetes for the state of each node (e.g.,
waiting, deploying
,
running version A, running version B
) and the Deploy Board status will be displayed on
finished, unknown
) and the Deploy Board status will be displayed on
the environments page.
the environments page.
B
are
in mind that Deploy Boards are collapsed under their respective environment,
B
ear
in mind that Deploy Boards are collapsed under their respective environment,
but can be expanded. Only top-level environments are expanded by default. So
if
and can be expanded. Only top-level environments are expanded by default. For example
if
you use
`review/*`
for [review apps], the Deploy Board
s
will appear collapsed initially.
you use
`review/*`
for [review apps], the Deploy Board will appear collapsed initially.
## Using the Kubernetes deploy example project
## Using the Kubernetes deploy example project
The
[
kubernetes-deploy
][
kube-deploy
]
project is used to simplify the deployment
The
[
kubernetes-deploy
][
kube-deploy
]
project is used to simplify the deployment
process to Kubernetes by providing the
`build`
,
`deploy`
and
`destroy`
commands
process to Kubernetes by providing intelligent
`build`
,
`deploy`
and
`destroy`
commands
which you can use in your
`.gitlab-ci.yml`
as-is.
which you can use in your `.gitlab-ci.yml` as-is.
---
---
Another simple example would be the deployment of Nginx on Kubernetes.
Another simple example would be the deployment of Nginx on Kubernetes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment