Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
kubernetes_repo_config [2020/03/30 14:34] โ€“ andonovjkubernetes_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:
 </Code> </Code>
  
-====Install Kubectl & Minikube====+====Install Kubectl, Kubelete Kubeadm ====
 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:
 </Code> </Code>
  
-====Install Driver====+====Install Docker====
 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:/etc/apt# root@k8s-master:/etc/apt#
 </Code> </Code>
- 
- 
-Finally we can install the Minicube and start it as follows: 
- 
-====Manual Minikube Installation==== 
-<Code:none> 
-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      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> 
- 
  • kubernetes_repo_config.1585578873.txt.gz
  • Last modified: 2020/03/30 14:34
  • by andonovj