0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Minikube入門

Last updated at Posted at 2020-08-07

インストール

Amazon EC2で、Minikubeを動かしてみた。

sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent     software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key  add -
sudo add-apt-repository     "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt install -y docker-ce
sudo apt install -y conntrack
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64   && chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/
sudo minikube start --driver=none
sudo cp -r /root/.kube /root/.minikube $HOME
sudo chown -R $USER $HOME/.kube $HOME/.minikube
sudo cp .minikube/cache/linux/v1.18.3/kubectl /usr/local/bin/kubectl

この環境で動いたソフト

参考資料

トリック

Ubuntu 19.10以降は、--driver=noneで入れると、root権限でしか、kubectlは動かない。ただし、以下の記事にあるトリックを使うと、外すことができる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?