kubernetes
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
kubernetes [2018/11/20 11:01] – créée simon | kubernetes [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Kubernetes ====== | ||
- | ===== Créer un cluster avec rke ===== | ||
- | Prérequis : | ||
- | * Un ordinateur (non-ARM) capable de faire fonctionner [[https:// | ||
- | * Deux ou plusieurs ordinateurs où installer le cluster, avec [[docker]] installé | ||
- | |||
- | ==== Installation de rke ==== | ||
- | <code bash> | ||
- | $ wget https:// | ||
- | |||
- | $ mv rke_linux-amd64 rke | ||
- | |||
- | $ chmod +x rke | ||
- | |||
- | $ sudo cp rke /usr/bin/ | ||
- | |||
- | $ rke | ||
- | NAME: | ||
- | rke - Rancher Kubernetes Engine, an extremely simple, lightning fast Kubernetes installer that works everywhere | ||
- | (...) | ||
- | </ | ||
- | |||
- | ==== Créer une configuration de cluster avec rke ==== | ||
- | <code bash> | ||
- | $ rke config | ||
- | [+] Cluster Level SSH Private Key Path [~/ | ||
- | [+] Number of Hosts [1]: 2 | ||
- | [+] SSH Address of host (1) [none]: 192.168.1.101 | ||
- | [+] SSH Port of host (1) [22]: 1803 | ||
- | [+] SSH Private Key Path of host (192.168.1.101) [none]: | ||
- | [-] You have entered empty SSH key path, trying fetch from SSH key parameter | ||
- | [+] SSH Private Key of host (192.168.1.101) [none]: | ||
- | [-] You have entered empty SSH key, defaulting to cluster level SSH key: ~/ | ||
- | [+] SSH User of host (192.168.1.101) [ubuntu]: simon | ||
- | [+] Is host (192.168.1.101) a Control Plane host (y/n)? [y]: y | ||
- | [+] Is host (192.168.1.101) a Worker host (y/n)? [n]: y | ||
- | [+] Is host (192.168.1.101) an etcd host (y/n)? [n]: y | ||
- | [+] Override Hostname of host (192.168.1.101) [none]: | ||
- | [+] Internal IP of host (192.168.1.101) [none]: | ||
- | [+] Docker socket path on host (192.168.1.101) [/ | ||
- | [+] SSH Address of host (2) [none]: 192.168.1.100 | ||
- | [+] SSH Port of host (2) [22]: 1803 | ||
- | [+] SSH Private Key Path of host (192.168.1.100) [none]: | ||
- | [-] You have entered empty SSH key path, trying fetch from SSH key parameter | ||
- | [+] SSH Private Key of host (192.168.1.100) [none]: | ||
- | [-] You have entered empty SSH key, defaulting to cluster level SSH key: ~/ | ||
- | [+] SSH User of host (192.168.1.100) [ubuntu]: simon | ||
- | [+] Is host (192.168.1.100) a Control Plane host (y/n)? [y]: y | ||
- | [+] Is host (192.168.1.100) a Worker host (y/n)? [n]: y | ||
- | [+] Is host (192.168.1.100) an etcd host (y/n)? [n]: y | ||
- | [+] Override Hostname of host (192.168.1.100) [none]: | ||
- | [+] Internal IP of host (192.168.1.100) [none]: | ||
- | [+] Docker socket path on host (192.168.1.100) [/ | ||
- | [+] Network Plugin Type (flannel, calico, weave, canal) [canal]: | ||
- | [+] Authentication Strategy [x509]: | ||
- | [+] Authorization Mode (rbac, none) [rbac]: | ||
- | [+] Kubernetes Docker image [rancher/ | ||
- | [+] Cluster domain [cluster.local]: | ||
- | [+] Service Cluster IP Range [10.43.0.0/ | ||
- | [+] Enable PodSecurityPolicy [n]: | ||
- | [+] Cluster Network CIDR [10.42.0.0/ | ||
- | [+] Cluster DNS Service IP [10.43.0.10]: | ||
- | [+] Add addon manifest URLs or YAML files [no]: | ||
- | </ | ||
- | |||
- | Ça crée un fichier ( '' |
kubernetes.1542711677.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)