Skip to content

Commit 79752f0

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

File tree

3 files changed

+94
-2
lines changed

3 files changed

+94
-2
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy Wonderwall
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+
permissions:
12+
id-token: write
13+
14+
jobs:
15+
deploy-wonderwall-dev:
16+
name: Deploy wonderwall in dev
17+
environment:
18+
name: wonderwall-dev
19+
url: https://www.ekstern.dev.nav.no/samarbeidspartner/sykmelding
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: nais/deploy/actions/deploy@v2
24+
env:
25+
CLUSTER: dev-gcp
26+
RESOURCE: nais/nais-dev-wonderwall.yaml

nais/nais-dev-wonderwall.yaml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
redis:
11+
# Same redis as syk-inn, will be owned by syk-inn because it created it
12+
- instance: syk-inn
13+
access: readwrite
14+
envFrom:
15+
# Created manually in nais console / kubectl
16+
- secret: tsm-syk-inn-helseid
17+
ingresses:
18+
- 'https://www.ekstern.dev.nav.no/samarbeidspartner/sykmelding'
19+
accessPolicy:
20+
outbound:
21+
rules:
22+
- application: syk-inn
23+
external:
24+
- host: helseid-sts.test.nhn.no
25+
liveness:
26+
path: /samarbeidspartner/sykmelding/oauth2/ping
27+
initialDelay: 5
28+
readiness:
29+
path: /samarbeidspartner/sykmelding/oauth2/ping
30+
initialDelay: 5
31+
prometheus:
32+
enabled: false
33+
replicas:
34+
min: 1
35+
max: 2
36+
cpuThresholdPercentage: 90
37+
resources:
38+
limits:
39+
memory: 128Mi
40+
requests:
41+
cpu: 50m
42+
memory: 64Mi
43+
env:
44+
- name: WONDERWALL_OPENID_CLIENT_ID
45+
value: '114949aa-d482-4fbd-9548-bc5fa26ddbd8'
46+
- name: WONDERWALL_OPENID_SCOPES
47+
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
48+
- name: WONDERWALL_UPSTREAM_HOST
49+
value: syk-inn
50+
- name: WONDERWALL_INGRESS
51+
value: https://www.ekstern.dev.nav.no/samarbeidspartner/sykmelding
52+
- name: WONDERWALL_OPENID_WELL_KNOWN_URL
53+
value: https://helseid-sts.test.nhn.no/.well-known/openid-configuration
54+
- name: WONDERWALL_REDIS_URI
55+
value: $(REDIS_URI_SYK_INN)
56+
- name: WONDERWALL_REDIS_USERNAME
57+
value: $(REDIS_USERNAME_SYK_INN)
58+
- name: WONDERWALL_REDIS_PASSWORD
59+
value: $(REDIS_PASSWORD_SYK_INN)
60+
- name: WONDERWALL_BIND_ADDRESS
61+
value: $(BIND_ADDRESS)
62+
- name: WONDERWALL_AUTO_LOGIN
63+
value: 'true'
64+
- name: WONDERWALL_AUTO_LOGIN_IGNORE_PATHS
65+
value: '/samarbeidspartner/sykmelding/fhir/**'

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)