Last active
May 25, 2020 10:01
-
-
Save clrxbl/77d88d4d8076c138f163ef4787ac6518 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURRENT_IP=$(hostname -I | cut -d' ' -f1) | |
CURRENT_NODE=$(kubectl get nodes -o wide | grep "$CURRENT_IP" | cut -d " " -f1) | |
kubectl label node $CURRENT_NODE node-role.kubernetes.io/worker=worker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment