Closed7

Minikubeの出力😊

mars2nicomars2nico
$ sudo minikube start
😄  minikube v1.28.0 on Ubuntu 22.04
👎  Unable to pick a default driver. Here is what was considered, in preference order:
💡  Alternatively you could install one of these drivers:
    ▪ docker: Not installed: exec: "docker": executable file not found in $PATH
    ▪ kvm2: Not installed: exec: "virsh": executable file not found in $PATH
    ▪ vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH
    ▪ podman: Not installed: exec: "podman": executable file not found in $PATH
    ▪ virtualbox: Not installed: unable to find VBoxManage in $PATH
    ▪ qemu2: Not installed: exec: "qemu-system-x86_64": executable file not found in $PATH

❌  Exiting due to DRV_NOT_DETECTED: No possible driver was detected. Try specifying --driver, or see https://minikube.sigs.k8s.io/docs/start/
mars2nicomars2nico
$ sudo apt install cpu-checker -y
Reading package lists... ..
..
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
$ sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
Reading package lists... ..
..

詳細はKVM/Installation - Community Help Wiki

mars2nicomars2nico
$ minikube start
😄  minikube v1.28.0 on Ubuntu 22.04
✨  Automatically selected the kvm2 driver. Other choices: none, ssh, qemu2 (experimental)
💾  Downloading driver docker-machine-driver-kvm2:
    > docker-machine-driver-kvm2-...:  65 B / 65 B [---------] 100.00% ? p/s 0s
    > docker-machine-driver-kvm2-...:  12.20 MiB / 12.20 MiB  100.00% 22.54 MiB
💿  Downloading VM boot image ...
    > minikube-v1.28.0-amd64.iso....:  65 B / 65 B [---------] 100.00% ? p/s 0s
    > minikube-v1.28.0-amd64.iso:  274.45 MiB / 274.45 MiB  100.00% 76.63 MiB p
👍  Starting control plane node minikube in cluster minikube
💾  Downloading Kubernetes v1.25.3 preload ...
    > preloaded-images-k8s-v18-v1...:  385.44 MiB / 385.44 MiB  100.00% 66.78 M
🔥  Creating kvm2 VM (CPUs=2, Memory=2200MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.25.3 on Docker 20.10.20 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: default-storageclass, storage-provisioner
💡  kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
mars2nicomars2nico
$ minikube dashboard
🔌  Enabling dashboard ...
    ▪ Using image docker.io/kubernetesui/dashboard:v2.7.0
    ▪ Using image docker.io/kubernetesui/metrics-scraper:v1.0.8
💡  Some dashboard features require the metrics-server addon. To enable all features please run:

        minikube addons enable metrics-server


🤔  Verifying dashboard health ...
🚀  Launching proxy ...
🤔  Verifying proxy health ...
🎉  Opening http://127.0.0.1:35409/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
👉  http://127.0.0.1:35409/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/

Open in Browser -> 😢 このサイトにアクセスできません<hostname> で接続が拒否されました。

mars2nicomars2nico
^C
$ kubectl proxy --address='0.0.0.0' --accept-hosts=^192\.168 &
[1] <pid>
$ Starting to serve on [::]:8001

$ minikube dashboard
🤔  Verifying dashboard health ...
..
👉  http://127.0.0.1:35409/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/
mars2nicomars2nico
$ minikube stop
✋  Stopping node "minikube"  ...
🛑  1 node stopped.

絵文字ましましでなんかほっこりする

mars2nicomars2nico
$ minikube image load myapp
❗  The image 'myapp' was not found; unable to add it to cache.
$ minikube image load myapp.tar
$ minikube image ls
..
docker.io/library/myapp:latest
..
このスクラップは2023/01/16にクローズされました