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 are deployed on the nodes that match the key-value pair.
To associate pods to the nodes through the labels, use the following configuration:
config
k8 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
sctp-layer
key key_value
value value
end
NOTES:
-
label { cdl-layer { key key_value | value value } —Specify the key value pair for CDL.
-
oam-layer { key key_value | value value } —Specify the key value pair for OAM layer.
-
protocol-layer { key key_value | value value } —Specify the key value pair for protocol layer.
-
service-layer { key key_value | value value } —Specify the key value pair for the service layer.
-
sctp-layer { key key_value | value value } —Specify the key value pair for the SCTP layer.
Note | If you opt not to configure the labels, then AMF assumes the labels with the default key-value pair. |