Skip to content

Commit

Permalink
Merge pull request #83 from navikt/gcp
Browse files Browse the repository at this point in the history
Deploye app til gcp
  • Loading branch information
gtcno authored Feb 12, 2024
2 parents 4e5539a + 29555f9 commit fd7e70e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
needs: [build]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: dev-fss
environment: dev-gcp
steps:
- name: Fetch NAIS yaml
uses: actions/download-artifact@v4
Expand All @@ -68,7 +68,7 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-fss
CLUSTER: dev-gcp
RESOURCE: .nais/nais.yaml
VAR: image=${{ needs.build.outputs.image }}
VARS: .nais/dev-vars.yaml
Expand All @@ -79,7 +79,7 @@ jobs:
needs: [build, deploy-dev]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: prod-fss
environment: prod-gcp
steps:
- name: Fetch NAIS yaml
uses: actions/download-artifact@v4
Expand All @@ -90,7 +90,7 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-fss
CLUSTER: prod-gcp
RESOURCE: .nais/nais.yaml
VAR: image=${{ needs.build.outputs.image }}
VARS: .nais/prod-vars.yaml
Expand Down
2 changes: 1 addition & 1 deletion .nais/dev-vars.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kafka:
pool: nav-dev
dp_inntekt:
scope: api://dev-fss.teamdagpenger.dp-inntekt-api/.default
scope: api://dev-gcp.teamdagpenger.dp-inntekt-api/.default

replicas:
min: 1
Expand Down
9 changes: 5 additions & 4 deletions .nais/nais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ spec:
requests:
cpu: 100m
memory: 256Mi
vault:
enabled: true
secureLogs:
enabled: true
azure:
application:
enabled: true
webproxy: true
accessPolicy:
outbound:
rules:
- application: dp-inntekt-api
env:
- name: DP_INNTEKT_API_SCOPE
value: {{dp_inntekt.scope}}
value: {{dp_inntekt.scope}}
2 changes: 1 addition & 1 deletion .nais/prod-vars.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kafka:
pool: nav-prod
dp_inntekt:
scope: api://prod-fss.teamdagpenger.dp-inntekt-api/.default
scope: api://prod-gcp.teamdagpenger.dp-inntekt-api/.default

replicas:
min: 4
Expand Down

0 comments on commit fd7e70e

Please sign in to comment.