-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
536 lines (489 loc) · 15.9 KB
/
values.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
## Global Docker image parameters
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
##
# global:
# imageRegistry: myRegistryName
# imagePullSecrets:
# - myRegistryKeySecretName
# storageClass: myStorageClass
image:
registry: "docker.io"
repository: "worthnl/notifynl-omc"
tag: "1.13.1"
fullImage: [] # use this from pipeline, includes registry, repo and tag
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - myRegistryKeySecretName
## Specifies the application name (required to be set)
##
name: "notifynl-omc"
##
##
command: ["dotnet", "OMC.EventsHandler.dll"]
## Specfies the required replicas
##
replicaCount: 1
## Specifies the application resource kind
##
appKind: Deployment
## String to partially override common.names.fullname template (will maintain the release name)
##
# nameOverride:
## String to fully override common.names.fullname template
##
# fullnameOverride:
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## Controls whether the pod may use the node network namespace.
## ref: https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces
hostNetwork: false
## Controls whether the container automatically mounts the ServiceAccount's API credentials
## In the pod/v1 this defaults to true, so also in this helm chart. recommended: false
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting
automountServiceAccountToken: false
serviceAccount:
## Specifies whether a service account should be created
##
create: false
## Annotations to add to the service account
##
annotations: {}
## The name of the service account to use.
## If not set and create is true, a name is generated using the fullname template
##
name:
## Controls whether the container automatically mounts the ServiceAccount's API credentials
## In the serviceaccount/v1 this defaults to true, so also in this helm chart. recommended: false
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting
automountServiceAccountToken: true
## Add labels to all the deployed resources
##
commonLabels: {}
## Add annotations to all the deployed resources
##
commonAnnotations: {}
## Pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}
## Extra labels to add to Pod
##
podLabels:
public-access: allow
## Add init containers to the pod
##
initContainers: []
## e.g.
# - name: your-image-name
# image: your-image
# imagePullPolicy: Always
# ports:
# - name: portname
# containerPort: 1234
## priorityClassName
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
##
priorityClassName: ""
## Optionally, change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'.
## By default, while using host network, name resolution uses the host's DNS. If you wish nginx-controller
## to keep resolving names inside the k8s network, use ClusterFirstWithHostNet.
##
dnsPolicy: ClusterFirst
## Pod securityContext
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
##
podSecurityContext:
enabled: true
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
## Container security context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
##
## containerSecurityContext:
## capabilities:
## drop:
## - ALL
## readOnlyRootFilesystem: true
## runAsNonRoot: true
## runAsUser: 1001
## allowPrivilegeEscalation: false
##
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
## Application container ports definitions (for use with service.ports)
##
## containerPorts:
## - name: http
## containerPort: 8080
## protocol: TCP
containerPorts:
- name: http
containerPort: 5270
protocol: TCP
## Application service parameters
##
service:
## Kubernetes service type and port number
##
type: ClusterIP
# clusterIP: None
## Specify the default service port and targetPort
## Note: port or ports must be provided to enable service!
##
# port:
# targetPort:
port: 5270
targetPort: 5270
## Set up update strategy for Kibana installation. Set to Recreate if you use persistent volume that cannot be mounted by more than one pods to makesure the pods are destroyed first.
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
## Example:
# updateStrategy:
# type: RollingUpdate
# rollingUpdate:
# maxSurge: 25%
# maxUnavailable: 25%
updateStrategy:
type: RollingUpdate
## Configure the ingress resource that allows you to access the
## app installation. Set up the URL
## ref: http://kubernetes.io/docs/user-guide/ingress/
##
ingress:
## Set to true to enable ingress record generation
##
enabled: false
hostname: ""
## Set this to true in order to add the corresponding annotations for cert-manager
##
certManager: false
## Ingress Path type
##
pathType: Prefix
ingressClassName: nginx
## Override API Version (automatically detected if not set)
##
apiVersion:
# ## The Path to Nginx. You may need to set this to '/*' in order to use this
# ## with ALB ingress controllers.
# ##
path: /
# ## Ingress annotations done as key:value pairs
# ## For a full list of possible ingress annotations, please see
# ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md
# ##
# ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set
# ##
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/use-regex: "true"
## Enable TLS configuration for the hostname defined at ingress.hostname parameter
## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
## You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it
##
tls: true
## Any additional arbitrary paths that may need to be added to the ingress under the main host.
## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
## extraPaths:
## - path: /*
## backend:
## serviceName: ssl-redirect
## servicePort: use-annotation
##
extraPaths: []
## Adds location and server snippets annotations for ingress-nginx
## Ref: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#configuration-snippet
## Ref: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#server-snippet
##
## nginx:
## serverSnippet: |
## ## Redirect mobile
## set $agentflag 0;
## if ($http_user_agent ~* "(Mobile)" ){
## set $agentflag 1;
## }
## if ( $agentflag = 1 ) {
## return 301 https://m.example.com;
## }
nginx:
configurationSnippet:
serverSnippet:
extraIngress:
# -- Configure a second ingress resource that allows you to access the app installation.<br>
# Set to true to enable ingress.<br>
# ref: <a href="https://kubernetes.io/docs/user-guide/ingress/">[link]</a>
enabled: false
# -- Set the nameSuffix to extend the extraIngress name {{ include "common.names.fullname" . }}
# @raw
#
# <details>
# <summary>+Expand</summary>
#
# ```yaml
# extraIngress:
# enabled: true
# nameSuffix: "-ext"
# ```
# </details>
nameSuffix: ""
# -- Set this to true in order to add the corresponding annotations for cert-manager.
certManager: false
# -- Ingress Path type.
pathType: ImplementationSpecific
# -- Override API Version (automatically detected if not set).
apiVersion: ""
# -- When the ingress is enabled, a host pointing to this will be created.
hostname: ""
# -- The Path for the ingress controller.
path: /
# -- Set the ingressclassname
ingressClassName: ""
# -- (object) Ingress annotations done as key:value pairs.<br>
# @notationType -- yaml
# For a full list of possible ingress annotations, please see<br>
# If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set.<br>
# ref: <a href="https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md">[link]</a>
annotations: {}
# -- Enable TLS configuration for the hostname defined at ingress.hostname parameter.<br>
# TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}<br>
# You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it.
tls: false
# -- Specify a tls secret which already exists. tls must be set to true.
existingTlsSecret:
# -- (list) The list of additional hostnames to be covered with this ingress record.<br>
# @notationType -- yaml
# @raw
# Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array.
#
# <details>
# <summary>+Expand</summary>
#
# ```yaml
# extraHosts:
# - name: app.local
# path: /
# ```
# </details>
extraHosts: []
# -- (list) Any additional arbitrary paths that may need to be added to the ingress under the main host.
# @notationType -- yaml
# @raw
# For example: The ALB ingress controller requires a special rule for handling SSL redirection.
#
# <details>
# <summary>+Expand</summary>
#
# ```yaml
# extraPaths:
# - path: /api/*
# pathType: Prefix
# backend:
# service:
# name: '{{ include "common.names.fullname" . }}'
# port:
# name: app
# ```
# </details>
extraPaths: []
# -- (list) The tls configuration for additional hostnames to be covered with this ingress record.<br>
# @notationType -- yaml
# @raw
#
# <details>
# <summary>+Expand</summary>
#
# ```yaml
# extraTls:
# - hosts:
# - app.local
# secretName: app.local-tls
# ```
# </details>
# ref: <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/#tls">[link]</a>
extraTls: []
## We usually recommend not to specify default resources and to leave this as a conscious
## choice for the user. This also increases chances charts run on environments with little
## resources, such as Minikube. If you do want to specify resources, uncomment the following
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
resources:
requests:
cpu: 250m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
## Autoscaling configuration
##
## Example:
## autoscaling:
## enabled: true
## minReplicas: 1
## maxReplicas: 10
## metrics:
## - type: Resource
## resource:
## name: cpu
## target:
## type: Utilization
## averageUtilization: 80
## - type: Resource
## resource:
## name: memory
## target:
## type: AverageValue
## averageValue: 1800Mi
## behavior:
## scaleDown:
## stabilizationWindowSeconds: 300
##
autoscaling:
enabled: false
nodeSelector: {}
tolerations: []
topologySpreadConstraints: []
## Pod affinity preset
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
## Allowed values: soft, hard
##
podAffinityPreset:
## Pod anti-affinity preset
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
## Allowed values: soft, hard
##
podAntiAffinityPreset:
## Node affinity preset
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
## Allowed values: soft, hard
##
nodeAffinityPreset:
## Node affinity type
## Allowed values: soft, hard
##
type:
## Node label key to match
## E.g.
## key: "kubernetes.io/e2e-az-name"
##
key: ""
## Node label values to match
## E.g.
## values:
## - e2e-az1
## - e2e-az2
##
values: []
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
##
affinity: {}
## An array to add env vars
## For example:
## env:
## - name: TEST_VAR
## value: test
##
## OMC specific reference: https://github.com/Worth-NL/NotifyNL-OMC/blob/main/Documentation/OMC%20-%20Documentation.md
## ! The following vars are mandatory
env:
## Can be set to "Development" if you want debug logs from OMC
- name: ASPNETCORE_ENVIRONMENT
value: "Production"
## This defines the port that the application will expose itself on, if this
## is changed, then containerports[0].port must also be changed
##
## containerPorts:
## - name: http
## containerPort: 5270
## protocol: TCP
- name: ASPNETCORE_URLS
value: "http://*:5270"
## If this is not present or has a different value then the application will
## not have enough memory and fail with a CoreCLR error. If required, please
## adjust requests and limits accordingly
- name: COMPlus_EnableDiagnostics
value: "0"
## Array of sources to populate environment variables in the container from
## Ref: https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#envfromsource-v1-core
##
## envFrom:
## - configMapRef:
## name: special-config
## - secretRef:ƒ
## name: '{{ include "app.fullname" . }}-env'
##
## OMC specific reference: https://github.com/Worth-NL/NotifyNL-OMC/blob/main/Documentation/environment_variables.md
##
envFrom: []
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
##
persistence:
enabled: false
## Application data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"
##
## If you want to reuse an existing claim, you can pass the name of the PVC using
## the existingClaim variable
# existingClaim: your-claim
accessMode: ReadWriteOnce
size: 1Gi
mountPath: /data
## Configure options for liveness and readiness probes
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
## Note: probes are disabled by default and have no checks defined
##
livenessProbe:
enabled: true
tcpSocket:
port: 5270
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 2
successThreshold: 1
readinessProbe:
enabled: true
tcpSocket:
port: 5270
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
startupProbe:
enabled: true
tcpSocket:
port: 5270
initialDelaySeconds: 10
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 15
successThreshold: 1
## PodDisruptionBudget configuration
##
podDisruptionBudget:
enabled: false
# minAvailable: 1
# maxUnavailable: 1