This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
система_kubernetes [2024/04/05 13:27] val [Volumes] |
система_kubernetes [2024/04/11 09:33] val [Развертывание через kubeadm] |
||
---|---|---|---|
Line 171: | Line 171: | ||
=== Установка ПО === | === Установка ПО === | ||
+ | === !!! Обратитесь к преподавателю !!! === | ||
<code> | <code> | ||
node1# bash -c ' | node1# bash -c ' | ||
Line 258: | Line 259: | ||
=== Удаление узла === | === Удаление узла === | ||
+ | |||
+ | * [[https://stackoverflow.com/questions/56064537/how-to-remove-broken-nodes-in-kubernetes|How to remove broken nodes in Kubernetes]] | ||
+ | |||
<code> | <code> | ||
$ kubectl cordon kube3 | $ kubectl cordon kube3 | ||
Line 804: | Line 808: | ||
node1# kubectl get all -n ingress-nginx | node1# kubectl get all -n ingress-nginx | ||
- | node1# ### kubectl delete -f ingress-nginx.controller-v1.3.1.baremetal.yaml | + | node1# ###kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission |
+ | |||
+ | node1# ###kubectl delete -f ingress-nginx.controller-v1.3.1.baremetal.yaml | ||
</code> | </code> | ||
Line 990: | Line 996: | ||
storage: 128Mi | storage: 128Mi | ||
# storage: 8Gi | # storage: 8Gi | ||
- | # volumeMode: Filesystem | ||
accessModes: | accessModes: | ||
- ReadWriteMany | - ReadWriteMany | ||
Line 1085: | Line 1090: | ||
* [[https://github.com/longhorn/longhorn]] | * [[https://github.com/longhorn/longhorn]] | ||
<code> | <code> | ||
+ | $ kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.6.0/deploy/longhorn.yaml | ||
+ | |||
+ | $ kubectl -n longhorn-system get pods -o wide --watch | ||
+ | |||
Setting->General | Setting->General | ||
Line 1096: | Line 1105: | ||
<code> | <code> | ||
cmder> kubectl proxy | cmder> kubectl proxy | ||
- | |||
- | http://localhost:8001/api/v1/namespaces/longhorn-system/services/longhorn-frontend:80/proxy/ | ||
</code> | </code> | ||
+ | |||
+ | * http://localhost:8001/api/v1/namespaces/longhorn-system/services/longhorn-frontend:80/proxy/ | ||
Подключение через ingress | Подключение через ingress | ||
Line 1130: | Line 1139: | ||
* Делаем снапшот | * Делаем снапшот | ||
- | * Что-то ломаем | + | * Что-то ломаем (удаляем пользователя) |
* Останавливаем сервис | * Останавливаем сервис | ||