minikube
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
minikube [2018/10/25 09:10] – créée simon | minikube [2018/11/15 14:05] – simon | ||
---|---|---|---|
Ligne 24: | Ligne 24: | ||
</ | </ | ||
+ | Configurer le service : | ||
+ | <code bash> | ||
+ | $ sudo systemctl enable docker | ||
+ | Synchronizing state of docker.service with SysV service script with / | ||
+ | Executing: / | ||
+ | $ sudo systemctl start docker | ||
+ | |||
+ | $ sudo systemctl status docker | ||
+ | ● docker.service - Docker Application Container Engine | ||
+ | | ||
+ | | ||
+ | Docs: https:// | ||
+ | Main PID: 24001 (dockerd) | ||
+ | Tasks: 42 | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | (...) | ||
+ | </ | ||
+ | |||
+ | Il faut aussi installer [[https:// | ||
+ | <code bash> | ||
+ | $ curl -s https:// | ||
+ | OK | ||
+ | |||
+ | $ echo "deb http:// | ||
+ | deb http:// | ||
+ | |||
+ | $ sudo apt update | ||
+ | |||
+ | $ sudo apt-get install -y kubectl | ||
+ | </ | ||
+ | ===== Installation de Minikube ===== | ||
+ | <code bash> | ||
+ | $ curl -LO https:// | ||
+ | && sudo install minikube-linux-amd64 / | ||
+ | % Total % Received % Xferd Average Speed | ||
+ | | ||
+ | 100 40.3M 100 40.3M 0 | ||
+ | </ | ||
+ | |||
+ | ==== Erreurs rencontrées ==== | ||
+ | |||
+ | Si on a déjà une configuration kubectl, ça coince : | ||
+ | <code bash> | ||
+ | # minikube start | ||
+ | Starting local Kubernetes v1.10.0 cluster... | ||
+ | Starting VM... | ||
+ | Downloading Minikube ISO | ||
+ | | ||
+ | Getting VM IP address... | ||
+ | Moving files into cluster... | ||
+ | Downloading kubeadm v1.10.0 | ||
+ | Downloading kubelet v1.10.0 | ||
+ | Finished Downloading kubelet v1.10.0 | ||
+ | Finished Downloading kubeadm v1.10.0 | ||
+ | Setting up certs... | ||
+ | Connecting to cluster... | ||
+ | Setting up kubeconfig... | ||
+ | E1025 17: | ||
+ | ================================================================================ | ||
+ | An error has occurred. Would you like to opt in to sending anonymized crash | ||
+ | information to minikube to help prevent future errors? | ||
+ | To opt out of these messages, run the command: | ||
+ | minikube config set WantReportErrorPrompt false | ||
+ | ================================================================================ | ||
+ | Please enter your response [Y/ | ||
+ | </ | ||
+ | |||
+ | Si on a pas installé virtualbox, ça coince : | ||
+ | <code bash> | ||
+ | $ sudo minikube start | ||
+ | Starting local Kubernetes v1.10.0 cluster... | ||
+ | Starting VM... | ||
+ | Downloading Minikube ISO | ||
+ | | ||
+ | E1025 17: | ||
+ | : VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path. | ||
+ | |||
+ | | ||
+ | E1025 17: | ||
+ | : VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path | ||
+ | ================================================================================ | ||
+ | An error has occurred. Would you like to opt in to sending anonymized crash | ||
+ | information to minikube to help prevent future errors? | ||
+ | To opt out of these messages, run the command: | ||
+ | minikube config set WantReportErrorPrompt false | ||
+ | ================================================================================ | ||
+ | Please enter your response [Y/ | ||
+ | </ | ||
+ | |||
+ | J'ai eu une autre erreur où il me dit de faire un '' | ||
+ | <code bash> | ||
+ | $ minikube start | ||
+ | Starting local Kubernetes v1.10.0 cluster... | ||
+ | Starting VM... | ||
+ | E1115 14: | ||
+ | |||
+ | | ||
+ | E1115 14: | ||
+ | ================================================================================ | ||
+ | An error has occurred. Would you like to opt in to sending anonymized crash | ||
+ | information to minikube to help prevent future errors? | ||
+ | To opt out of these messages, run the command: | ||
+ | minikube config set WantReportErrorPrompt false | ||
+ | ================================================================================ | ||
+ | Please enter your response [Y/ | ||
+ | </ | ||
+ | |||
+ | J' | ||
+ | <code bash> | ||
+ | $ minikube delete | ||
+ | Deleting local Kubernetes cluster... | ||
+ | Errors occurred deleting machine: | ||
+ | </ | ||
+ | |||
+ | Encore un problème de permissions... C'est quoi les permissions sur ce dossier ? | ||
+ | <code bash> | ||
+ | $ ls -al / | ||
+ | drwxr-xr-x | ||
+ | .rw-r--r-- 1,3k root 25 oct 17:12 apiserver.crt | ||
+ | .rw------- 1,7k root 25 oct 17:12 apiserver.key | ||
+ | .rw-r--r-- 1,1k root 25 oct 17:12 ca.crt | ||
+ | .rw------- 1,7k root 25 oct 17:12 ca.key | ||
+ | .r----x--x 1,0k root 25 oct 17:08 ca.pem | ||
+ | drwxr-xr-x | ||
+ | .r----x--x 1,1k root 25 oct 17:08 cert.pem | ||
+ | drwxr-xr-x | ||
+ | .rw-r--r-- 1,1k root 25 oct 17:12 client.crt | ||
+ | .rw------- 1,7k root 25 oct 17:12 client.key | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | .r----x--x 1,7k root 25 oct 17:08 key.pem | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | drwx------ | ||
+ | .rw-r--r-- 1,1k root 25 oct 17:12 proxy-client-ca.crt | ||
+ | .rw------- 1,7k root 25 oct 17:12 proxy-client-ca.key | ||
+ | .rw-r--r-- 1,1k root 25 oct 17:12 proxy-client.crt | ||
+ | .rw------- 1,7k root 25 oct 17:12 proxy-client.key | ||
+ | </ | ||
+ | |||
+ | ==== Résolution et lancement de minikube ==== | ||
+ | Les permissions étaient en root partout ! C'est pour ça que ça coinçait ! | ||
+ | <code bash> | ||
+ | $ sudo chown -R simon:simon / | ||
+ | |||
+ | $ minikube start | ||
+ | Starting local Kubernetes v1.10.0 cluster... | ||
+ | Starting VM... | ||
+ | Getting VM IP address... | ||
+ | Moving files into cluster... | ||
+ | Setting up certs... | ||
+ | Connecting to cluster... | ||
+ | Setting up kubeconfig... | ||
+ | Starting cluster components... | ||
+ | Kubectl is now configured to use the cluster. | ||
+ | Loading cached images from config file. | ||
+ | </ | ||
+ | |||
+ | **Yes!** Minikube est lancé ! |