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 |
система_kubernetes [2024/04/08 11:05] val [Volumes] |
||
---|---|---|---|
Line 258: | Line 258: | ||
=== Удаление узла === | === Удаление узла === | ||
+ | |||
+ | * [[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 807: | ||
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 995: | ||
storage: 128Mi | storage: 128Mi | ||
# storage: 8Gi | # storage: 8Gi | ||
- | # volumeMode: Filesystem | ||
accessModes: | accessModes: | ||
- ReadWriteMany | - ReadWriteMany | ||
Line 1085: | Line 1089: | ||
* [[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 1104: | ||
<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 1138: | ||
* Делаем снапшот | * Делаем снапшот | ||
- | * Что-то ломаем | + | * Что-то ломаем (удаляем пользователя) |
* Останавливаем сервис | * Останавливаем сервис | ||
Line 1150: | Line 1158: | ||
== Использование backup-ов == | == Использование backup-ов == | ||
<code> | <code> | ||
- | Setting -> General -> Backup Target -> nfs://server.corp13.un:/disk2 (nfs client linux не нужен) | + | Setting -> General -> Backup Target -> nfs://server.corp13.un:/var/www (nfs client linux не нужен) |
</code> | </code> | ||
* Volume -> Create Backup, удаляем NS, восстанавливаем Volume из бекапа, создаем NS и создаем для Volume PV/PVC как было, устанавливаем чарт, он подхватывает pv/pvc | * Volume -> Create Backup, удаляем NS, восстанавливаем Volume из бекапа, создаем NS и создаем для Volume PV/PVC как было, устанавливаем чарт, он подхватывает pv/pvc |