11 Aug 2021 11:36 AM
Hi all,
we have three labels in our kubernetes nodes: node-role.kubernetes.io/worker, node-role.kubernetes.io/infra and region.datacenter=1
I'm interested in monitor the kubernetes nodes with these labels:
(node-role.kubernetes.io/worker OR node-role.kubernetes.io/infra) AND region.datacenter=1
¿How can specify this in the yaml nodeSelector property? AND and OR label combinations...
Regards! Josep Maria
Solved! Go to Solution.
24 Aug 2021 07:12 AM
Hi all,
I answer myself, you're able to specify "AND" logic in the yaml nodeSelector property:
nodeSelector:
region.datacenter: Alcala1
dynatrace.managed: "true"
this selects nodes with property region.datacenter: Alcala1 AND dynatrace.managed: "true"
Regards! Josep Maria
25 Aug 2021 09:58 AM
Thank you, @jcamps for getting back with an answer! 👏 This is really valuable for other Community members.