adding ingressroute setup

This commit is contained in:
baschno
2025-01-06 18:16:35 +01:00
parent ee5b65bc90
commit 2c9e139f9a
3 changed files with 19 additions and 3 deletions

View File

@@ -9,4 +9,4 @@ spec:
name: cloudflare-cluster-issuer
kind: ClusterIssuer
dnsNames:
- nginx.k8s.redacted
- nginx-test.k8s.internal.schnrbs.work

View File

@@ -0,0 +1,16 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nginx-ingress-route
namespace: test
spec:
entryPoints:
- websecure
routes:
- match: Host(`nginx-test.k8s.internal.schnrbs.work`)
kind: Rule
services:
- name: nginx
port: 80
tls:
secretName: nginx-certificate-secret

View File

@@ -7,7 +7,7 @@ metadata:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
rules:
- host: nginx.k8s.redacted
- host: nginx-test.k8s.internal.schnrbs.work
http:
paths:
- path: /
@@ -19,5 +19,5 @@ spec:
number: 80
tls:
- hosts:
- nginx.k8s.redacted
- nginx-test.k8s.internal.schnrbs.work
secretName: nginx-certificate-secret