-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
139 additions
and
25 deletions.
There are no files selected for viewing
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
service_unavailable_page/manifests/ingress_external_main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: review-colin.apply-for-teacher-training.service.gov.uk | ||
namespace: bat-qa | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: review-colin.apply-for-teacher-training.service.gov.uk | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: apply-review-9252 | ||
port: | ||
number: 80 |
2 changes: 1 addition & 1 deletion
2
...lable_page/manifests/ingress_external.yml → ...anifests/ingress_external_maintenance.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
service_unavailable_page/manifests/ingress_internal_main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: apply-review-9252.test.teacherservices.cloud | ||
namespace: bat-qa | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: apply-review-9252.test.teacherservices.cloud | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: apply-review-9252 | ||
port: | ||
number: 80 |
17 changes: 17 additions & 0 deletions
17
service_unavailable_page/manifests/ingress_internal_maintenance.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: apply-review-9252.test.teacherservices.cloud | ||
namespace: bat-qa | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: apply-review-9252.test.teacherservices.cloud | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: apply-teacher-training-maintenance | ||
port: | ||
number: 80 |
2 changes: 1 addition & 1 deletion
2
...ce_unavailable_page/manifests/ingress.yml → ...le_page/manifests/ingress_maintenance.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
service_unavailable_page/manifests/ingress_temp_to_main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: apply-teacher-training-temp.test.teacherservices.cloud | ||
namespace: bat-qa | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: apply-teacher-training-temp.test.teacherservices.cloud | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: apply-review-9252 | ||
port: | ||
number: 80 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
echo Recreate external ingress using terraform | ||
set -eu | ||
|
||
echo Delete external ingress pointing at the maintenance app | ||
kubectl delete -f service_unavailable_page/manifests/ingress_external.yml | ||
echo Reconfigure ingresses using terraform | ||
kubectl apply -f service_unavailable_page/manifests/ingress_external_main.yml | ||
kubectl apply -f service_unavailable_page/manifests/ingress_internal_main.yml | ||
|
||
echo Delete temp ingress | ||
kubectl delete -f service_unavailable_page/manifests/ingress_temp_to_main.yml | ||
|
||
echo Delete maintenance ingress | ||
kubectl delete -f service_unavailable_page/manifests/ingress_maintenance.yml | ||
|
||
echo Delete maintenance service | ||
kubectl delete -f service_unavailable_page/manifests/service_maintenance.yml | ||
|
||
echo Delete maintenance app | ||
kubectl delete -f service_unavailable_page/manifests/deployment_maintenance.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
echo Delete external ingress | ||
kubectl -n bat-qa delete ingress review-colin.apply-for-teacher-training.service.gov.uk | ||
set -eu | ||
|
||
echo Create new external ingress pointing at the maintenance app | ||
kubectl apply -f service_unavailable_page/manifests/ingress_external.yml | ||
### Deploy maintenance app ### | ||
echo Create maintenance deployment | ||
kubectl apply -f service_unavailable_page/manifests/deployment_maintenance.yml | ||
kubectl create deployment apply-teacher-training-maintenance \ | ||
--image ghcr.io/dfe-digital/apply-teacher-training-maintenance:ee1bba7d04e845d44fe2fe4ab77fc2acab485aa6 \ | ||
--port 80 \ | ||
--replicas 2 \ | ||
|
||
|
||
|
||
echo Create maintenance service | ||
kubectl apply -f service_unavailable_page/manifests/service_maintenance.yml | ||
|
||
echo Create maintenance ingress | ||
kubectl apply -f service_unavailable_page/manifests/ingress_maintenance.yml | ||
|
||
### Change ingress ### | ||
echo Configure external ingress to point at the maintenance app | ||
kubectl apply -f service_unavailable_page/manifests/ingress_external_maintenance.yml | ||
|
||
echo Configure internal ingress to point at the maintenance app | ||
kubectl apply -f service_unavailable_page/manifests/ingress_internal_maintenance.yml | ||
|
||
echo Create temp ingress | ||
kubectl apply -f service_unavailable_page/manifests/ingress_temp_to_main.yml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
aks: | ||
source: "https://github.com/DFE-Digital/terraform-modules" | ||
version: "main" | ||
version: "1684-spike-maintenance-page-ingress" |