-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnaiserator.yaml
94 lines (94 loc) · 1.93 KB
/
naiserator.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
kind: Application
apiVersion: nais.io/v1alpha1
metadata:
name: k9-abakus
namespace: k9saksbehandling
labels:
team: k9saksbehandling
spec:
image: {{image}}
port: 8080
ingresses:
{{#each ingresses as |url|}}
- {{url}}
{{/each}}
liveness:
path: /k9/abakus/internal/health/isAlive
initialDelay: 10
periodSeconds: 10
failureThreshold: 20
timeout: 3
readiness:
path: /k9/abakus/internal/health/isReady
initialDelay: 10
periodSeconds: 10
failureThreshold: 20
timeout: 3
preStopHook:
http:
path: /k9/abakus/internal/health/preStop
prometheus:
enabled: true
path: /k9/abakus/internal/metrics/prometheus
replicas:
min: {{minReplicas}}
max: {{maxReplicas}}
scalingStrategy:
cpu:
thresholdPercentage: 80
resources:
limits:
cpu: "{{limits.cpu}}"
memory: "{{limits.mem}}"
requests:
cpu: "{{requests.cpu}}"
memory: "{{requests.mem}}"
kafka:
pool: {{kafkaPool}}
secureLogs:
enabled: true
vault:
enabled: true
paths:
- mountPath: /var/run/secrets/nais.io/serviceuser
kvPath: {{serviceuserkv}}
env:
{{#each env}}
- name: {{@key}}
value: "{{this}}"
{{/each}}
azure:
application:
enabled: true
claims:
extra:
- "NAVident"
- "azp_name"
groups:
{{#each groups as |group|}}
- id: "{{group}}"
{{/each}}
{{#if AZURE_IAC_RULES}}
accessPolicy:
inbound:
rules:
{{#each AZURE_IAC_RULES}}
- application: {{app}}
namespace: {{namespace}}
cluster: {{cluster}}
{{#if scopes}}
permissions:
scopes:
{{#each scopes}}
- "{{this}}"
{{/each}}
{{/if}}
{{#if roles}}
permissions:
roles:
{{#each roles}}
- "{{this}}"
{{/each}}
{{/if}}
{{/each}}
{{/if}}