summaryrefslogtreecommitdiff
path: root/contrib/k8s-lwl/node-labels.sh
blob: 3b9de5a2b4b90f016f78b346f38313d1cc680a8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

for node in lw-dione lw-helene; do
  kubectl label --overwrite node "$node" streaming.spreadspace.org/zone=source
done

kubectl label --overwrite node "lw-live-dist0" streaming.spreadspace.org/zone=dist-root
# for idx in $(seq 1 x); do
#   kubectl label --overwrite node "lw-live-dist$idx" streaming.spreadspace.org/zone=dist-level1
# done

for idx in $(seq -w 01 03); do
  kubectl label --overwrite node "lw-live-$idx" streaming.spreadspace.org/zone=dist-leaf
done

kubectl label --overwrite node "lw-live-00" streaming.spreadspace.org/zone=dist-lb