更新 README.md,添加 DNS 修复和 Traefik pod 日志记录部分;更新 traefik-complete.yaml 中的 Traefik 镜像版本
This commit is contained in:
@@ -20,4 +20,21 @@ kubectl delete job -n kube-system helm-install-traefik helm-install-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
|
||||
```
|
||||
```
|
||||
|
||||
## 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
|
||||
```
|
||||
|
||||
@@ -145,7 +145,7 @@ spec:
|
||||
effect: NoSchedule
|
||||
containers:
|
||||
- name: traefik
|
||||
image: traefik:latest
|
||||
image: docker.1ms.run/library/traefik:v3.6.7
|
||||
args:
|
||||
- --api.insecure=true
|
||||
- --providers.kubernetescrd
|
||||
|
||||
Reference in New Issue
Block a user