1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/label-nodes.sh

10 lines
250 B
Bash
Raw Normal View History

#!/bin/bash
NumNodes=$(kubectl get nodes | grep -i ready | wc -l)
sed -e "s/COMPLETION_COUNT/$NumNodes/" -e "s/PARALLELISM_COUNT/$NumNodes/" featurelabeling-job.json.template > featurelabeling-job.json
kubectl create -f featurelabeling-job.json