瀏覽代碼

Add explicit traefik priority for gopy

Breandan Dezendorf 1 年之前
父節點
當前提交
69f74275a1
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      dezendorf/homelab/k3s/gopy/gopy.yaml

+ 6 - 1
dezendorf/homelab/k3s/gopy/gopy.yaml

@@ -46,6 +46,7 @@ spec:
   routes:
   - match: ((Host(`go`)||Host(`go.dezendorf.net`))) && Path(`/list`)
     kind: Rule
+    priority: 5
     middlewares:
       - name: gopyhttpsgofqdn
     services:
@@ -53,6 +54,7 @@ spec:
       port: 5000
   - match: ((Host(`go`)||Host(`go.dezendorf.net`))) && Path(`/{url:.*}/edit`)
     kind: Rule
+    priority: 4
     middlewares:
       - name: gopyhttpsgofqdn
     services:
@@ -60,6 +62,7 @@ spec:
       port: 5000
   - match: ((Host(`go`)||Host(`go.dezendorf.net`))) && Path(`/{url:.*}/add`)
     kind: Rule
+    priority: 3
     middlewares:
       - name: gopyhttpsgofqdn
     services:
@@ -67,13 +70,15 @@ spec:
       port: 5000
   - match: ((Host(`go`)||Host(`go.dezendorf.net`))) && Path(`/{url:.*}/delete`)
     kind: Rule
+    priority: 2
     middlewares:
       - name: gopyhttpsgofqdn
     services:
     - name: gopy
       port: 5000
-  - match: ((Host(`go`)||Host(`go.dezendorf.net`))||Host(`go.dezendorf.com`))
+  - match: ((Host(`go`)||Host(`go.dezendorf.net`))
     kind: Rule
+    priority: 1
     services:
     - name: gopy
       port: 5000