State in the docs that the value of default Node labels are not reliable. (#7794)

This commit is contained in:
Bobby (Babak) Salamat
2018-03-20 18:24:04 -07:00
committed by k8s-ci-robot
parent 5729a241db
commit 134cf819a4
@@ -77,6 +77,11 @@ with a standard set of labels. As of Kubernetes v1.4 these labels are
* `beta.kubernetes.io/os`
* `beta.kubernetes.io/arch`
**Note:** The value of these labels is cloud provider specific and is not guaranteed to be reliable.
For example, the value of `kubernetes.io/hostname` may be the same as the Node name in some environments
and a different value in other environments.
{: .note}
## Affinity and anti-affinity
`nodeSelector` provides a very simple way to constrain pods to nodes with particular labels. The affinity/anti-affinity