Show pageOld revisionsBacklinksODT exportBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. =====Overview===== Minikube is a taste of Kubernetes, it is a single pod single master configuration, but it gives you a taste of the Kubernetes. The installation is very simply: =====Installation===== <Code:bash|Install Minikube> root@k8s-master:/etc/apt# curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \ > && chmod +x minikube % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 52.0M 100 52.0M 0 0 13.2M 0 0:00:03 0:00:03 --:--:-- 13.2M root@k8s-master:/etc/apt# mkdir -p /usr/local/bin/ root@k8s-master:/etc/apt# install minikube /usr/local/bin/ </Code> Once that is done, we can start it: <Code:none|Start Minikube> root@k8s-master:/etc/apt# minikube start --vm-driver=none --apiserver-ips 127.0.0.1 --apiserver-name localhost ๐ minikube v1.9.0 on Ubuntu 18.04 โจ Using the none driver based on existing profile ๐คน Running on localhost (CPUs=2, Memory=984MB, Disk=9861MB) ... โน๏ธ OS release is Ubuntu 18.04.4 LTS ๐ณ Preparing Kubernetes v1.18.0 on Docker 19.03.6 ... โช kubelet.resolv-conf=/run/systemd/resolve/resolv.conf > kubectl.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s > kubelet.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s > kubeadm.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s > kubectl: 41.98 MiB / 41.98 MiB [----------------] 100.00% 5.70 MiB p/s 8s > kubeadm: 37.96 MiB / 37.96 MiB [----------------] 100.00% 4.68 MiB p/s 8s > kubelet: 108.01 MiB / 108.01 MiB [-------------] 100.00% 9.19 MiB p/s 12s ๐ Enabling addons: default-storageclass, storage-provisioner ๐คน Configuring local host environment ... โ The 'none' driver provides limited isolation and may reduce system security and reliability. โ For more information, see: ๐ https://minikube.sigs.k8s.io/docs/reference/drivers/none/ โ kubectl and minikube configuration will be stored in /root โ To use kubectl or minikube commands as your own user, you may need to relocate them. For example, to overwrite your own settings, run: โช sudo mv /root/.kube /root/.minikube $HOME โช sudo chown -R $USER $HOME/.kube $HOME/.minikube ๐ก This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true E0330 14:07:45.754288 18287 kubeadm.go:346] Overriding stale ClientConfig host https://localhost:8443 with https://10.0.2.15:8443 ๐ Done! kubectl is now configured to use "minikube" ๐ก For best results, install kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/ root@k8s-master:/etc/apt </Code> k8s_basic_minikube.txt Last modified: 2020/05/01 15:55by andonovj