Skip to content

Commit

Permalink
maintenance page wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
jjstratton committed Sep 24, 2024
1 parent c1dbd35 commit 5447f34
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 0 deletions.
35 changes: 35 additions & 0 deletions maintenance/README.md
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
64 changes: 64 additions & 0 deletions maintenance/maintenance-ingress.yaml
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
64 changes: 64 additions & 0 deletions maintenance/regular-ingress.yaml
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

0 comments on commit 5447f34

Please sign in to comment.