-
Notifications
You must be signed in to change notification settings - Fork 1
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
jjstratton
committed
Sep 24, 2024
1 parent
c1dbd35
commit 5447f34
Showing
3 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
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,35 @@ | ||
|
||
# Go to maintenance mode | ||
|
||
## Make sure diam-prod-maintenance deployment has up to 1 instance running | ||
|
||
Wait for instance to be ready | ||
|
||
## Change Ingress | ||
``` | ||
From the Command Line: | ||
login to Gold | ||
oc project e27db1-prod | ||
oc apply -f maintenance-ingress.yaml | ||
``` | ||
|
||
## Verify Site | ||
|
||
[jpidp.justice.gov.bc.ca](https://jpidp.justice.gov.bc.ca/) | ||
[accused.bcprosecution.gov.bc.ca](https://accused.bcprosecution.gov.bc.ca/) | ||
[agencies.justice.gov.bc.ca](https://agencies.justice.gov.bc.ca/) | ||
[access.bcps.gov.bc.ca](https://access.bcps.gov.bc.ca/) | ||
[legalcounsel.justice.gov.bc.ca](https://legalcounsel.justice.gov.bc.ca/) | ||
|
||
# Leave maintenance mode | ||
|
||
Verify new site is up and running. | ||
|
||
# Change Route | ||
|
||
``` | ||
oc project e27db1-prod | ||
oc apply -f regular-ingress.yaml | ||
``` | ||
|
||
## Scale diam-prod-maintenance down to 0 instances to save resources |
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,64 @@ | ||
kind: Ingress | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
annotations: | ||
route.openshift.io/termination: edge | ||
name: diam-prod-pidp | ||
namespace: e27db1-prod | ||
labels: | ||
app.kubernetes.io/instance: diam-prod | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: pidp | ||
devops.gov.bc.ca/gitops-app-shared: diam-prod | ||
spec: | ||
ingressClassName: openshift-default | ||
rules: | ||
- host: jpidp.justice.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-maintenance | ||
port: | ||
number: 8443 | ||
- host: accused.bcprosecution.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-maintenance | ||
port: | ||
number: 8443 | ||
- host: agencies.justice.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-maintenance | ||
port: | ||
number: 8443 | ||
- host: access.bcps.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-maintenance | ||
port: | ||
number: 8443 | ||
- host: legalcounsel.justice.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-maintenance | ||
port: | ||
number: 8443 | ||
status: | ||
loadBalancer: | ||
ingress: | ||
- hostname: router-default.apps.gold.devops.gov.bc.ca |
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,64 @@ | ||
kind: Ingress | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
annotations: | ||
route.openshift.io/termination: passthrough | ||
name: diam-prod-pidp | ||
namespace: e27db1-prod | ||
labels: | ||
app.kubernetes.io/instance: diam-prod | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: pidp | ||
devops.gov.bc.ca/gitops-app-shared: diam-prod | ||
spec: | ||
ingressClassName: openshift-default | ||
rules: | ||
- host: jpidp.justice.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-ingress | ||
port: | ||
number: 8443 | ||
- host: accused.bcprosecution.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-ingress | ||
port: | ||
number: 8443 | ||
- host: agencies.justice.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-ingress | ||
port: | ||
number: 8443 | ||
- host: access.bcps.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-ingress | ||
port: | ||
number: 8443 | ||
- host: legalcounsel.justice.gov.bc.ca | ||
http: | ||
paths: | ||
- pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: diam-prod-ingress | ||
port: | ||
number: 8443 | ||
status: | ||
loadBalancer: | ||
ingress: | ||
- hostname: router-default.apps.gold.devops.gov.bc.ca |