Aakash / k8s snippets
0 喜歡
0 分支
1 檔案
最後活躍 2 hours ago
this consist simply lovely snippets for k8s tasks
K8s Index
Collection of useful commands and code snippets related to K8s
Find and delete all pods with regex match
Note: Change ^name with pod name
Without force
kubectl delete pods $(kubectl get pods --no-headers -o custom-columns=":metadata.name" | grep ^name)
Aakash / k8s base install
0 喜歡
0 分支
1 檔案
最後活躍 2 hours ago
install all the nessesory thigns to run k8s in that VM/node
This script will install all the nessesory thigns to run k8s in that VM/node
sudo bash <<'EOF'
sudo apt update
sudo apt install -y containerd apt-transport-https ca-certificates curl gpg neovim btop
sudo curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.31/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo mkdir -p /etc/containerd
containerd config default | sudo tee /etc/containerd/config.toml
Aakash / Docker Install in ubuntu script
0 喜歡
0 分支
1 檔案
最後活躍 2 hours ago
Installation of docker in ubuntu made it in a single command which can be copy pated and then wait and sip our coffee
This script is used to install docker in Ubuntu
sudo bash <<'EOF'
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
if ! command -v curl &> /dev/null; then
sudo apt-get install -y curl
fi
sudo apt-get update
sudo apt-get install -y ca-certificates curl
上一頁
下一頁