Commit e22d3bb8 authored by Patrick Bogen's avatar Patrick Bogen

Update configuration documentation to present correct information about...

Update configuration documentation to present correct information about port/container selection algorithms; and to provide a warning about the requirement to expose at least one port on pods
parent b480186d
...@@ -317,20 +317,29 @@ create multiple target groups: ...@@ -317,20 +317,29 @@ create multiple target groups:
* One for all API servers, with each API server as a target * One for all API servers, with each API server as a target
(`__meta_kubernetes_role=apiserver`) (`__meta_kubernetes_role=apiserver`)
* The default port is that used for the API server itself.
* One for all nodes, with each node as a target (`__meta_kubernetes_role=node`) * 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 * One for all services, with each service as a target
(`__meta_kubernetes_role=service`) (`__meta_kubernetes_role=service`)
* The default port is selected in an undefined manner. If you have multiple
ports on your service, you should explicitly configure relabeling to
indicate the proper port.
* One for *each* service, with each service endpoint as a target * One for *each* service, with each service endpoint as a target
(`__meta_kubernetes_role=endpoint`) (`__meta_kubernetes_role=endpoint`)
* The default port is selected in an undefined manner. If you have multiple
ports on your service, you should explicitly configure relabeling to
indicate the proper port.
* One for all pods, with each pod as a target (`__meta_kubernetes_role=pod`) * One for all pods, with each pod as a target (`__meta_kubernetes_role=pod`)
* The default port is the numerically lowest port on 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 * One for *each* pod, with each container as a target
(`__meta_kubernetes_role=container`) (`__meta_kubernetes_role=container`)
* The default port is the numerically lowest port.
For services and containers, the port is the first port reported by Kubernetes. * A container **will not** be created as a target if it does not expose at
For pods, the port is the "first port" for the first container reported by least one port.
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 following meta labels are available on targets during relabeling: The following meta labels are available on targets during relabeling:
......
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