zhong (钟鹏群) 2 weeks ago
parent
commit
1187618f01
1 changed files with 2 additions and 3 deletions
  1. 2 3
      deployments/gogs-ingress.yaml

+ 2 - 3
deployments/gogs-ingress.yaml

@@ -3,10 +3,9 @@ kind: Ingress
 metadata:
   name: gogs-ingress
   namespace: nginx-app
-  annotations:
-    nginx.ingress.kubernetes.io/rewrite-target: /
-    nginx.ingress.kubernetes.io/ssl-redirect: "false"
+# 删掉 nginx.ingress 开头所有annotations
 spec:
+  ingressClassName: traefik  # 显式指定traefik
   rules:
   - host: gogs2.9981.tech
     http: