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 [2025/06/18 12:35]
val [Развертывание через kubeadm]
система_kubernetes [2025/07/29 16:16] (current)
val [Deployment]
Line 135: Line 135:
 </​code><​code>​ </​code><​code>​
 gitlab-runner@server:​~$ kubectl get pods -A gitlab-runner@server:​~$ kubectl get pods -A
 +</​code>​
 +
 +или
 +
 +<​code>​
 +# cp -v /​home/​gitlab-runner/​.minikube/​cache/​linux/​amd64/​v*/​kubectl /​usr/​local/​bin/​
 </​code>​ </​code>​
  
Line 364: Line 370:
  
 root@nodeN:​~#​ containerd config dump | less root@nodeN:​~#​ containerd config dump | less
-</​code>​ 
- 
-Проверка 
- 
-<​code>​ 
-root@nodeN:​~#​ crictl -r unix:///​run/​containerd/​containerd.sock pull server.corpX.un:​5000/​student/​gowebd 
 </​code>​ </​code>​
  
Line 386: Line 386:
 </​code><​code> ​ </​code><​code> ​
 # systemctl restart containerd.service # systemctl restart containerd.service
 +</​code>​
 +
 +Проверка
 +
 +<​code>​
 +root@nodeN:​~#​ crictl -r unix:///​run/​containerd/​containerd.sock pull server.corpX.un:​5000/​student/​gowebd
  
-# crictl pull server.corpX.un:​5000/​student/​pywebd2+root@kubeN:​~# crictl pull server.corpX.un:​5000/​student/​pywebd2
 </​code>​ </​code>​
 ==== Развертывание через Kubespray ==== ==== Развертывание через Kubespray ====
Line 642: Line 648:
 $ ### kubectl delete deployment my-webd -n my-ns $ ### kubectl delete deployment my-webd -n my-ns
  
-cd webd/+mkdir ??webd-k8s/; cd $_
  
 $ cat my-webd-deployment.yaml $ cat my-webd-deployment.yaml
Line 826: Line 832:
  
 $ kubectl get endpoints -n my-ns $ kubectl get endpoints -n my-ns
 +  или ​
 +$ kubectl get endpointslice -n my-ns
 </​code>​ </​code>​
 === NodePort === === NodePort ===
система_kubernetes.1750239301.txt.gz · Last modified: 2025/06/18 12:35 by val