Merge branch 'main' of git.xiongxiao.me:abearxiong/k8s-docs
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user