mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
d96f50e7c6
2. Updated the ds to a job for node labelling. 3. Added script to run a job in each node. 4. Updated Readme.
9 lines
250 B
Bash
Executable file
9 lines
250 B
Bash
Executable file
#!/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
|
|
|
|
|
|
|