Skip to content

Commit 2534e61

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

File tree

3 files changed

+91
-2
lines changed

3 files changed

+91
-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

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