Difference between revisions of "Minikube"

From wikieduonline
Jump to navigation Jump to search
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[wikipedia:Minikube]] (May [[2016]])<ref>https://github.com/kubernetes/minikube/releases/tag/v0.1.0</ref> is a tool that makes it easy to run [[Kubernetes]] locally. Minikube runs a single-node Kubernetes cluster inside a [[Virtual Machine]] (VM) on your laptop.
+
[[wikipedia:Minikube]] (May [[2016]]) <ref>https://github.com/kubernetes/minikube/releases/</ref> is a tool that makes it easy to run [[Kubernetes]] locally. Minikube runs a single-node Kubernetes cluster inside a [[Virtual Machine]] (VM) on your laptop.
  
 
== Features ==
 
== Features ==
Line 5: Line 5:
 
* [[NodePorts]]
 
* [[NodePorts]]
 
* [[ConfigMaps]] and [[Secrets]]
 
* [[ConfigMaps]] and [[Secrets]]
* Dashboards
+
* [[Dashboards]]
 
* Container Runtime: Docker, [[CRI-O]], and containerd
 
* Container Runtime: Docker, [[CRI-O]], and containerd
 
* Enabling [[CNI]] (Container Network Interface)
 
* Enabling [[CNI]] (Container Network Interface)
Line 21: Line 21:
 
  /usr/local/bin/minikube
 
  /usr/local/bin/minikube
 
  -bash: /usr/local/bin/minikube: [[cannot execute binary file]]
 
  -bash: /usr/local/bin/minikube: [[cannot execute binary file]]
 +
 +
Ubuntu, macOS:
 +
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_arm64.deb
 +
sudo dpkg -i minikube_latest_arm64.deb
 +
[[minikube start]]
 +
 +
[[multipass launch minikube]]
  
 
== Commands ==
 
== Commands ==
Line 27: Line 34:
 
* <code>[[kubectl create deployment]] hello-minikube --image=k8s.gcr.io/echoserver:1.10</code>
 
* <code>[[kubectl create deployment]] hello-minikube --image=k8s.gcr.io/echoserver:1.10</code>
 
* <code>[[minikube service]] hello-minikube --url</code>
 
* <code>[[minikube service]] hello-minikube --url</code>
 +
* <code>[[minikube dashboard]]</code>
 +
* <code>[[minikube status]]</code>
 +
* <code>[[minikube version]]</code>
 +
* <code>[[minikube --help]]</code>
  
 
== Information ==
 
== Information ==
 
* <code>[[kubectl get apiservices]]</code>
 
* <code>[[kubectl get apiservices]]</code>
* <code>[[kubectl get services]]</code>
+
* <code>[[kubectl get services -A]]</code>
  
 
  kubectl get nodes
 
  kubectl get nodes
Line 47: Line 58:
 
* <code>[[minikube delete]]</code>
 
* <code>[[minikube delete]]</code>
 
* <code>[[minikube ssh]]</code>
 
* <code>[[minikube ssh]]</code>
 +
 +
== Activities ==
 +
* Read https://minikube.sigs.k8s.io/docs/faq/
  
 
== Related terms ==
 
== Related terms ==
 
* [[Minishift]]
 
* [[Minishift]]
 
* [[Katacoda]] Kubernetes playground
 
* [[Katacoda]] Kubernetes playground
* [[Kind (Kubernetes)]]
+
* [[Play with Kubernetes]]
 +
* <code>[[KinD (Kubernetes in Docker)|kind]]</code>
 
* [[MicroK8s]]
 
* [[MicroK8s]]
* [[Install Istio]]
 
* [[Snap install Kubernetes]]
 
 
* [[Skaffold]]
 
* [[Skaffold]]
 
* <code>~/[[.minikube/]]</code>
 
* <code>~/[[.minikube/]]</code>
 +
* <code>[[helm install]]</code>
 +
* [[k3s]]
 +
* [[Hostpath]]
 +
* <code>[[k8s.io/minikube-hostpath]]</code>
  
 
== See also ==
 
== See also ==
 
* {{minikube}}
 
* {{minikube}}
 
* {{kubectl get}}
 
* {{kubectl get}}
* {{K8s}}
+
* {{Katacoda}}
 +
* {{Mini K8s}}
  
  
 
[[Category:Mikikube]]
 
[[Category:Mikikube]]
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 08:50, 25 January 2024

wikipedia:Minikube (May 2016) [1] is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a Virtual Machine (VM) on your laptop.

Features[edit]

Installation[edit]

  • Install from mainstream
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
/usr/local/bin/minikube
-bash: /usr/local/bin/minikube: cannot execute binary file

Ubuntu, macOS:

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_arm64.deb
sudo dpkg -i minikube_latest_arm64.deb
minikube start
multipass launch minikube

Commands[edit]

Information[edit]

kubectl get nodes
NAME       STATUS   ROLES    AGE     VERSION
minikube   Ready    master   8m55s   v1.18.0
kubectl get all
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP   9m47s

Commands[edit]

Activities[edit]

Related terms[edit]

See also[edit]

  • https://github.com/kubernetes/minikube/releases/
  • Advertising: