更新 README.md,添加 DNS 修复和 Traefik pod 日志记录部分;更新 traefik-complete.yaml 中的 Traefik 镜像版本

This commit is contained in:
2026-01-28 17:01:33 +08:00
parent db2ae8dd7b
commit 0a1f6db0fc
2 changed files with 19 additions and 2 deletions

View File

@@ -20,4 +20,21 @@ kubectl delete job -n kube-system helm-install-traefik helm-install-traefik-crd
# 安装 Traefik CRD # 安装 Traefik CRD
kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v3.0/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v3.0/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
``` ```
## 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
```

View File

@@ -145,7 +145,7 @@ spec:
effect: NoSchedule effect: NoSchedule
containers: containers:
- name: traefik - name: traefik
image: traefik:latest image: docker.1ms.run/library/traefik:v3.6.7
args: args:
- --api.insecure=true - --api.insecure=true
- --providers.kubernetescrd - --providers.kubernetescrd