Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
kubernetes_repo_config [2020/03/30 14:34] โ andonovj | kubernetes_repo_config [2020/05/01 15:53] (current) โ andonovj | ||
---|---|---|---|
Line 8: | Line 8: | ||
- Update the local Repo | - Update the local Repo | ||
- Install the kubectl | - Install the kubectl | ||
- | - Install the minikube | ||
Line 47: | Line 46: | ||
</ | </ | ||
- | ====Install Kubectl & Minikube==== | + | ====Install Kubectl, Kubelete |
We can check, if the installation has been correct as follows: | We can check, if the installation has been correct as follows: | ||
Eventhough, we need only the kubectl, let's install the whole stack, since we will use it later, for the whole manual implementation: | Eventhough, we need only the kubectl, let's install the whole stack, since we will use it later, for the whole manual implementation: | ||
Line 66: | Line 65: | ||
</ | </ | ||
- | ====Install | + | ====Install |
To install Minikube, we have to install a driver, so either: docker or rockat. I will go with a docker here: | To install Minikube, we have to install a driver, so either: docker or rockat. I will go with a docker here: | ||
Line 133: | Line 132: | ||
root@k8s-master:/ | root@k8s-master:/ | ||
</ | </ | ||
- | |||
- | |||
- | Finally we can install the Minicube and start it as follows: | ||
- | |||
- | ====Manual Minikube Installation==== | ||
- | < | ||
- | root@k8s-master:/ | ||
- | > && | ||
- | % Total % Received % Xferd Average Speed | ||
- | | ||
- | 100 52.0M 100 52.0M 0 | ||
- | root@k8s-master:/ | ||
- | root@k8s-master:/ | ||
- | </ | ||
- | |||
- | Once that is done, we can start it: | ||
- | |||
- | < | ||
- | root@k8s-master:/ | ||
- | ๐ minikube v1.9.0 on Ubuntu 18.04 | ||
- | โจ Using the none driver based on existing profile | ||
- | ๐คน Running on localhost (CPUs=2, Memory=984MB, | ||
- | โน๏ธ | ||
- | ๐ณ Preparing Kubernetes v1.18.0 on Docker 19.03.6 ... | ||
- | โช kubelet.resolv-conf=/ | ||
- | > kubectl.sha256: | ||
- | > kubelet.sha256: | ||
- | > kubeadm.sha256: | ||
- | > 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, | ||
- | ๐คน Configuring local host environment ... | ||
- | |||
- | โ The ' | ||
- | โ For more information, | ||
- | ๐ https:// | ||
- | |||
- | โ 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 / | ||
- | โช sudo chown -R $USER $HOME/.kube $HOME/ | ||
- | |||
- | ๐ก This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true | ||
- | E0330 14: | ||
- | ๐ Done! kubectl is now configured to use " | ||
- | ๐ก For best results, install kubectl: https:// | ||
- | root@k8s-master:/ | ||
- | </ | ||
- |