Skip to content

Commit 8dbbd1f

Browse files
committed
Deployer bekreftelse-utgang til prod
1 parent 43fd500 commit 8dbbd1f

File tree

2 files changed

+67
-20
lines changed

2 files changed

+67
-20
lines changed

.github/workflows/bekreftelse-utgang.yaml

+20-20
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,23 @@ jobs:
8383
RESOURCE: ./apps/${{ env.MODULE }}/nais/nais-dev.yaml
8484
VAR: image=${{ needs.build.outputs.image }}
8585

86-
# deploy-prod:
87-
# if: github.ref == 'refs/heads/main'
88-
# name: Deploy to prod-gcp
89-
# needs:
90-
# - build
91-
# - deploy-dev
92-
# permissions:
93-
# contents: read
94-
# id-token: write
95-
# runs-on: ubuntu-latest
96-
# steps:
97-
# - name: Checkout
98-
# uses: actions/checkout@v4
99-
# - name: Deploy to GCP
100-
# uses: nais/deploy/actions/deploy@v2
101-
# env:
102-
# TEAM: paw
103-
# CLUSTER: prod-gcp
104-
# RESOURCE: ./apps/${{ env.MODULE }}/nais/nais-prod.yaml
105-
# VAR: image=${{ needs.build.outputs.image }}
86+
deploy-prod:
87+
if: github.ref == 'refs/heads/main'
88+
name: Deploy to prod-gcp
89+
needs:
90+
- build
91+
- deploy-dev
92+
permissions:
93+
contents: read
94+
id-token: write
95+
runs-on: ubuntu-latest
96+
steps:
97+
- name: Checkout
98+
uses: actions/checkout@v4
99+
- name: Deploy to GCP
100+
uses: nais/deploy/actions/deploy@v2
101+
env:
102+
CLUSTER: prod-gcp
103+
RESOURCE: ./apps/${{ env.MODULE }}/nais/nais-prod.yaml
104+
VAR: image=${{ needs.build.outputs.image }}
105+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: nais.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: paw-arbeidssoekerregisteret-bekreftelse-utgang
5+
namespace: paw
6+
labels:
7+
team: paw
8+
spec:
9+
image: {{ image }}
10+
port: 8080
11+
env:
12+
- name: KAFKA_STREAMS_ID_SUFFIX
13+
value: "v2"
14+
- name: KAFKA_PAW_ARBEIDSSOKERPERIODER_TOPIC
15+
value: "paw.arbeidssokerperioder-v1"
16+
- name: KAFKA_PAW_ARBEIDSSOKER_BEKREFTELSE_HENDELSELOGG_TOPIC
17+
value: "paw.arbeidssoker-bekreftelse-hendelseslogg-v2"
18+
- name: KAFKA_PAW_ARBEIDSSOKER_HENDELSELOGG_TOPIC
19+
value: "paw.arbeidssoker-hendelseslogg-v1"
20+
azure:
21+
application:
22+
enabled: true
23+
replicas:
24+
min: 1
25+
max: 1
26+
resources:
27+
limits:
28+
memory: 1024Mi
29+
requests:
30+
cpu: 20m
31+
memory: 512Mi
32+
liveness:
33+
path: /internal/isAlive
34+
initialDelay: 10
35+
readiness:
36+
path: /internal/isReady
37+
initialDelay: 10
38+
prometheus:
39+
enabled: true
40+
path: /internal/metrics
41+
observability:
42+
autoInstrumentation:
43+
enabled: true
44+
runtime: java
45+
kafka:
46+
pool: nav-prod
47+
streams: true

0 commit comments

Comments
 (0)