From bb5e76e1a4dc2144b8a6c9486bb002cdc158ec9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20R=C3=B8stvik?= Date: Tue, 15 Nov 2022 09:24:10 +0100 Subject: [PATCH] ingress --- Deployments/traefik-ingress.yaml | 15 +++++++++++++++ apps/templates/traefik.yaml | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 Deployments/traefik-ingress.yaml diff --git a/Deployments/traefik-ingress.yaml b/Deployments/traefik-ingress.yaml new file mode 100644 index 0000000..b457928 --- /dev/null +++ b/Deployments/traefik-ingress.yaml @@ -0,0 +1,15 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + annotations: + name: traefik-dash + namespace: traefik +spec: + entryPoints: + - web + routes: + - kind: Rule + match: Host(`traefik.roxedus.com`) && ( PathPrefix(`/dashboard`) || PathPrefix(`/api`)) + services: + - kind: TraefikService + name: api@internal diff --git a/apps/templates/traefik.yaml b/apps/templates/traefik.yaml index 832c7fb..7d14be3 100644 --- a/apps/templates/traefik.yaml +++ b/apps/templates/traefik.yaml @@ -45,12 +45,12 @@ spec: protocol: TCP web: port: 8000 - expose: true + expose: false exposedPort: 80 protocol: TCP websecure: port: 8443 - expose: true + expose: false exposedPort: 443 protocol: TCP http3: true @@ -62,7 +62,7 @@ spec: udp: port: 6666 protocol: UDP - expose: true + expose: false tlsOptions: default: