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
3b5079bd
Commit
3b5079bd
authored
Mar 22, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add link to Kubernetes deploy Registry and fix .gitlab-ci.yml
[ci skip]
parent
f175ab05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
doc/user/project/deploy_boards.md
doc/user/project/deploy_boards.md
+16
-9
No files found.
doc/user/project/deploy_boards.md
View file @
3b5079bd
...
@@ -41,14 +41,16 @@ a value. Each project will need to have a unique namespace in Kubernetes as well
...
@@ -41,14 +41,16 @@ a value. Each project will need to have a unique namespace in Kubernetes as well
The complete requirements for Deploy Boards to display for a specific [environment] are:
The complete requirements for Deploy Boards to display for a specific [environment] are:
1.
You should have a Kubernetes cluster up and running
1.
You should have a Kubernetes cluster up and running
.
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.
Ensure a Kubernetes label of
`app=$CI_ENVIRONMENT_SLUG`
1.
Ensure a Kubernetes label of
`app=$CI_ENVIRONMENT_SLUG`
is applied to the deployments, replica sets, and pods. These resources should be contained in the namespace defined in Kubernetes service setting.
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`
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
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.
...
@@ -65,8 +67,10 @@ you use `review/*` for [review apps], the Deploy Board will appear collapsed ini
...
@@ -65,8 +67,10 @@ you use `review/*` for [review apps], the Deploy Board will appear collapsed ini
## 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 intelligent
`build`
,
`deploy`
and
`destroy`
commands
process to Kubernetes by providing intelligent
`build`
,
`deploy`
and
`destroy`
which you can use in your `.gitlab-ci.yml` as-is.
commands which you can use in your
`.gitlab-ci.yml`
as-is. For your convenience,
a
[
Docker image
][
kube-image
]
is also provided.
---
---
Another simple example would be the deployment of Nginx on Kubernetes.
Another simple example would be the deployment of Nginx on Kubernetes.
...
@@ -99,11 +103,13 @@ The `.gitlab-ci.yml` would be:
...
@@ -99,11 +103,13 @@ The `.gitlab-ci.yml` would be:
```
yaml
```
yaml
image
:
registry.gitlab.com/gitlab-examples/kubernetes-deploy
image
:
registry.gitlab.com/gitlab-examples/kubernetes-deploy
kubernetes deploy
:
stages
:
stage
:
-
deploy
-
deploy
kubernetes deploy
:
stage
:
deploy
environment
:
environment
:
name
:
$CI_BUILD_REF_NAME
name
:
production
script
:
script
:
-
echo "$KUBE_CA_PEM" > kube_ca.pem
-
echo "$KUBE_CA_PEM" > kube_ca.pem
-
cat kube_ca.pem
-
cat kube_ca.pem
...
@@ -148,3 +154,4 @@ Finally, the Nginx pod is created from the definition of the
...
@@ -148,3 +154,4 @@ Finally, the Nginx pod is created from the definition of the
[
review apps
]:
../../ci/review_apps/index.md
"Review Apps documentation"
[
review apps
]:
../../ci/review_apps/index.md
"Review Apps documentation"
[
variables
]:
../../ci/variables/README.md
"GitLab CI variables"
[
variables
]:
../../ci/variables/README.md
"GitLab CI variables"
[
autodeploy
]:
../../ci/autodeploy/index.md
"GitLab Autodeploy"
[
autodeploy
]:
../../ci/autodeploy/index.md
"GitLab Autodeploy"
[
kube-image
]:
https://gitlab.com/gitlab-examples/kubernetes-deploy/container_registry
"Kubernetes deploy Container Registry"
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