From 6886eb550954370f36e744703fa2b5c52b141925 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Wed, 24 Jul 2024 01:35:01 -0400 Subject: [PATCH] set up the frontend (staging) this can go away, and 10.17.12.208 becomes the frontend later on Signed-off-by: Kingdon Barrett --- .../water-teamhephy-ingressroute.yaml | 33 +++++++++++++++++++ .../water-teamhephy-service-endpoints.yaml | 31 +++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 apps/routers/talos-related-routes/water-https/water-teamhephy-ingressroute.yaml create mode 100644 apps/routers/talos-related-routes/water-https/water-teamhephy-service-endpoints.yaml diff --git a/apps/routers/talos-related-routes/water-https/water-teamhephy-ingressroute.yaml b/apps/routers/talos-related-routes/water-https/water-teamhephy-ingressroute.yaml new file mode 100644 index 00000000..658296b2 --- /dev/null +++ b/apps/routers/talos-related-routes/water-https/water-teamhephy-ingressroute.yaml @@ -0,0 +1,33 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: water-teamhephy + namespace: traefik-staging +spec: + entryPoints: + - web + routes: + - kind: Rule + match: Host(`water.teamhephy.info`) + services: + - kind: Service + name: water-teamhephy + namespace: traefik-staging + port: 80 +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRouteTCP +metadata: + name: water-teamhephy + namespace: traefik-staging +spec: + entryPoints: + - websecure + routes: + - match: HostSNI(`water.teamhephy.info`) + services: + - name: water-teamhephy + namespace: traefik-staging + port: 443 + tls: + passthrough: true diff --git a/apps/routers/talos-related-routes/water-https/water-teamhephy-service-endpoints.yaml b/apps/routers/talos-related-routes/water-https/water-teamhephy-service-endpoints.yaml new file mode 100644 index 00000000..42c7e50c --- /dev/null +++ b/apps/routers/talos-related-routes/water-https/water-teamhephy-service-endpoints.yaml @@ -0,0 +1,31 @@ +kind: Service +apiVersion: v1 +metadata: + name: water-teamhephy + namespace: traefik-staging +spec: + ports: + - name: water-https + protocol: TCP + port: 443 + targetPort: 443 + nodePort: 0 + - name: water-http + protocol: TCP + port: 80 + targetPort: 80 + nodePort: 0 +--- +kind: Endpoints +apiVersion: v1 +metadata: + name: water-teamhephy + namespace: traefik-staging +subsets: +- addresses: + - ip: 10.17.12.208 + ports: + - port: 443 + name: water-https + - port: 80 + name: water-http