User Tools

Site Tools


система_kubernetes

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
система_kubernetes [2026/06/05 15:14]
val [Развертывание через Kubespray]
система_kubernetes [2026/06/07 09:31] (current)
val [Развертывание через Kubespray]
Line 594: Line 594:
 [etcd:​children] [etcd:​children]
 kube_control_plane kube_control_plane
-#[etcd] 
-#kube2 
  
 [kube_node:​children] [kube_node:​children]
 kube_control_plane kube_control_plane
 </​code><​code>​ </​code><​code>​
-server:~# docker run --userns=host --rm -it -v /​root/​inventory/​sample:/​inventory -v /root/.ssh/:/root/.ssh/ quay.io/​kubespray/​kubespray:​v2.29.0 bash+server:~# docker run --userns=host --rm -it -v /​root/​inventory/​sample:/​inventory -v /​root/:/​root/​ quay.io/​kubespray/​kubespray:​v2.29.0 bash
  
 root@cf764ca3b291:/​kubespray#​ ansible all -m ping -i /​inventory/​inventory.ini root@cf764ca3b291:/​kubespray#​ ansible all -m ping -i /​inventory/​inventory.ini
 </​code>​ </​code>​
 +  * [[Сервис Ansible#​Использование ролей]] Ansible для настройки сети
 +
 +  * Может потребоваться
 <​code>​ <​code>​
 root@cf764ca3b291:/​kubespray#​ cp -rv inventory/​sample/​group_vars/​ /inventory/ root@cf764ca3b291:/​kubespray#​ cp -rv inventory/​sample/​group_vars/​ /inventory/
 </​code>​ </​code>​
-  * Может потребоваться ​[[#​Настройка registry-mirrors для Kubespray]] и [[#​Добавление insecure_registries через Kubespray]]+  * [[#​Настройка registry-mirrors для Kubespray]] и [[#​Добавление insecure_registries через Kubespray]] 
 <​code>​ <​code>​
 root@cf764ca3b291:/​kubespray#​ time ansible-playbook -i /​inventory/​inventory.ini cluster.yml root@cf764ca3b291:/​kubespray#​ time ansible-playbook -i /​inventory/​inventory.ini cluster.yml
Line 614: Line 616:
 ... ...
 </​code>​ </​code>​
-=== Удаление узла через kubespray ===+=== Удаление ​вышедшего из строя ​узла через kubespray ===
  
 <​code>​ <​code>​
Line 621: Line 623:
 </​code>​ </​code>​
  
-в случае ​вышедшего из строя ​первого мастер узла понадобится:​+в случае первого мастер узла понадобится:​
 <​code>​ <​code>​
 server:~# cat inventory/​sample/​inventory.ini server:~# cat inventory/​sample/​inventory.ini
система_kubernetes.1780661671.txt.gz · Last modified: 2026/06/05 15:14 by val