/
values.yaml
606 lines (496 loc) · 16.6 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
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
# Enable RBAC
rbac:
create: true
secret:
write: false
security:
# Configures PodSecurityPolicy. This resource was removed on Kubernetes v1.25,
# so it is ignored on clusters version v1.25 or newer.
enable: false
# Create ServiceAccount
serviceAccount:
# Specifies whether a ServiceAccount should be created
create: true
# The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name:
nameOverride: ""
fullnameOverride: ""
controller:
image:
registry: quay.io
repository: jcmoraisjr/haproxy-ingress
tag: v0.15.0-alpha.2
pullPolicy: IfNotPresent
imagePullSecrets: []
# - name: secret-name
## Additional command line arguments to pass to haproxy-ingress-controller
## E.g. to specify the default SSL certificate you can use
## extraArgs:
## default-ssl-certificate: "<namespace>/<secret_name>"
## reload-strategy: "reusesocket"
extraArgs: {}
## Additional environment variables to set
extraEnvs: []
# extraEnvs:
# - name: FOO
# valueFrom:
# secretKeyRef:
# key: FOO
# name: secret-resource
## Additional volumes and volume mounts
extraVolumes: []
extraVolumeMounts: []
## Additional containers to the pod.
extraContainers: []
## Additional containers that can initialize the pod.
initContainers: []
## Custom haproxy template
template: ""
## Path to custom haproxy.tmpl to load into the configmap
templateFile: ""
## A manually deployed default backend service
## Ignored if defaultBackend.enabled = true
## Must be <namespace>/<service_name>
##
defaultBackendService: ""
## Name of the ingress class to route through this controller
##
ingressClass: haproxy
## IngressClass resource for this controller
## Uses ingressClass as name for the IngressClass
##
ingressClassResource:
enabled: false
default: false
controllerClass: ""
parameters: {}
healthzPort: 10253
## Liveness and readiness probe values
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
livenessProbe:
path: /healthz
port: 10253
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
path: /healthz
port: 10253
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
## Annotations to be added to DaemonSet/Deployment definitions
##
annotations: {}
## Annotations to be added to controller pods
##
podAnnotations: {}
## Labels to be added to the controller pods
##
podLabels: {}
## Affinity to be added to controller pods
##
podAffinity: {}
## Priority Class to be used
##
priorityClassName: ""
## Security context settings to be added to the controller pods
##
podSecurityContext: {}
# sysctls:
# - name: net.ipv4.ip_local_port_range
# value: "1024 65535"
## Security context settings to be added to the controller containers
##
securityContext: {}
# readOnlyRootFilesystem: true
# Defines if controller.securityContext should be applied in the
# controller's pod (if legacy: true) or the container (if legacy: false)
legacySecurityContext: true
# ConfigMap to configure haproxy ingress
config: {}
# Custom files to be mounted to the controller(s)
# if populated a ConfigMap will be created and mounted in the controller pods in /etc/haproxy-custom-files
# An example usage is to add lua scripts or files containing matching patterns to be used in haproxy
customFiles: {}
# hello.lua: |
# core.Debug("Hello HAProxy!\n")
# hello_again.lua: |
# core.Debug("Hello again HAProxy!\n")
# Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
# since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920
# is merged
hostNetwork: false
# 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
# How many seconds to wait before terminating a pod.
terminationGracePeriodSeconds: 60
# Topology spread constraints to be added to the controller pod
# - the example below may need match labels adjusted but would
# cause the pods to be spread across all available pods
# (requires kubernetes v1.19 or later)
topologySpreadConstraints: []
# - maxSkew: 1
# topologyKey: kubernetes.io/hostname
# whenUnsatisfiable: ScheduleAnyway
# labelSelector:
# matchLabels:
# app.kubernetes.io/name: haproxy-ingress
# app.kubernetes.io/instance: haproxy
# Configure container lifecycle. When scaling replicas down this can be
# used to prevent controller container from terminating quickly and drop in-flight requests.
# For example, when the controller runs behind Network Load Balancer this can be used
# to configure preStop hook to sleep along with deregistration_delay.
lifecycle: {}
## DaemonSet or Deployment
##
kind: Deployment
# TCP service key:value pairs
# <port>: <namespace>/<servicename>:<portnumber>[:[<in-proxy>][:<out-proxy>]]
# https://haproxy-ingress.github.io/docs/configuration/command-line/#tcp-services-configmap
tcp: {}
# 8080: "default/example-tcp-svc:9000"
# default values for http and https containerPorts
containerPorts:
http: 80
https: 443
# optionally disable static ports, including the default 80 and 443
enableStaticPorts: true
## DaemonSet configuration
daemonset:
# Enable binding ports to the host machine
useHostPort: false
# IP to bind host ports to
hostIP: null
# hostIP: 10.1.0.1
# Ports to bind to the host
hostPorts:
http: 80
https: 443
# List of ports from controller.tcp map
tcp: []
# The update strategy to apply to the Deployment or DaemonSet
##
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
# minReadySeconds to avoid killing pods before we are ready
##
minReadySeconds: 0
# Deployment
replicaCount: 1
# A PodDisruptionBudget is created only if minAvailable is
# greater than 0 (zero) and lesser than the replicaCount
minAvailable: 1
resources: {}
# limits:
# cpu: 100m
# memory: 64Mi
# requests:
# cpu: 100m
# memory: 64Mi
autoscaling:
enabled: false
# minReplicas: 1
# maxReplicas: 11
# targetCPUUtilizationPercentage: 50
# targetMemoryUtilizationPercentage: 50
customMetrics: []
## Node tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
affinity: {}
## Node labels for controller pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## The 'publishService' setting allows customization of the source of the IP address or FQDN to report
## in the ingress status field. If disabled (default), the field will not be set by the controller.
## If enabled, it reads the information provided by the service, unless pathOverride is specified.
## If a value for 'publish-service' is specified in controller.extraArgs, it overrides this setting.
##
publishService:
## Enable 'publishService' or not, ignored if controller.extraArgs.publish-service is set
##
enabled: false
## Allows overriding of the publish service to bind to, ignored if controller.extraArgs.publish-service is set
## Must be <namespace>/<service_name>
##
pathOverride: ""
service:
annotations: {}
labels: {}
clusterIP: ""
clusterIPs: []
## List of IP addresses at which the controller services are available
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs: []
## Dual-stack service configuration
## Please see the README for other required settings to make dual-stack mode work.
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
##
# ipFamilies: [IPv4]
# ipFamilyPolicy: PreferDualStack
loadBalancerIP: ""
loadBalancerSourceRanges: []
httpPorts:
- port: 80
targetPort: http
# nodePort:
httpsPorts:
- port: 443
targetPort: https
# nodePort:
## Add extra ports to the service
## Useful when adding the 'tcp-service-port' configuration key
## Ref: https://haproxy-ingress.github.io/v0.13/docs/configuration/keys/#tcp-services
extraPorts: []
# - port: 8080
# targetPort: 8080
# nodePort: 30012
## Set external traffic policy to: "Local" to preserve source IP on
## providers supporting it
## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
externalTrafficPolicy: Local
healthCheckNodePort: 0
type: LoadBalancer
## If controller.haproxy.enabled = true, an external haproxy instance
## is configured and managed as a sidecar container
haproxy:
enabled: false
image:
registry: docker.io
repository: haproxy
tag: "2.6.14-alpine"
pullPolicy: IfNotPresent
## Additional command line arguments to pass to haproxy
extraArgs: {}
resources: {}
# limits:
# cpu: 500m
# memory: 768Mi
# requests:
# cpu: 500m
# memory: 768Mi
# Configure container lifecycle. When scaling replicas down this can be
# used to prevent controller container from terminating quickly and drop in-flight requests.
# For example, when the controller runs behind Network Load Balancer this can be used
# to configure preStop hook to sleep along with deregistration_delay.
lifecycle: {}
## Container Security Context for the haproxy container
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext: {}
stats:
enabled: false
port: 1936
hostPort: ~
service:
annotations: {}
clusterIP: ""
## List of IP addresses at which the stats service is available
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs: []
loadBalancerIP: ""
loadBalancerSourceRanges: []
servicePort: 1936
type: ClusterIP
## If controller.stats.enabled = true and controller.metrics.enabled = true, Prometheus metrics will be exported
## Metrics will also be exposed if the embedded haproxy's exporter is used
##
metrics:
enabled: false
# Defines if the haproxy's embedded prometheus exporter should be used
# If false, haproxy_exporter sidecar container is used instead and stats need to be enabled
embedded: true
# Port number the exporter is listening to
port: 9101
# The port the controller exports metrics on.
# If you change it here, you must also change it using the controller.extraArgs.
controllerPort: 10254
# prometheus exporter for haproxy
# https://github.com/prometheus/haproxy_exporter
# (scrapes the stats port and exports metrics to prometheus)
# Only used if embedded == false
image:
registry: quay.io
repository: prometheus/haproxy-exporter
tag: "v0.11.0"
pullPolicy: IfNotPresent
## Additional command line arguments to pass to haproxy_exporter
## E.g. to specify the client timeout you can use
## extraArgs:
## haproxy.timeout: 15s
extraArgs: {}
resources: {}
# limits:
# cpu: 500m
# memory: 600Mi
# requests:
# cpu: 200m
# memory: 400Mi
## Container Security Context for the logs container
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext: {}
service:
annotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "10254"
clusterIP: ""
## List of IP addresses at which the stats-exporter service is available
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs: []
loadBalancerIP: ""
loadBalancerSourceRanges: []
servicePort: 9101
serviceControllerPort: 10254
type: ClusterIP
## If controller.stats.enabled = true and controller.metrics.enabled = true and controller.serviceMonitor.enabled = true, Prometheus ServiceMonitor will be created
## Ref: https://coreos.com/operators/prometheus/docs/latest/api.html#servicemonitor
## Ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md
##
serviceMonitor:
enabled: false
# Additional labels for ServiceMonitor object
labels: {}
# Annotations for ServiceMonitor object
annotations: {}
# Prometheus honorLabels
honorLabels: true
# Prometheus scrape interval
interval: 10s
# Prometheus request extra parameters
# params:
# no-maint:
# - empty
metrics:
metricRelabelings: []
relabelings: []
# - sourceLabels: [ __meta_kubernetes_pod_node_name ]
# regex: ^(.*)$
# targetLabel: instance
# replacement: $1
# action: replace
ctrlMetrics:
metricRelabelings: []
relabelings: []
# - sourceLabels: [ __meta_kubernetes_pod_node_name ]
# regex: ^(.*)$
# targetLabel: instance
# replacement: $1
# action: replace
## access-logs side-car container for collecting haproxy logs
## Enabling this will configure haproxy to emit logs to syslog localhost:514 UDP port.
## The access-logs container starts a syslog process that listens on UDP 514 and outputs to stdout.
logs:
enabled: false
# syslog for haproxy
# https://github.com/crisu1710/kube-syslog-sidecar
# (listens on UDP port 514 and outputs to stdout)
# registry needs to be in quotes
image:
registry: "ghcr.io"
repository: crisu1710/kube-syslog-sidecar
tag: "0.2.0"
pullPolicy: IfNotPresent
## Additional volume mounts
extraVolumeMounts: []
resources: {}
# limits:
# cpu: 200m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 32Mi
## Container Security Context for the logs container
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext: {}
# port used by syslog container
port: 514
# defines as true to enable TCP based liveness and readiness probes
# in the logs container
probes: false
# Custom default 404 backend
defaultBackend:
enabled: false
name: default-backend
image:
registry: k8s.gcr.io
repository: defaultbackend-amd64
tag: "1.5"
pullPolicy: IfNotPresent
imagePullSecrets: []
# - name: secret-name
## Node tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
affinity: {}
## Node labels for default backend pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## Annotations to be added to default backend pods
##
podAnnotations: {}
# labels to add to the pod container metadata
podLabels: {}
# key: value
# Deployment
replicaCount: 1
# A PodDisruptionBudget is created only if minAvailable is
# greater than 0 (zero) and lesser than the replicaCount
minAvailable: 1
resources:
limits:
cpu: 10m
memory: 20Mi
# requests:
# cpu: 10m
# memory: 20Mi
service:
name: ingress-default-backend
annotations: {}
clusterIP: ""
## List of IP addresses at which the default backend service is available
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs: []
loadBalancerIP: ""
loadBalancerSourceRanges: []
servicePort: 8080
type: ClusterIP
## Pod Security Context for the default backend POD
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
podSecurityContext: {}
## Container Security Context for the default backend container
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext: {}
## Priority Class for the default backend container
##
priorityClassName: ""