From dc41068299f045c4548eec20e0391113a80dde15 Mon Sep 17 00:00:00 2001 From: Neill Turner Date: Fri, 1 Nov 2024 10:37:52 +0000 Subject: [PATCH] preproduction maintenance page --- .github/workflows/maintenance.yml | 1 + .../preproduction/ingress_internal_to_main.yml | 16 ++++++++++++++++ .../ingress_internal_to_maintenance.yml | 16 ++++++++++++++++ .../preproduction/ingress_maintenance.yml | 16 ++++++++++++++++ .../preproduction/ingress_temp_to_main.yml | 16 ++++++++++++++++ 5 files changed, 65 insertions(+) create mode 100644 maintenance_page/manifests/preproduction/ingress_internal_to_main.yml create mode 100644 maintenance_page/manifests/preproduction/ingress_internal_to_maintenance.yml create mode 100644 maintenance_page/manifests/preproduction/ingress_maintenance.yml create mode 100644 maintenance_page/manifests/preproduction/ingress_temp_to_main.yml diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index 60caa330e..5f42f82a8 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -8,6 +8,7 @@ on: type: choice options: - test + - preproduction - production mode: required: true diff --git a/maintenance_page/manifests/preproduction/ingress_internal_to_main.yml b/maintenance_page/manifests/preproduction/ingress_internal_to_main.yml new file mode 100644 index 000000000..c25146de8 --- /dev/null +++ b/maintenance_page/manifests/preproduction/ingress_internal_to_main.yml @@ -0,0 +1,16 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: apply-for-qts-preproduction-web.test.teacherservices.cloud +spec: + ingressClassName: nginx + rules: + - host: apply-for-qts-preproduction-web.test.teacherservices.cloud + http: + paths: + - pathType: ImplementationSpecific + backend: + service: + name: apply-for-qts-preproduction-web + port: + number: 80 diff --git a/maintenance_page/manifests/preproduction/ingress_internal_to_maintenance.yml b/maintenance_page/manifests/preproduction/ingress_internal_to_maintenance.yml new file mode 100644 index 000000000..cc138b2ae --- /dev/null +++ b/maintenance_page/manifests/preproduction/ingress_internal_to_maintenance.yml @@ -0,0 +1,16 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: apply-for-qts-preproduction-web.test.teacherservices.cloud +spec: + ingressClassName: nginx + rules: + - host: apply-for-qts-preproduction-web.test.teacherservices.cloud + http: + paths: + - pathType: ImplementationSpecific + backend: + service: + name: apply-for-qts-maintenance + port: + number: 80 diff --git a/maintenance_page/manifests/preproduction/ingress_maintenance.yml b/maintenance_page/manifests/preproduction/ingress_maintenance.yml new file mode 100644 index 000000000..b14606067 --- /dev/null +++ b/maintenance_page/manifests/preproduction/ingress_maintenance.yml @@ -0,0 +1,16 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: apply-for-qts-maintenance.test.teacherservices.cloud +spec: + ingressClassName: nginx + rules: + - host: apply-for-qts-maintenance.test.teacherservices.cloud + http: + paths: + - pathType: ImplementationSpecific + backend: + service: + name: apply-for-qts-maintenance + port: + number: 80 diff --git a/maintenance_page/manifests/preproduction/ingress_temp_to_main.yml b/maintenance_page/manifests/preproduction/ingress_temp_to_main.yml new file mode 100644 index 000000000..bd3399cc5 --- /dev/null +++ b/maintenance_page/manifests/preproduction/ingress_temp_to_main.yml @@ -0,0 +1,16 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: apply-for-qts-temp.test.teacherservices.cloud +spec: + ingressClassName: nginx + rules: + - host: apply-for-qts-temp.test.teacherservices.cloud + http: + paths: + - pathType: ImplementationSpecific + backend: + service: + name: apply-for-qts-preproduction-web + port: + number: 80