Minikube: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<source lang="bash"> sudo mkdir -p /opt/cli/minikube-linux-amd64/bin curl -sLO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install miniku...") Β |
|||
Line 56: | Line 56: | ||
' | ' | ||
</source> | </source> | ||
==References== | |||
{| | |||
| valign="top" | | |||
* [https://stackoverflow.com/questions/66016567/ Uninstall Minikube from Ubuntu] | |||
* [https://kubernetes.io/docs/tasks/tools/install-kubectl/ Install and Set Up kubectl] | |||
* [https://brennerm.github.io/posts/minikube-vs-kind-vs-k3s.html Minikube vs. kind vs. k3s] | |||
* [https://kubernetes.io/docs/tutorials/kubernetes-basics/ Learn Kubernetes Basics] | |||
* [[Docker on Windows]] | |||
* [[Docker Compose]] | |||
* [https://minikube.sigs.k8s.io/docs/start/ MiniKube start] | |||
* [https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/ Kubernetes] | |||
* [[Kubernetes]] | |||
* [[Docker]] | |||
| valign="top" | | |||
* [https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ Deploy the Kubernetes Dashboard] | |||
* [https://stackoverflow.com/questions/44698283/ Completely uninstall Kubernetes] | |||
* [https://adamtheautomator.com/kubernetes-dashboard/ Set Up Kubernetes Dashboard] | |||
* [https://community.chocolatey.org/packages/minikube Chocolatey Install Minikube] | |||
* [https://community.chocolatey.org/packages/vagrant Chocolatey Install Vagrant] | |||
* [https://stackoverflow.com/questions/40082608/ Delete interface <code>docker0</code>] | |||
| valign="top" | | |||
|} |
Revision as of 03:46, 22 May 2022
sudo mkdir -p /opt/cli/minikube-linux-amd64/bin
curl -sLO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /opt/cli/minikube-linux-amd64/bin/minikube
sudo update-alternatives --install /usr/local/bin/minikube minikube\
/opt/cli/minikube-linux-amd64/bin/minikube 1980
rm -rf minikube-linux-amd64
Kubectl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt install kubectl
Cluster
minikube start
:'
π minikube v1.25.2 on Ubuntu 22.04
β¨ Automatically selected the docker driver. Other choices: none, ssh
π Starting control plane node minikube in cluster minikube
π Pulling base image ...
πΎ Downloading Kubernetes v1.23.3 preload ...
> preloaded-images-k8s-v17-v1...: 505.68 MiB / 505.68 MiB 100.00% 4.60 MiB
> gcr.io/k8s-minikube/kicbase: 379.06 MiB / 379.06 MiB 100.00% 2.47 MiB p/
π₯ Creating docker container (CPUs=2, Memory=6900MB) ...
π³ Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
βͺ kubelet.housekeeping-interval=5m
βͺ 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: storage-provisioner, default-storageclass
π Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
'
kubectl get po -A
minikube kubectl -- get po -A
:'
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-64897985d-thxhw 1/1 Running 0 8m14s
kube-system etcd-minikube 1/1 Running 0 8m26s
kube-system kube-apiserver-minikube 1/1 Running 0 8m26s
kube-system kube-controller-manager-minikube 1/1 Running 0 8m26s
kube-system kube-proxy-xqfl2 1/1 Running 0 8m13s
kube-system kube-scheduler-minikube 1/1 Running 0 8m26s
kube-system storage-provisioner 1/1 Running 1 (7m43s ago) 8m25s
'