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/sh | |
SWAPFILE=/var/lib/boot2docker/swapfile | |
SWAPSIZE=4 | |
if [ ! -f "$SWAPFILE" ]; then | |
dd if=/dev/zero of=$SWAPFILE bs=1024M count=$SWAPSIZE | |
mkswap $SWAPFILE | |
chmod 600 $SWAPFILE | |
fi |
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
#!/usr/bin/env bash | |
port=${port:-22} | |
while [ $# -gt 0 ]; do | |
if [[ $1 == *"--"* ]]; then | |
param="${1/--/}" | |
declare $param="$2" | |
# echo $1 $2 // Optional to see the parameter:value result |
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
kubectl delete pod NAME --grace-period=0 --force |
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
kubeadm reset | |
systemctl stop kubelet | |
systemctl stop docker | |
rm -rf /var/lib/cni/ | |
rm -rf /var/lib/kubelet/* | |
rm -rf /etc/cni/ | |
ifconfig cni0 down | |
ifconfig flannel.1 down | |
ifconfig docker0 down | |
ip link delete cni0 |