generated from navikt/bidrag-stonad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnais.yaml
134 lines (134 loc) · 3.87 KB
/
nais.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
apiVersion: "nais.io/v1alpha1"
kind: Application
metadata:
name: {{ name }}
namespace: bidrag
labels:
team: bidrag
spec:
observability:
autoInstrumentation:
enabled: true
runtime: java
azure:
application:
enabled: true
allowAllUsers: true
tenant: {{ azure.tenant }}
claims:
extra:
- "NAVident"
- "azp_name"
accessPolicy:
inbound:
rules:
{{#each azureAccessInbound}}
- application: {{this.application}}
namespace: {{this.namespace}}
cluster: {{this.cluster}}
{{/each}}
outbound:
external:
- host: {{ azure.familiebasak_url }}
- host: {{ azure.familieefsak_url }}
- host: {{ azure.bidragperson_base_url }}
- host: {{ azure.familiekssak_url }}
- host: {{ azure.inntektskomponenten_base_url }}
- host: {{ azure.sigrun_base_url }}
- host: {{ azure.pensjon_url }}
- host: {{ azure.aareg_url }}
- host: {{ azure.bidrag_organisasjon_url }}
- host: {{ azure.tilleggsstonadersak_url }}
- host: {{ azure.unsecure.ereg_url }}
rules:
- application: familie-ba-sak
namespace: teamfamilie
- application: familie-ef-sak
namespace: teamfamilie
- application: familie-ks-sak
namespace: teamfamilie
- application: tilleggsstonader-sak
namespace: tilleggsstonader
image: {{ image }}
liveness:
path: /actuator/health
initialDelay: 70
timeout: 1
periodSeconds: 5
failureThreshold: 10
readiness:
path: /actuator/health
initialDelay: 70
timeout: 1
prometheus:
enabled: true
path: /actuator/prometheus
secureLogs:
enabled: true
resources:
limits:
cpu: 1000m
memory: 2048Mi
requests:
cpu: 100m
memory: 1024Mi
replicas:
cpuThresholdPercentage: 80
max: 4
min: {{ spec.replicas.min }}
ingresses:
{{#each ingresses as |url|}}
- {{url}}
{{/each}}
env:
- name: FAMILIEBASAK_URL
value: https://{{ azure.familiebasak_url }}
- name: FAMILIEBASAK_SCOPE
value: {{ azure.familiebasak_scope }}
- name: FAMILIEEFSAK_URL
value: https://{{ azure.familieefsak_url }}
- name: FAMILIEEFSAK_SCOPE
value: {{ azure.familieefsak_scope }}
- name: INNTEKTSKOMPONENTEN_URL
value: https://{{ azure.inntektskomponenten_url }}
- name: INNTEKTSKOMPONENTEN_SCOPE
value: {{ azure.inntektskomponenten_scope }}
- name: SIGRUN_URL
value: https://{{ azure.sigrun_url }}
- name: SIGRUN_SCOPE
value: {{ azure.sigrun_scope }}
- name: PENSJON_URL
value: https://{{ azure.pensjon_url }}
- name: PENSJON_SCOPE
value: {{ azure.pensjon_scope }}
- name: BIDRAGPERSON_URL
value: https://{{ azure.bidragperson_url }}
- name: BIDRAGPERSON_SCOPE
value: {{ azure.bidragperson_scope }}
- name: FAMILIEKSSAK_URL
value: https://{{ azure.familiekssak_url }}
- name: FAMILIEKSSAK_SCOPE
value: {{ azure.familiekssak_scope }}
- name: AAREG_URL
value: https://{{ azure.aareg_url }}
- name: AAREG_SCOPE
value: {{ azure.aareg_scope }}
- name: EREG_URL
value: https://{{ azure.unsecure.ereg_url }}
- name: BIDRAG_ORGANISASJON_URL
value: https://{{ azure.bidrag_organisasjon_url }}/bidrag-organisasjon
- name: BIDRAG_ORGANISASJON_SCOPE
value: {{ azure.bidrag_organisasjon_scope }}
- name: TILLEGGSSTONADERSAK_URL
value: https://{{ azure.tilleggsstonadersak_url }}
- name: TILLEGGSSTONADERSAK_SCOPE
value: {{ azure.tilleggsstonadersak_scope }}
gcp:
sqlInstances:
- name: {{ dbinstancename }}
type: POSTGRES_15
diskSize: {{ spec.gcp.sqlInstances.diskSize }}
databases:
- name: {{ dbname }}
envVarPrefix: DB
tier: {{ spec.gcp.sqlInstances.tier }}