zhong (钟鹏群) 2 주 전
부모
커밋
1187618f01
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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: