Skip to content

Instantly share code, notes, and snippets.

@spy86
Last active September 14, 2023 18:45
Show Gist options
  • Save spy86/ad3abc6dac4a49117aa6d672a486eac2 to your computer and use it in GitHub Desktop.
Save spy86/ad3abc6dac4a49117aa6d672a486eac2 to your computer and use it in GitHub Desktop.
#!/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