Minikube

1699 ワード

1.Dockerのインストール

방법 1
sudo apt update
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt-get install apt-transport-https ca-certificates curl 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 –y
sudo docker run hello-world

방법 2
sudo apt update
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker

# 일반 유저에 docker 권한 수정 명령어
sudo usermod -aG docker $USER && newgrp docker

2.Minikubeのインストール

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb

minikube start --driver=docker

3.Kubectlのインストール

sudo apt install apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
sudo apt install kubectl -y
次のように、ノードとコンテナの動作を確認します.

4.Minikube接続



5.Minikubeの削除

minikube delete --all
Can Do It
brb