From 0415c037d6b883c870380f60f1563c5f4255082c Mon Sep 17 00:00:00 2001 From: Joy Liu Date: Tue, 7 Feb 2023 02:14:42 -0500 Subject: [PATCH] :tada: Add OHQ wsgi + asgi ingresses --- .../helm/office-hours-queue-django-asgi.yaml | 20 +++++++++++++++++++ .../helm/office-hours-queue-django-wsgi.yaml | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 terraform/helm/office-hours-queue-django-asgi.yaml create mode 100644 terraform/helm/office-hours-queue-django-wsgi.yaml diff --git a/terraform/helm/office-hours-queue-django-asgi.yaml b/terraform/helm/office-hours-queue-django-asgi.yaml new file mode 100644 index 00000000..fee4d663 --- /dev/null +++ b/terraform/helm/office-hours-queue-django-asgi.yaml @@ -0,0 +1,20 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + annotations: + name: office-hours-queue-django-asgi + namespace: default +spec: + entryPoints: + - websecure + routes: + - kind: Rule + match: Host(`ohq.io`) && PathPrefix(`/`) + services: + - kind: Service + name: office-hours-queue-django-asgi + namespace: default + passHostHeader: true + port: 80 + tls: + secretName: ohq-io-tls \ No newline at end of file diff --git a/terraform/helm/office-hours-queue-django-wsgi.yaml b/terraform/helm/office-hours-queue-django-wsgi.yaml new file mode 100644 index 00000000..7bcb8fc8 --- /dev/null +++ b/terraform/helm/office-hours-queue-django-wsgi.yaml @@ -0,0 +1,20 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + annotations: + name: office-hours-queue-django-wsgi + namespace: default +spec: + entryPoints: + - websecure + routes: + - kind: Rule + match: Host(`ohq.io`) && PathPrefix(`/`) + services: + - kind: Service + name: office-hours-queue-django-wsgi + namespace: default + passHostHeader: true + port: 80 + tls: + secretName: ohq-io-tls \ No newline at end of file