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
Next revision Both sides next revision
система_kubernetes [2022/09/11 20:52]
val [Развертывание]
система_kubernetes [2022/09/12 12:16]
val
Line 46: Line 46:
 gitlab-runner@gate:​~$ kubectl get all -o wide --all-namespaces gitlab-runner@gate:​~$ kubectl get all -o wide --all-namespaces
 </​code>​ </​code>​
 +
 ===== Установка minikube ===== ===== Установка minikube =====
  
Line 117: Line 118:
 root@node1:​~#​ cp -i /​etc/​kubernetes/​admin.conf $HOME/​.kube/​config root@node1:​~#​ cp -i /​etc/​kubernetes/​admin.conf $HOME/​.kube/​config
  
-student@node1:~kubectl apply -f https://​raw.githubusercontent.com/​coreos/​flannel/​master/​Documentation/​kube-flannel.yml+root@node1:~kubectl apply -f https://​raw.githubusercontent.com/​coreos/​flannel/​master/​Documentation/​kube-flannel.yml
  
-student@node1:~kubectl get pod -o wide --all-namespaces+root@node1:~kubectl get pod -o wide --all-namespaces 
 +root@node1:​~#​ kubectl get --raw='/​readyz?​verbose'​ 
 +root@node2_3:​~#​ curl -k https://​node1:​6443/​livez?​verbose
  
 +root@node2_3:​~#​ kubeadm join 192.168.13.201:​6443 --token NNNNNNNNNNNNNNNNNNNN \
 +        --discovery-token-ca-cert-hash sha256:​NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
  
- +root@node1:~kubectl get nodes -o wide
-student@node2_3:​~$ kubeadm join 192.168.13.201:​6443 --token zyj3q3.a7wtyb0u2uugnvlr \ +
-        --discovery-token-ca-cert-hash sha256:​2444ee53a844bce1b497b18bf93c0a0c0694233cb2e6b4e0be0fb0ee2c74925e +
- +
- +
- +
-student@node1:~kubectl get nodes -o wide+
 </​code>​ </​code>​
  
Line 557: Line 556:
  
 ===== Дополнительные материалы ===== ===== Дополнительные материалы =====
 +
 +==== bare-metal minikube ====
 +
 +<​code>​
 +student@node2:​~$ sudo apt install conntrack
 +
 +https://​computingforgeeks.com/​install-mirantis-cri-dockerd-as-docker-engine-shim-for-kubernetes/​
 +...
 +
 +wget https://​github.com/​kubernetes-sigs/​cri-tools/​releases/​download/​v1.24.2/​crictl-v1.24.2-linux-amd64.tar.gz
 +...
 +
 +student@node2:​~$ minikube start --driver=none --insecure-registry "​server.corp13.un:​5000"​
 +</​code><​code>​
 +student@node3:​~$ minikube status
 +
 +student@node3:​~$ minikube ip
 +
 +student@node3:​~$ minikube addons list
 +
 +student@node3:​~$ minikube addons configure registry-creds
 +...
 +Do you want to enable Docker Registry? [y/n]: y
 +-- Enter docker registry server url: http://​server.corp13.un:​5000
 +-- Enter docker registry username: student
 +-- Enter docker registry password:
 +...
 +
 +student@node3:​~$ minikube addons enable registry-creds
 +
 +student@node3:​~$ minikube dashboard &
 +...
 +Opening http://​127.0.0.1:​NNNNN/​api/​v1/​namespaces/​kubernetes-dashboard/​services/​http:​kubernetes-dashboard:/​proxy/​ in your default browser
 +...
 +/​home/​mobaxterm>​ ssh -L NNNNN:​localhost:​NNNNN student@192.168.13.230
 +Теперь,​ та же ссылка работает на win host системе
 +</​code>​
  
 ==== kompose ==== ==== kompose ====
система_kubernetes.txt · Last modified: 2024/06/25 10:53 by val