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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
5cb49663
Commit
5cb49663
authored
Sep 08, 2017
by
Achilleas Pipinellis
Committed by
Achilleas Pipinellis
Sep 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify k8s project namespace
parent
c8e60d63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
24 deletions
+31
-24
doc/user/project/integrations/img/kubernetes_configuration.png
...ser/project/integrations/img/kubernetes_configuration.png
+0
-0
doc/user/project/integrations/kubernetes.md
doc/user/project/integrations/kubernetes.md
+31
-24
No files found.
doc/user/project/integrations/img/kubernetes_configuration.png
View replaced file @
c8e60d63
View file @
5cb49663
111 KB
|
W:
|
H:
14.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
doc/user/project/integrations/kubernetes.md
View file @
5cb49663
...
@@ -13,32 +13,39 @@ template, see the [Services Templates](services_templates.md) document.
...
@@ -13,32 +13,39 @@ template, see the [Services Templates](services_templates.md) document.
## Configuration
## Configuration
Navigate to the
[
Integrations page
](
project_services.md#accessing-the-project-services
)
Navigate to the
[
Integrations page
](
project_services.md#accessing-the-project-services
)
of your project and select the
**Kubernetes**
service to configure it.
of your project and select the
**Kubernetes**
service to configure it. Fill in
all the needed parameters, check the "Active" checkbox and hit
**Save changes**
for the changes to take effect.
![
Kubernetes configuration settings
](
img/kubernetes_configuration.png
)
![
Kubernetes configuration settings
](
img/kubernetes_configuration.png
)
The Kubernetes service takes the following arguments:
The Kubernetes service takes the following parameters:
1.
API URL
-
**API URL**
-
1.
Custom CA bundle
It's the URL that GitLab uses to access the Kubernetes API. Kubernetes
1.
Kubernetes namespace
exposes several APIs, we want the "base" URL that is common to all of them,
1.
Service token
e.g.,
`https://kubernetes.example.com`
rather than
`https://kubernetes.example.com/api/v1`
.
-
**CA certificate**
(optional) -
The API URL is the URL that GitLab uses to access the Kubernetes API. Kubernetes
If the API is using a self-signed TLS certificate, you'll also need to include
exposes several APIs - we want the "base" URL that is common to all of them,
the
`ca.crt`
contents here.
e.g.,
`https://kubernetes.example.com`
rather than
`https://kubernetes.example.com/api/v1`
.
-
**Project namespace**
(optional) - The following apply:
-
By default you don't have to fill it in; by leaving it blank, GitLab will
GitLab authenticates against Kubernetes using service tokens, which are
create one for you.
scoped to a particular
`namespace`
. If you don't have a service token yet,
-
Each project should have a unique namespace.
you can follow the
-
The project namespace is not necessarily the namespace of the secret, if
[
Kubernetes documentation
](
http://kubernetes.io/docs/user-guide/service-accounts/
)
you're using a secret with broader permissions, like the secret from
`default`
.
to create one. You can also view or create service tokens in the
-
You should
**not**
use
`default`
as the project namespace.
[
Kubernetes dashboard
](
http://kubernetes.io/docs/user-guide/ui/
)
- visit
-
If you or someone created a secret specifically for the project, usually
`Config -> Secrets`
.
with limited permissions, the secret's namespace and project namespace may
be the same.
Fill in the service token and namespace according to the values you just got.
-
**Token**
-
If the API is using a self-signed TLS certificate, you'll also need to include
GitLab authenticates against Kubernetes using service tokens, which are
the
`ca.crt`
contents as the
`Custom CA bundle`
.
scoped to a particular
`namespace`
. If you don't have a service token yet,
you can follow the
[
Kubernetes documentation
](
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
)
to create one. You can also view or create service tokens in the
[
Kubernetes dashboard
](
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/#config
)
(under
**Config > Secrets**
).
## Deployment variables
## Deployment variables
...
@@ -59,7 +66,7 @@ GitLab CI build environment:
...
@@ -59,7 +66,7 @@ GitLab CI build environment:
## Web terminals
## Web terminals
>**NOTE
:**
NOTE:
**Note
:**
Added in GitLab 8.15. You must be the project owner or have
`master`
permissions
Added in GitLab 8.15. You must be the project owner or have
`master`
permissions
to use terminals. Support is currently limited to the first container in the
to use terminals. Support is currently limited to the first container in the
first pod of your environment.
first pod of your environment.
...
...
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