minikube
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| minikube [2018/11/15 14:05] – simon | minikube [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Minikube ====== | ||
| - | ===== Prérequis ===== | ||
| - | Il faut tout d' | ||
| - | <code bash> | ||
| - | $ sudo apt update | ||
| - | |||
| - | $ sudo apt install apt-transport-https ca-certificates software-properties-common curl | ||
| - | |||
| - | $ curl -fsSL https:// | ||
| - | OK | ||
| - | |||
| - | $ sudo add-apt-repository \ | ||
| - | "deb [arch=armhf] https:// | ||
| - | $(lsb_release -cs) \ | ||
| - | stable" | ||
| - | |||
| - | $ sudo apt update | ||
| - | |||
| - | $ sudo apt install docker-ce | ||
| - | |||
| - | $ docker --version | ||
| - | Docker version 18.06.1-ce, build e68fc7a | ||
| - | </ | ||
| - | |||
| - | 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é ! | ||
minikube.1542290756.txt.gz · Dernière modification : (modification externe)
