Last active
September 14, 2023 18:45
-
-
Save spy86/ad3abc6dac4a49117aa6d672a486eac2 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
echo "DOCKER" | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io -y | |
################################################################## | |
echo "KUBECTL" | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl | |
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/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.28/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update | |
sudo apt-get install -y kubectl | |
################################################################## | |
echo "MINIKUBE" | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb | |
sudo dpkg -i minikube_latest_amd64.deb | |
sudo usermod -aG docker $USER && newgrp docker | |
minikube config set driver docker | |
minikube start --driver=docker | |
kubectl get po -A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment