-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from bcgov/pipeline1
Infrastructure upgrade
- Loading branch information
Showing
41 changed files
with
2,353 additions
and
2,204 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
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,74 @@ | ||
--- | ||
autoscaling: | ||
enabled: true | ||
maxReplicas: 4 | ||
|
||
config: | ||
enabled: true | ||
configMap: | ||
KC_ENABLED: "true" | ||
KC_PUBLICKEY: >- | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsmuiI3bzde2avKEZd8P/ivnUFL9JxwfykQ9eC6qULkkALW4Nj+m0rH+yTuWTWPwZsYyICtWXbQui6Yh+EP0+bTeDzeDaD1oSUgqC4c9EySs64sGPQLE3sHllwONo8AegNQSiPw+KHE2Rf3ky61KuQHOhrszHKq1qT71ct5iPK9oeZ4vkr6A0XfNNOzih6Jp+XrmNmU85+ssNJ7Oy9plwxHBC73Ff3Jw8UF2dRPPLOJT3oAtYJYD4uuQebPq3bKv2n8iQftLG80l1frM1iG/jddoKItSYBRYsi4Mc65gGgkfsTQGk+Up0SULpO/nIASHWLSYNZOTiqAqMgkWQ+Ga9vQIDAQAB | ||
KC_REALM: comsvcauth | ||
KC_SERVERURL: "https://dev.loginproxy.gov.bc.ca/auth" | ||
SERVER_LOGLEVEL: info | ||
|
||
postgres: | ||
enabled: true | ||
# -------- backups --------- | ||
pgBackRestConfig: | ||
global: | ||
# log-level-console: debug | ||
# --- pvc | ||
repo1-retention-full: "2" | ||
repo1-retention-diff: "3" | ||
repos: | ||
- name: repo1 | ||
schedules: | ||
full: "0 7 * * *" # full backup every day at 7am | ||
differential: "0 */2 * * *" # differential every 2 hours | ||
volume: | ||
volumeClaimSpec: | ||
accessModes: | ||
- "ReadWriteOnce" | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
storageClassName: "netapp-file-backup" | ||
manual: | ||
repoName: repo1 | ||
options: | ||
- --type=full | ||
repoHost: | ||
resources: | ||
requests: | ||
cpu: 20m | ||
memory: 128Mi | ||
limits: | ||
cpu: 50m | ||
memory: 256Mi | ||
sidecars: | ||
pgbackrest: | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 16Mi | ||
limits: | ||
cpu: 20m | ||
memory: 64Mi | ||
pgbackrestConfig: | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
limits: | ||
cpu: 20m | ||
memory: 64Mi | ||
jobs: | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 64Mi | ||
limits: | ||
cpu: 50m | ||
memory: 128Mi |
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,5 @@ | ||
--- | ||
features: | ||
basicAuth: true | ||
oidcAuth: true | ||
defaultBucket: false |
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,190 @@ | ||
--- | ||
autoscaling: | ||
enabled: true | ||
maxReplicas: 4 | ||
|
||
config: | ||
enabled: true | ||
configMap: | ||
KC_ENABLED: "true" | ||
KC_PUBLICKEY: >- | ||
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtq5+xTKB1FRCwufdluEx8mNIZU3eXpo91QUrqlpq226HcyF9WPihdpuZzdlS+kW6EC2prZfJpvDvzT/Og4fx9ZoQVKV0uYvWvEg5Sc3ikQMfO0ngqUC6FkxElj9LzpijpdEQd0JAmmem2329lITwWroX70imLhYu3aY+Q3hSY2lg5OJCBw0I2pulfQiMsGn3vgkwSvmIsDhOgSnwPJhPxD9TY6kjvTff6LB1bFSwlxh1l8dRBqRabDunoHn/uHfhVAHB/SgPkvP5Ybc5bP/idBNP0kiQcWiT02Z7aB1r7Fnd5YH9FEDhhF5OIYYBzHP4hPm6AgqG/IDhAuiqf/F9eQIDAQAB | ||
KC_REALM: comsvcauth | ||
KC_SERVERURL: "https://loginproxy.gov.bc.ca/auth" | ||
SERVER_LOGLEVEL: http | ||
|
||
postgres: | ||
enabled: true | ||
|
||
# -------------------------------- | ||
# --------crunchydb config: ------ | ||
# -------------------------------- | ||
|
||
instances: | ||
- name: db # do not change this name after initial install, pvc (data) and stateful sets will be deleted | ||
replicas: 3 | ||
dataVolumeClaimSpec: | ||
accessModes: | ||
- "ReadWriteOnce" | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
storageClassName: "netapp-block-standard" | ||
resources: | ||
requests: | ||
cpu: 50m | ||
memory: 128Mi | ||
limits: | ||
cpu: 100m | ||
memory: 256Mi | ||
sidecars: | ||
replicaCertCopy: | ||
resources: | ||
requests: | ||
cpu: 1m | ||
memory: 32Mi | ||
limits: | ||
cpu: 50m | ||
memory: 64Mi | ||
|
||
# -------- backups --------- | ||
pgBackRestConfig: | ||
manual: | ||
repoName: repo1 | ||
options: | ||
- --type=full | ||
repoHost: | ||
resources: | ||
requests: | ||
cpu: 20m | ||
memory: 128Mi | ||
limits: | ||
cpu: 50m | ||
memory: 256Mi | ||
sidecars: | ||
pgbackrest: | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 16Mi | ||
limits: | ||
cpu: 20m | ||
memory: 64Mi | ||
pgbackrestConfig: | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
limits: | ||
cpu: 20m | ||
memory: 64Mi | ||
jobs: | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 64Mi | ||
limits: | ||
cpu: 50m | ||
memory: 128Mi | ||
configuration: | ||
# secret for saving backups to S3 | ||
- secret: | ||
name: pgbackrest-s3 | ||
global: | ||
# log-level-console: debug | ||
# --- pvc | ||
repo1-retention-full: "3" | ||
repo1-retention-diff: "12" | ||
# --- s3 | ||
repo2-path: /backups/common-hosted-email-service/postgres/prod | ||
repo2-retention-full: "30" | ||
repo2-s3-uri-style: path | ||
repos: | ||
- name: repo1 | ||
schedules: | ||
full: "0 7 * * *" # full backup every day at 7am | ||
differential: "0 */2 * * *" # differential every 2 hours | ||
volume: | ||
volumeClaimSpec: | ||
accessModes: | ||
- "ReadWriteOnce" | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
storageClassName: "netapp-file-backup" | ||
- name: repo2 | ||
schedules: | ||
full: "0 3 * * *" # full backup every day at 3am | ||
s3: | ||
bucket: csstops | ||
endpoint: https://nrs.objectstore.gov.bc.ca | ||
region: us-east-1 | ||
# -- restore from backup | ||
# ref: https://access.crunchydata.com/documentation/postgres-operator/latest/tutorials/backups-disaster-recovery/disaster-recovery#perform-an-in-place-point-in-time-recovery-pitr | ||
restore: | ||
enabled: false | ||
repoName: repo1 # eg `repo1` (pvc) or `repo2` (s3) | ||
options: | ||
- --type=time | ||
- --target="2024-10-28 14:15:11-04" | ||
|
||
# -------- monitoring --------- | ||
monitoring: true | ||
monitoringConfig: | ||
resources: | ||
requests: | ||
cpu: 1m | ||
memory: 16Mi | ||
limits: | ||
cpu: 35m | ||
memory: 32Mi | ||
|
||
redis: | ||
architecture: replication | ||
global: | ||
storageClass: netapp-block-standard | ||
enabled: true | ||
auth: | ||
enabled: false | ||
image: | ||
registry: artifacts.developer.gov.bc.ca/docker-remote | ||
replica: | ||
shareProcessNamespace: true | ||
replicaCount: 3 | ||
persistentVolumeClaimRetentionPolicy: | ||
enabled: true | ||
whenDeleted: Delete | ||
persistence: | ||
enabled: true | ||
accessMode: ReadWriteOnce | ||
size: 25Mi | ||
resources: | ||
limits: | ||
cpu: 50m | ||
memory: 150Mi | ||
requests: | ||
cpu: 20m | ||
memory: 50Mi | ||
sentinel: | ||
enabled: true | ||
quorum: 1 | ||
podSecurityContext: {} | ||
containerSecurityContext: {} | ||
image: | ||
registry: artifacts.developer.gov.bc.ca/docker-remote | ||
persistence: | ||
enabled: true | ||
accessMode: ReadWriteOnce | ||
size: 25Mi | ||
storageClass: netapp-block-standard | ||
persistentVolumeClaimRetentionPolicy: | ||
enabled: true | ||
whenScaled: Delete | ||
whenDeleted: Delete | ||
resources: | ||
limits: | ||
cpu: 50m | ||
memory: 150Mi | ||
requests: | ||
cpu: 20m | ||
memory: 50Mi |
Oops, something went wrong.