Merge branch 'main' of git.xiongxiao.me:abearxiong/k8s-docs

This commit is contained in:
2026-03-21 00:36:31 +08:00
54 changed files with 1709 additions and 129 deletions

View File

@@ -28,4 +28,20 @@ kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v3.0/docs/con
kubectl config use-context dev-context
# ls context
kubectl config use-context kevisual-context
```
```
## dns fix
```bash
resolvectl status
echo "nameserver 1.1.1.1" > /etc/resolv.conf
kubectl rollout restart deployment/coredns -n kube-system
```
## log traefik pod
```bash
kubectl logs -n traefik deploy/traefik -f
```