Associating Pods to the Nodes

This section describes how to associate a pod to the node based on their labels.

After you have configured a cluster, you can associate pods to the nodes through labels. This association enables the pods to get deployed on the appropriate node based on the key-value pair.

Labels are required for the pods to identify the nodes where they must get deployed and to run the services. For example, when you configure the protocol-layer label with the required key-value pair, the pods get deployed on the nodes that match the key-value pair.

To associate pods to the nodes through the labels, use the following configuration:

config 
  label 
    cdl-layer   
      key key_value 
      value value 
    oam-layer   
      key key_value 
      value value 
    protocol-layer   
      key key_value 
      value value 
    service-layer   
      key key_value 
      value value 
      end 

NOTES:

  • If you opt not to configure the labels, then PCF assumes the labels with the default key-value pair.

  • cdl-layer – Configures the key-value pair parameters for the CDL.

  • oam-layer – Configures the key-value pair parameters for the OAM layer.

  • protocol-layer – Configures the key-value pair parameters for the protocol layer.

  • service-layer – Configures the key-value pair parameters for the service layer.