From d86eb067029a41036dde7f1a833f1fc5967df5a7 Mon Sep 17 00:00:00 2001 From: cyberops7 <18562612+cyberops7@users.noreply.github.com> Date: Thu, 2 May 2024 21:27:05 -0600 Subject: [PATCH] traefik v3 requires updating the CRDs API group version --- .../Portainer/default-headers.yaml | 2 +- .../Portainer/ingress.yaml | 2 +- .../WireGuard-Easy/default-headers.yaml | 2 +- .../WireGuard-Easy/ingress.yaml | 2 +- .../WireGuard-Easy/ingressRouteUDP.yaml | 2 +- .../CrowdSec/Bouncer/bouncer-middleware.yaml | 2 +- Kubernetes/GitOps/Gotify/default-headers.yaml | 2 +- Kubernetes/GitOps/Gotify/ingress.yaml | 2 +- .../default-headers.yaml | 2 +- .../Traefik-External-Service/ingress.yaml | 2 +- .../Helm/Traefik/Dashboard/ingress.yaml | 2 +- .../Helm/Traefik/Dashboard/middleware.yaml | 2 +- .../Helm/Traefik/default-headers.yaml | 2 +- .../Manifest/PiHole/default-headers.yaml | 2 +- .../Manifest/PiHole/ingress.yaml | 2 +- Kubernetes/Traefik-PiHole/readme.md | 22 +++++++++++++++++++ Unifi-Controller/kubernetes/ingress.yaml | 4 ++-- 17 files changed, 39 insertions(+), 17 deletions(-) diff --git a/Kubernetes/Create-manifest-helm/Portainer/default-headers.yaml b/Kubernetes/Create-manifest-helm/Portainer/default-headers.yaml index fd09585..f897e33 100644 --- a/Kubernetes/Create-manifest-helm/Portainer/default-headers.yaml +++ b/Kubernetes/Create-manifest-helm/Portainer/default-headers.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: default-headers diff --git a/Kubernetes/Create-manifest-helm/Portainer/ingress.yaml b/Kubernetes/Create-manifest-helm/Portainer/ingress.yaml index f1517af..04ab1ef 100644 --- a/Kubernetes/Create-manifest-helm/Portainer/ingress.yaml +++ b/Kubernetes/Create-manifest-helm/Portainer/ingress.yaml @@ -1,5 +1,5 @@ --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: portainer diff --git a/Kubernetes/Create-manifest-helm/WireGuard-Easy/default-headers.yaml b/Kubernetes/Create-manifest-helm/WireGuard-Easy/default-headers.yaml index 4b9de97..4e14585 100644 --- a/Kubernetes/Create-manifest-helm/WireGuard-Easy/default-headers.yaml +++ b/Kubernetes/Create-manifest-helm/WireGuard-Easy/default-headers.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: default-headers diff --git a/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingress.yaml b/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingress.yaml index 4130ba9..cbaf16f 100644 --- a/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingress.yaml +++ b/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingress.yaml @@ -1,5 +1,5 @@ --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: wg-easy diff --git a/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingressRouteUDP.yaml b/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingressRouteUDP.yaml index b2f7d90..f66d4ee 100644 --- a/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingressRouteUDP.yaml +++ b/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingressRouteUDP.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRouteUDP metadata: name: wg-easy diff --git a/Kubernetes/CrowdSec/Bouncer/bouncer-middleware.yaml b/Kubernetes/CrowdSec/Bouncer/bouncer-middleware.yaml index c829563..618d969 100644 --- a/Kubernetes/CrowdSec/Bouncer/bouncer-middleware.yaml +++ b/Kubernetes/CrowdSec/Bouncer/bouncer-middleware.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: bouncer diff --git a/Kubernetes/GitOps/Gotify/default-headers.yaml b/Kubernetes/GitOps/Gotify/default-headers.yaml index ef8e3f6..7dc41c5 100644 --- a/Kubernetes/GitOps/Gotify/default-headers.yaml +++ b/Kubernetes/GitOps/Gotify/default-headers.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: default-headers diff --git a/Kubernetes/GitOps/Gotify/ingress.yaml b/Kubernetes/GitOps/Gotify/ingress.yaml index dc88102..3f1ae6d 100644 --- a/Kubernetes/GitOps/Gotify/ingress.yaml +++ b/Kubernetes/GitOps/Gotify/ingress.yaml @@ -1,5 +1,5 @@ --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: gotify diff --git a/Kubernetes/Traefik-External-Service/default-headers.yaml b/Kubernetes/Traefik-External-Service/default-headers.yaml index 32a85bd..c2dee58 100644 --- a/Kubernetes/Traefik-External-Service/default-headers.yaml +++ b/Kubernetes/Traefik-External-Service/default-headers.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: default-headers diff --git a/Kubernetes/Traefik-External-Service/ingress.yaml b/Kubernetes/Traefik-External-Service/ingress.yaml index 2594e29..e57b614 100644 --- a/Kubernetes/Traefik-External-Service/ingress.yaml +++ b/Kubernetes/Traefik-External-Service/ingress.yaml @@ -1,5 +1,5 @@ --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: proxmox diff --git a/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/ingress.yaml b/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/ingress.yaml index ae80892..3debb78 100644 --- a/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/ingress.yaml +++ b/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/ingress.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: traefik-dashboard diff --git a/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/middleware.yaml b/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/middleware.yaml index 029499e..2446277 100644 --- a/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/middleware.yaml +++ b/Kubernetes/Traefik-PiHole/Helm/Traefik/Dashboard/middleware.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: traefik-dashboard-basicauth diff --git a/Kubernetes/Traefik-PiHole/Helm/Traefik/default-headers.yaml b/Kubernetes/Traefik-PiHole/Helm/Traefik/default-headers.yaml index 435e574..b0884d2 100644 --- a/Kubernetes/Traefik-PiHole/Helm/Traefik/default-headers.yaml +++ b/Kubernetes/Traefik-PiHole/Helm/Traefik/default-headers.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: default-headers diff --git a/Kubernetes/Traefik-PiHole/Manifest/PiHole/default-headers.yaml b/Kubernetes/Traefik-PiHole/Manifest/PiHole/default-headers.yaml index 44c1837..fb30a01 100644 --- a/Kubernetes/Traefik-PiHole/Manifest/PiHole/default-headers.yaml +++ b/Kubernetes/Traefik-PiHole/Manifest/PiHole/default-headers.yaml @@ -1,4 +1,4 @@ -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: default-headers diff --git a/Kubernetes/Traefik-PiHole/Manifest/PiHole/ingress.yaml b/Kubernetes/Traefik-PiHole/Manifest/PiHole/ingress.yaml index dc7bc4c..ae03634 100644 --- a/Kubernetes/Traefik-PiHole/Manifest/PiHole/ingress.yaml +++ b/Kubernetes/Traefik-PiHole/Manifest/PiHole/ingress.yaml @@ -1,5 +1,5 @@ --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: pihole diff --git a/Kubernetes/Traefik-PiHole/readme.md b/Kubernetes/Traefik-PiHole/readme.md index e87b035..79094a2 100644 --- a/Kubernetes/Traefik-PiHole/readme.md +++ b/Kubernetes/Traefik-PiHole/readme.md @@ -2,3 +2,25 @@ Make sure that you watch the video instructions carefully as you need to amend the files correctly. YOU CANNOT JUST RUN THIS SCRIPT! Incorrect use can result in you being locked out of Lets Encrypt for a period of time. + +# NOTE FOR TRAEFIK v3 # +Many guides out there (including, until recently, this repo) reference an older version of the Kubernetes CRDs API group. +This older version is [deprecated](https://doc.traefik.io/traefik/master/migration/v2-to-v3/#kubernetes-crds-api-group-traefikcontainous) +as of Traefik v3 (released [29 April 2024](https://github.com/traefik/traefik/releases/tag/v3.0.0)) and must be updated to the new version +in your IngressRoute, Middleware, ServersTransport, etc. yaml manifests for Traefik. Any resources with the deprecated version will not +be recognized by Traefik v3. + +Old, deprecated version: +```yaml +apiVersion: traefik.containo.us/v1alpha1 +``` + +New, supported version: +```yaml +apiVersion: traefik.io/v1alpha1 +``` +This new version is also supported in later releases of Traefik v2, so you can update your Traefik-related manifests +to the new version and apply the updated manifests before upgrading your Traefik deployment. + +It may be worth reviewing other v2 to v3 migration notes provided by Traefik: +[Traefik v2 to v3 Migration](https://doc.traefik.io/traefik/master/migration/v2-to-v3/) diff --git a/Unifi-Controller/kubernetes/ingress.yaml b/Unifi-Controller/kubernetes/ingress.yaml index 171cf64..bfe8728 100644 --- a/Unifi-Controller/kubernetes/ingress.yaml +++ b/Unifi-Controller/kubernetes/ingress.yaml @@ -1,5 +1,5 @@ --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: default-headers @@ -16,7 +16,7 @@ spec: customRequestHeaders: X-Forwarded-Proto: https --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: unifi-controller