Skip to content

Commit

Permalink
Dev gcp (#1297)
Browse files Browse the repository at this point in the history
* bytte db-config

* db env var prefix

* fikse config for tester

* fikse config for tester

* gi tom verdi til vault_mountpath, kanskje det hjelper

* prøve å fikse deploy

* go agane :-)

* Revert "go agane :-)"

This reverts commit c40cda7.

* trenger vi denne?

* Bytte til GCP-eksponerte URLer

* støtte både fss og gcp env vars for db

* fiks

* flytte ingressen til gcp-appen

* fjerne dev-fss workflow

* ny ingress

* reply url

* swagger url

* prøver å være eksplisitt i inbound-rules

* access policy

* fjerne webproxy

* outbound access policy

* outbound traffic

* skipper tester

* fjerne disabling av test

* fjerne overflødig /

* fjerne dev-fss

* forskjellige config-filer for fss og gcp

* ubrukt import

* isVaultEnabled sjekker om property er blank

* application-fss.yml i tester

* neivel

* go agane

* .

* ....

* Test

* Ree

* rm

* fix

* vault mount path

* vault mount path

* trenger ikke sette profil i prod-fss, skal bare bruke default

* fix gcp config fil

* prøve igjen

* prøve tom array for å override init-sqls fra application.yml

* run deploy on push to master
  • Loading branch information
vebnor authored Jan 16, 2025
1 parent b37618c commit f9db144
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 255 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-master-deploy-dev-gcp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build master & deploy to dev-gcp

on:
workflow_dispatch:
push:
branches:
- master

env:
IMAGE_BASE: ghcr.io/${{ github.repository }}
Expand Down
67 changes: 0 additions & 67 deletions .github/workflows/build-master-deploy-dev.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Link til k9-punsj skjemaer:

### Swagger i dev
Bruk header fra Nav token header i authorize.
[Swagger](https://k9-punsj.dev.intern.nav.no/internal/webjars/swagger-ui/index.html?configUrl=/internal/api-docs/swagger-config)
[Swagger](https://k9-punsj.intern.dev.nav.no/internal/webjars/swagger-ui/index.html?configUrl=/internal/api-docs/swagger-config)

### Accesstoken i dev
Husk å være logget inn på [dev](https://k9-punsj-frontend.intern.dev.nav.no/) først, så gå til
Expand Down
162 changes: 0 additions & 162 deletions nais/dev-fss.yml

This file was deleted.

50 changes: 30 additions & 20 deletions nais/dev-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,25 @@ spec:
- id: "0bc9661c-975c-4adb-86d1-a97172490662"
singlePageApplication: true
replyURLs:
- https://k9-punsj.dev.intern.nav.no/internal/webjars/swagger-ui/oauth2-redirect.html
- https://k9-punsj.intern.dev.nav.no/internal/webjars/swagger-ui/oauth2-redirect.html
accessPolicy:
inbound:
rules:
- application: k9-punsj-frontend
namespace: k9saksbehandling
cluster: dev-gcp
- application: k9-sak
namespace: k9saksbehandling
cluster: dev-fss
outbound:
external:
- host: "saf-q2.dev-fss-pub.nais.io"
- host: "oppgave.dev-fss-pub.nais.io"
- host: "pdl-api.dev-fss-pub.nais.io"
- host: "abac-k9.dev-fss-pub.nais.io"
- host: "k9-sak.dev-fss-pub.nais.io"
- host: "aareg-services-q2.dev-fss-pub.nais.io"
- host: "ereg-services-q2.dev-fss-pub.nais.io"
- host: "dokarkiv-q2.dev-fss-pub.nais.io"

liveness:
path: /internal/actuator/info
initialDelay: 20
Expand All @@ -39,6 +50,8 @@ spec:
path: /internal/actuator/info
initialDelay: 20
timeout: 1
ingresses:
- https://k9-punsj.intern.dev.nav.no
resources:
limits:
cpu: 2000m
Expand All @@ -59,52 +72,44 @@ spec:
tier: db-f1-micro
databases:
- name: k9-punsj
envVarPrefix: DB
observability:
autoInstrumentation:
enabled: true
runtime: java
destinations:
- id: "grafana-lgtm"
webproxy: true
kafka:
pool: nav-dev
envFrom:
- secret: k9-punsj-secrets
env:
- name: DEFAULTDS_USERNAME
value: k9-punsj
- name: DEFAULTDS_PASSWORD
value: k9-punsj
- name: DEFAULTDS_VAULT_MOUNTPATH
value: postgresql/preprod-fss/
- name: DEFAULTDS_URL
value: jdbc:postgresql://b27dbvl028.preprod.local:5432/k9-punsj
- name: SWAGGER_SERVER_BASE_URL
value: https://k9-punsj.dev.intern.nav.no

# SAF:
- name: SAF_BASE_URL
value: https://saf.dev.intern.nav.no
value: https://saf-q2.dev-fss-pub.nais.io
- name: SAF_HENTE_JOURNALPOST_SCOPES
value: api://dev-fss.teamdokumenthandtering.saf/.default
- name: SAF_HENTE_DOKUMENT_SCOPES
value: api://dev-fss.teamdokumenthandtering.saf/.default

# Gosys / Oppgave:
- name: GOSYS_BASE_URL
value: http://oppgave.oppgavehandtering
value: https://oppgave.dev-fss-pub.nais.io
- name: GOSYS_BASE_SCOPE
value: api://dev-fss.oppgavehandtering.oppgave/.default

# PDL:
- name: PDL_BASE_URL
value: https://pdl-api.dev.intern.nav.no/graphql
value: https://pdl-api.dev-fss-pub.nais.io/graphql
- name: PDL_SCOPE
value: api://dev-fss.pdl.pdl-api/.default

# Sikkerhet:
- name: ABAC_PDP_ENDPOINT_URL
value: http://abac-k9.k9saksbehandling/application/authorize
value: https://abac-k9.dev-fss-pub.nais.io/application/authorize

# Audit logging
- name: AUDITLOGGER_ENABLED
Expand All @@ -120,17 +125,17 @@ spec:

# Integrasjoner (Rest)
- name: K9SAK_BASE_URL
value: https://k9-sak.nais.preprod.local/k9/sak/api
value: https://k9-sak.dev-fss-pub.nais.io/k9/sak/api
- name: K9SAK_SCOPE
value: api://dev-fss.k9saksbehandling.k9-sak/.default
- name: AAREG_BASE_URL
value: https://aareg-services.intern.dev.nav.no/api/v2
value: https://aareg-services-q2.dev-fss-pub.nais.io/api/v2
- name: AAREG_SCOPE
value: api://dev-fss.arbeidsforhold.aareg-services-nais/.default
- name: EREG_BASE_URL
value: https://ereg-services.intern.dev.nav.no/api/v1
value: https://ereg-services-q2.dev-fss-pub.nais.io/api/v1
- name: DOKARKIV_BASE_URL
value: https://dokarkiv.dev.intern.nav.no
value: https://dokarkiv-q2.dev-fss-pub.nais.io
- name: DOKARKIV_SCOPE
value: api://dev-fss.teamdokumenthandtering.dokarkiv/.default

Expand Down Expand Up @@ -158,4 +163,9 @@ spec:
- name: AZURE_LOGIN_URL
value: "https://login.microsoftonline.com/navq.onmicrosoft.com/oauth2/v2.0"

# Hvilken application-fil som brukes
- name: SPRING_PROFILES_ACTIVE
value: "gcp"



2 changes: 1 addition & 1 deletion nais/prod-fss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
extra:
- "NAVident"
groups:
# 0000-GA-k9-drift
# 0000-GA-k9-drift
- id: "1509dc91-a955-4e72-b64c-2f049e37c0c6"
singlePageApplication: true
replyURLs:
Expand Down
Loading

0 comments on commit f9db144

Please sign in to comment.