Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
89c197a6
Commit
89c197a6
authored
Jun 03, 2016
by
Björn Rabenstein
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #456 from pdbogen/master
Update kubernetes SD documentation
parents
b480186d
927f5e03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
configuration.md
content/docs/operating/configuration.md
+15
-6
No files found.
content/docs/operating/configuration.md
View file @
89c197a6
...
...
@@ -317,20 +317,29 @@ create multiple target groups:
*
One for all API servers, with each API server as a target
(
`__meta_kubernetes_role=apiserver`
)
*
The default port is the port used for the API server itself.
*
One for all nodes, with each node as a target (
`__meta_kubernetes_role=node`
)
*
The default port is the Kubelet port from the Kubernetes configuration.
*
One for all services, with each service as a target
(
`__meta_kubernetes_role=service`
)
*
The default port is selected in an undefined manner. If your service
exposes multiple ports, you should explicitly configure relabeling to
indicate the proper port.
*
One for
*each*
service, with each service endpoint as a target
(
`__meta_kubernetes_role=endpoint`
)
*
The default port is selected in an undefined manner. If your service
exposes multiple ports, you should explicitly configure relabeling to
indicate the proper port.
*
One for all pods, with each pod as a target (
`__meta_kubernetes_role=pod`
)
*
The default port is the numerically lowest port exposed by Kubernetes for
the container that is alphabetically first by name.
*
A pod
**will not**
be created as a target if it does not include at least
one container that exposes at least one port.
*
One for
*each*
pod, with each container as a target
(
`__meta_kubernetes_role=container`
)
For services and containers, the port is the first port reported by Kubernetes.
For pods, the port is the "first port" for the first container reported by
Kubernetes. It is not guaranteed that Kubernetes will present these in a stable
order, so you should not rely on these selections unless you only have on port
per service/container and/or one container per pod.
*
The default port is the numerically lowest port.
*
A container
**will not**
be created as a target if it does not expose at
least one port.
The following meta labels are available on targets during relabeling:
...
...
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