1
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 5 years have passed since last update.

minikubeのポッドでシェルを取得する

Posted at

環境

windows10 home
minikube

前提

k8とかdockerについて学んでいきたい。
その過程でminikubeにたどり着き、
実行中のポッドでシェルを取得し弄りたくなった。

問題発生

minikube dashboard

して、dashboard上でポッドのExecを押したのだが、
何らかの問題発生によってシェルが表示されない。困った。

解決

minikubeのポッドでシェルを取得する方法には二つある。

1.dashboardでExecをしてブラウザ上でシェルする
2.kubectl execする

1は無理だった。
2で解決した。
以下のコマンドを実行すると、シェルを取得できた。

C:\xxx>kubectl exec -it httpd -- /bin/bash
root@httpd:/usr/local/apache2#
1
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
1
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?