-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Artiom Diomin <kron82@gmail.com>
- Loading branch information
Showing
5 changed files
with
21 additions
and
27 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 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,13 +1,22 @@ | ||
set -xeu pipefail | ||
export "PATH=$PATH:/sbin:/usr/local/bin:/opt/bin" | ||
|
||
# Stop kubelet | ||
sudo systemctl stop kubelet || true | ||
|
||
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni | ||
sudo yum remove -y \ | ||
kubelet \ | ||
kubeadm \ | ||
kubectl \ | ||
kubernetes-cni | ||
|
||
# Stop kubelet | ||
# Remove CNI and binaries | ||
sudo rm -rf /opt/cni /opt/bin/kubeadm /opt/bin/kubectl /opt/bin/kubelet | ||
# Remove symlinks | ||
sudo rm -rf /usr/bin/kubeadm /usr/bin/kubectl /usr/bin/kubelet | ||
# Remove systemd unit files | ||
sudo rm -f /etc/systemd/system/kubelet.service /etc/systemd/system/kubelet.service.d/10-kubeadm.conf | ||
|
||
# Reload systemd | ||
sudo systemctl daemon-reload |
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