vault backup: 2025-12-04 09:12:56
This commit is contained in:
17
技术探究/虚拟机/k8s/k8s 学习 资料.md
Normal file
17
技术探究/虚拟机/k8s/k8s 学习 资料.md
Normal file
@@ -0,0 +1,17 @@
|
||||
谢威 1-18 21:42:21
|
||||
https://github.com/guangzhengli/k8s-tutorials
|
||||
|
||||
https://github.com/chaseSpace/k8s-tutorial-cn/tree/main
|
||||
|
||||
https://k8s.easydoc.net/docs/dRiQjyTY/28366845/6GiNOzyZ/9EX8Cp45
|
||||
|
||||
谢威 1-18 21:43:01
|
||||
https://www.bilibili.com/video/BV1Tg411P7EB/
|
||||
|
||||
### 谢威 1-18 21:43:10
|
||||
https://k8s.easydoc.net/docs/dRiQjyTY/28366845/6GiNOzyZ/9EX8Cp45
|
||||
|
||||
#### Master join
|
||||
```
|
||||
kubeadm join 192.168.186.100:6443 --token whgnp2.qemqt8xtod7onf6j --discovery-token-ca-cert-hash sha256:e4f53bd2268f097d79694f7dbc72a6990dfacad41154bd5c9ad2c52ac0e72576
|
||||
```
|
||||
28
技术探究/虚拟机/k8s/操作命令.md
Normal file
28
技术探究/虚拟机/k8s/操作命令.md
Normal file
@@ -0,0 +1,28 @@
|
||||
kubectl get namespace cattle-system -o yaml
|
||||
|
||||
kubectl get namespace cattle-system -o json >tmp.json
|
||||
|
||||
kubectl proxy
|
||||
|
||||
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/cattle-system/finalize
|
||||
|
||||
kubernetes-dashboard
|
||||
|
||||
kubectl get namespace kubernetes-dashboard -o yaml
|
||||
|
||||
kubectl get namespace kubernetes-dashboard -o json >tmp.json
|
||||
|
||||
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/kubernetes-dashboard/finalize
|
||||
|
||||
|
||||
|
||||
|
||||
kubectl get pod -n cattle-system
|
||||
kubectl get pods --all-namespaces -o wide
|
||||
|
||||
|
||||
docker stats
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user