nodeSelector

Description

The NodeSelector field allows users to specify a set of key value pair that must be matched against the node labels to decide whether DataPower Pods can be scheduled on that node. Only nodes matching all of these key value pairs in their labels will be selected for scheduling DataPower Pods. For more information, please see the Kubernetes documentation.

Example

The following illustrates how to schedule DataPower Pods only on nodes labeled hostType=gateway.

apiVersion: datapower.ibm.com/v1beta3
kind: DataPowerService
metadata:
  name: example-dpservice
spec:
  nodeSelector:
    hostType: gateway