Skip to content

Commit

Permalink
change/nais_db_tier (#3590)
Browse files Browse the repository at this point in the history
* Rettet tier som ikke er definert i https://cloud.google.com/sql/docs/postgres/instance-settings.
* Lagt til og normalisert config med tier: db-custom-1-3840 der det manglet.
* Replacing "docker-compose" with "docker compose", and using verbose arguments for readability.
  • Loading branch information
rfc3092 authored Aug 20, 2024
1 parent 7a69e02 commit a4b2313
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/common.integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: ./gradlew assemble --scan
- name: "Start docker containers"
run: |
JWK=$(cat ./mocks/jwk.json) docker-compose up -d --build
JWK=$(cat ./mocks/jwk.json) docker compose up --build --detach
- name: "Health check"
timeout-minutes: 5
run: |
Expand All @@ -52,4 +52,4 @@ jobs:
run: ./gradlew iTest --scan
- name: "Stop docker containers"
run: |
docker-compose down -v --remove-orphans
docker compose down --remove-orphans --volumes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Eller kjør:
Kjør kommandoen:

```
JWK=$(cat ./mocks/jwk.json) docker-compose up --build
JWK=$(cat ./mocks/jwk.json) docker compose up --build
```

Deretter kan itegrasjonstester kjøres med kommandoen:
Expand Down
1 change: 1 addition & 0 deletions apps/app-tilgang-analyse-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-app-tilgang-analyse-service-db
liveness:
Expand Down
1 change: 1 addition & 0 deletions apps/bruker-service/config.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-bruker-service-dev-db
resources:
Expand Down
1 change: 1 addition & 0 deletions apps/bruker-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-bruker-service-db
envFrom:
Expand Down
1 change: 1 addition & 0 deletions apps/dolly-backend/config.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_14
tier: db-custom-1-3840
name: testnav-dolly-backend-dev
databases:
- name: testnav-dolly-backend-dev
Expand Down
2 changes: 1 addition & 1 deletion apps/dolly-backend/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_14
tier: db-custom-2-7680
name: testnav-dolly-backend
databases:
- name: testnav-dolly-backend
tier: db-custom-2-3840
autoBackupHour: 2
1 change: 1 addition & 0 deletions apps/generer-organisasjon-populasjon-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-generer-organisasjon-populasjon-db
liveness:
Expand Down
1 change: 1 addition & 0 deletions apps/inntektsmelding-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-inntektsmelding-service-db
liveness:
Expand Down
6 changes: 3 additions & 3 deletions apps/levende-arbeidsforhold-ansettelse/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ spec:
- "https://testnav-levende-arbeidsforhold-ansettelse.intern.dev.nav.no"
gcp:
sqlInstances:
- autoBackupHour: 3 #Lager backup av hele SQL instancen hver dag kl 03:00
type: POSTGRES_14
- type: POSTGRES_14
tier: db-custom-1-3840
databases:
- name: testnav-levende-arbeidsforhold-db
insights:
enabled: true
recordApplicationTags: true
recordClientAddress: true
tier: db-f1-micro
diskAutoresize: true #Kanskje ikke nødvendig?
autoBackupHour: 3 #Lager backup av hele SQL instancen hver dag kl 03:00
#collation: DESC
1 change: 1 addition & 0 deletions apps/organisasjon-bestilling-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: organisasjon-bestilling-db
liveness:
Expand Down
1 change: 1 addition & 0 deletions apps/organisasjon-faste-data-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-organisasjon-faste-data-db
liveness:
Expand Down
1 change: 1 addition & 0 deletions apps/organisasjon-forvalter/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: organisasjon-forvalter-db
liveness:
Expand Down
1 change: 1 addition & 0 deletions apps/organisasjon-tilgang-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_15
tier: db-custom-1-3840
name: testnav-organisasjon-tilganger
databases:
- name: testnav-organisasjon-tilganger
Expand Down
1 change: 1 addition & 0 deletions apps/orgnummer-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_14
tier: db-custom-1-3840
name: testnav-orgnummer-pool
databases:
- name: testnav-orgnummer-pool
Expand Down
1 change: 1 addition & 0 deletions apps/pdl-forvalter/config.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-pdl-forvalter-dev-db
2 changes: 1 addition & 1 deletion apps/pdl-forvalter/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-pdl-forvalter-db
tier: db-custom-2-3840
1 change: 1 addition & 0 deletions apps/person-faste-data-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-person-faste-data-db
liveness:
Expand Down
2 changes: 1 addition & 1 deletion apps/testnav-ident-pool/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_14
tier: db-custom-1-3840
name: testnav-identpool
databases:
- name: testnav-identpool
tier: db-custom-1-3840
autoBackupHour: 2
1 change: 1 addition & 0 deletions apps/varslinger-service/config.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-varslinger-db-dev
liveness:
Expand Down
1 change: 1 addition & 0 deletions apps/varslinger-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_12
tier: db-custom-1-3840
databases:
- name: testnav-varslinger-db
liveness:
Expand Down

0 comments on commit a4b2313

Please sign in to comment.