nextcloud: migrate to gateway api

This commit is contained in:
williamp committed 2026-10-11 12:13:46 -04:00
1 parent 0a9f32b785
commit dad2846cc7
3 files changed
+37 -24

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: traefik
spec:
gatewayClassName: traefik
listeners:
- name: https
protocol: HTTPS
port: 8443
tls:
mode: Terminate
certificateRefs:
- name: cert-dubyatp-xyz
namespace: cert-manager
allowedRoutes:
namespaces:
from: Same
+19
View File
@@ -0,0 +1,19 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: nextcloud
spec:
parentRefs:
- name: traefik
sectionName: https
kind: Gateway
hostnames:
- nextcloud.dubyatp.xyz
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: nextcloud
port: 80
-24
View File
@@ -1,24 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nextcloud
annotations:
traefik.ingress.kubernetes.io/router.middlewares: nextcloud-nextcloud-headers@kubernetescrd,nextcloud-nextcloud-redirectregex@kubernetescrd
labels:
name: nextcloud
spec:
rules:
- host: nextcloud.dubyatp.xyz
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: nextcloud
port:
number: 80
tls:
- secretName: cert-dubyatp-xyz
hosts:
- nextcloud.dubyatp.xyz