Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 961 Bytes

File metadata and controls

24 lines (17 loc) · 961 Bytes

Node labels

This example shows how to label nodes with the following topology labels:

  • topology.outscale.com/cluster
  • topology.outscale.com/server

This allows deployments scenarios where:

  • latency is critical, and pods should be deployed in the same cluster/on the same server,
  • redundancy is critical, and pods should be deployed in different clusters/on different servers.

It is expected that nodes are deployed using attract/repulse placement contraints.

The example deploys osc-labeler as a daemonset.

  • Deploy the example
kubectl apply -f examples/node-labels/example.yaml
  • View cluster/server node labels
kubectl get nodes -o custom-columns=NAME:.metadata.name,CLUSTER:.metadata.labels.topology\\.outscale\\.com/cluster,SERVER:.metadata.labels.topology\\.outscale\\.com/server