Outils pour utilisateurs

Outils du site


minikube

Ceci est une ancienne révision du document !


Minikube

Prérequis

Il faut tout d'abord installer Docker :

$ sudo apt update
 
$ sudo apt install apt-transport-https ca-certificates software-properties-common curl
 
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK
 
$ sudo add-apt-repository \
    "deb [arch=armhf] https://download.docker.com/linux/ubuntu \
    $(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 :

$ sudo systemctl enable docker
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
 
$ sudo systemctl start docker
 
$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-10-25 17:03:35 CEST; 1s ago
     Docs: https://docs.docker.com
 Main PID: 24001 (dockerd)
    Tasks: 42
   CGroup: /system.slice/docker.service
           ├─24001 /usr/bin/dockerd -H fd://
           └─24025 docker-containerd --config /var/run/docker/containerd/containerd.toml
 
(...)

Il faut aussi installer kubectl :

$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
OK
 
$ echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
 
$ sudo apt update
 
$ sudo apt-get install -y kubectl

Installation de Minikube

$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
    && sudo install minikube-linux-amd64 /usr/local/bin/minikube
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 40.3M  100 40.3M    0     0   646k      0  0:01:03  0:01:03 --:--:--  674k
 
# minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
 170.78 MB / 170.78 MB [============================================] 100.00% 0s
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:12:58.574474   24198 start.go:289] Error setting up kubeconfig:  writing kubeconfig: Error writing file : open : no such file or directory
================================================================================
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/n]: 
minikube.1540481468.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)