-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop copying admin.conf to $HOME (#936)
* Stop copying admin.conf and use it directly As $HOME is not always persisted (Flatcar/Coreos) Signed-off-by: Artiom Diomin <artiom@loodse.com> * Get rid of kubectl --kubeconfig Signed-off-by: Artiom Diomin <artiom@loodse.com>
- Loading branch information
Showing
10 changed files
with
13 additions
and
91 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
set -xeu pipefail | ||
export "PATH=$PATH:/sbin:/usr/local/bin:/opt/bin" | ||
|
||
export KUBECONFIG=/etc/kubernetes/admin.conf | ||
sudo kubectl drain testNode1 --ignore-daemonsets --delete-local-data | ||
sudo KUBECONFIG=/etc/kubernetes/admin.conf \ | ||
kubectl drain testNode1 --ignore-daemonsets --delete-local-data |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
set -xeu pipefail | ||
export "PATH=$PATH:/sbin:/usr/local/bin:/opt/bin" | ||
|
||
export KUBECONFIG=/etc/kubernetes/admin.conf | ||
sudo kubectl uncordon testNode2 | ||
sudo KUBECONFIG=/etc/kubernetes/admin.conf \ | ||
kubectl uncordon testNode2 |
This file contains 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
This file contains 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