Skip to content

Commit dae944c

Browse files
committed
feat: wonderwallify syk-inn
1 parent ded8bd3 commit dae944c

File tree

3 files changed

+87
-2
lines changed

3 files changed

+87
-2
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build & Deploy
2+
on:
3+
push:
4+
paths:
5+
- .github/workflows/deploy-wonderwall.yml
6+
- nais/nais-dev-wonderwall.yaml
7+
branches:
8+
- main
9+
- chore/wonderpoc
10+
11+
jobs:
12+
deploy-wonderwall-dev:
13+
name: Deploy wonderwall in dev
14+
environment:
15+
name: wonderwall-dev
16+
url: https://www.ekstern.dev.nav.no/samarbeidspartner/sykmelding
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: nais/deploy/actions/deploy@v2
21+
env:
22+
CLUSTER: dev-gcp
23+
RESOURCE: nais/nais-dev-wonderwall.yaml

nais/nais-dev-wonderwall.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
apiVersion: 'nais.io/v1alpha1'
2+
kind: 'Application'
3+
metadata:
4+
name: syk-inn-wonderwall
5+
namespace: tsm
6+
labels:
7+
team: tsm
8+
spec:
9+
image: ghcr.io/nais/wonderwall:latest
10+
envFrom:
11+
# Created manually in nais console / kubectl
12+
- secret: tsm-syk-inn-helseid
13+
# Created by syk-inn application (see nais-dev.yaml)
14+
- secret: aiven-syk-inn-e504342c-2024-46
15+
ingresses:
16+
- 'https://www.ekstern.dev.nav.no/samarbeidspartner/sykmelding'
17+
accessPolicy:
18+
outbound:
19+
rules:
20+
- application: syk-inn
21+
external:
22+
- host: helseid-sts.test.nhn.no
23+
liveness:
24+
path: /samarbeidspartner/sykmelding/oauth2/ping
25+
initialDelay: 5
26+
readiness:
27+
path: /samarbeidspartner/sykmelding/oauth2/ping
28+
initialDelay: 5
29+
prometheus:
30+
enabled: false
31+
replicas:
32+
min: 1
33+
max: 2
34+
cpuThresholdPercentage: 90
35+
resources:
36+
limits:
37+
memory: 128Mi
38+
requests:
39+
cpu: 50m
40+
memory: 64Mi
41+
env:
42+
- name: WONDERWALL_OPENID_CLIENT_ID
43+
value: '114949aa-d482-4fbd-9548-bc5fa26ddbd8'
44+
- name: WONDERWALL_OPENID_SCOPES
45+
value: profile,offline_access,helseid://scopes/identity/assurance_level,helseid://scopes/identity/pid,helseid://scopes/identity/security_level,helseid://scopes/hpr/hpr_number,helseid://scopes/identity/assurance_level,helseid://scopes/identity/network
46+
- name: WONDERWALL_UPSTREAM_HOST
47+
value: syk-inn
48+
- name: WONDERWALL_INGRESS
49+
value: https://www.ekstern.dev.nav.no/samarbeidspartner/sykmelding
50+
- name: WONDERWALL_OPENID_WELL_KNOWN_URL
51+
value: https://helseid-sts.test.nhn.no/.well-known/openid-configuration
52+
- name: WONDERWALL_REDIS_URI
53+
value: $(REDIS_URI_SYK_INN)
54+
- name: WONDERWALL_REDIS_USERNAME
55+
value: $(REDIS_USERNAME_SYK_INN)
56+
- name: WONDERWALL_REDIS_PASSWORD
57+
value: $(REDIS_PASSWORD_SYK_INN)
58+
- name: WONDERWALL_BIND_ADDRESS
59+
value: $(BIND_ADDRESS)
60+
- name: WONDERWALL_AUTO_LOGIN
61+
value: 'false'

nais/nais-dev.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ metadata:
88
spec:
99
image: {{image}}
1010
port: 3000
11-
ingresses:
12-
- 'https://www.ekstern.dev.nav.no/samarbeidspartner/sykmelding'
1311
replicas:
1412
min: 2
1513
max: 2
@@ -39,6 +37,9 @@ spec:
3937
application:
4038
enabled: true
4139
accessPolicy:
40+
inbound:
41+
rules:
42+
- application: syk-inn-wonderwall
4243
outbound:
4344
external:
4445
- host: 'fhirapi.public.webmedepj.no'

0 commit comments

Comments
 (0)