DEV Community

Choonho Son
Choonho Son

Posted on

Amazon EC2 & Minikube

In a Amazon EC2 VM, this guide is to install

  • docker
  • kubernetes (minikube)
  • kubectl
  • helm

Docker

https://docs.docker.com/desktop/install/fedora/

init docker repository

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
Enter fullscreen mode Exit fullscreen mode

Install docker

sudo yum update
sudo yum install docker
Enter fullscreen mode Exit fullscreen mode

Start docker

sudo service docker start
sudo usermod -aG docker ec2-user && newgrp docker
Enter fullscreen mode Exit fullscreen mode

Minikube

https://minikube.sigs.k8s.io/docs/start/

Image description

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
sudo rpm -Uvh minikube-latest.x86_64.rpm
Enter fullscreen mode Exit fullscreen mode

start minikube

minikube start --driver=docker --memory=4096mb
Enter fullscreen mode Exit fullscreen mode

kubectl

https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Enter fullscreen mode Exit fullscreen mode

helm

https://helm.sh/docs/intro/install/

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
Enter fullscreen mode Exit fullscreen mode

Top comments (0)