Pod Label Configuration
Pods can be labeled globally using the global.labels.podLabels
property and per-component using a
sub_chart_name.label.podLabels
configuration
property. Labels added globally are added to all pods in the installation. Labels defined
for a specific component are added to pods deployed by that sub-chart, in addition to any
globally defined labels.
The following Helm values file excerpt shows a label of vendor
with a
value of matrixx
and a label of environment
with a
value of live
added to all pods in the installation:
global:
labels:
podLabels:
vendor: matrixx
environment: live
The following excerpt adds a label of site
with a value of
siteb
for RS Gateway,
along with labels added globally:
global:
labels:
podLabels:
vendor: matrixx
environment: live
rsgateway:
labels:
podLabels:
site: siteb