blob: eb6db4a0570ba64427be82497731a1b4941030e3 [file] [log] [blame]
Mohammed Naser9ad0d462023-01-15 20:36:37 -05001## nginx configuration
2## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/index.md
3##
4
5## Overrides for generated resource names
6# See templates/_helpers.tpl
7# nameOverride:
8# fullnameOverride:
9
10## Labels to apply to all resources
11##
12commonLabels: {}
13# scmhash: abc123
14# myLabel: aakkmd
15
16controller:
17 name: controller
18 image:
19 registry: k8s.gcr.io
20 image: ingress-nginx/controller
21 ## for backwards compatibility consider setting the full image url via the repository value below
22 ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
23 ## repository:
24 tag: "v1.1.1"
25 digest: sha256:0bc88eb15f9e7f84e8e56c14fa5735aaa488b840983f87bd79b1054190e660de
26 pullPolicy: IfNotPresent
27 # www-data -> uid 101
28 runAsUser: 101
29 allowPrivilegeEscalation: true
30
31 # -- Use an existing PSP instead of creating one
32 existingPsp: ""
33
34 # -- Configures the controller container name
35 containerName: controller
36
37 # -- Configures the ports that the nginx-controller listens on
38 containerPort:
39 http: 80
40 https: 443
41
42 # -- Will add custom configuration options to Nginx https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
43 config: {}
44
45 # -- Annotations to be added to the controller config configuration configmap.
46 configAnnotations: {}
47
48 # -- Will add custom headers before sending traffic to backends according to https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/custom-headers
49 proxySetHeaders: {}
50
51 # -- Will add custom headers before sending response traffic to the client according to: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#add-headers
52 addHeaders: {}
53
54 # -- Optionally customize the pod dnsConfig.
55 dnsConfig: {}
56
57 # -- Optionally customize the pod hostname.
58 hostname: {}
59
60 # -- Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'.
61 # By default, while using host network, name resolution uses the host's DNS. If you wish nginx-controller
62 # to keep resolving names inside the k8s network, use ClusterFirstWithHostNet.
63 dnsPolicy: ClusterFirst
64
65 # -- Bare-metal considerations via the host network https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#via-the-host-network
66 # Ingress status was blank because there is no Service exposing the NGINX Ingress controller in a configuration using the host network, the default --publish-service flag used in standard cloud setups does not apply
67 reportNodeInternalIp: false
68
69 # -- Process Ingress objects without ingressClass annotation/ingressClassName field
70 # Overrides value for --watch-ingress-without-class flag of the controller binary
71 # Defaults to false
72 watchIngressWithoutClass: false
73
74 # -- Process IngressClass per name (additionally as per spec.controller).
75 ingressClassByName: false
76
77 # -- This configuration defines if Ingress Controller should allow users to set
78 # their own *-snippet annotations, otherwise this is forbidden / dropped
79 # when users add those annotations.
80 # Global snippets in ConfigMap are still respected
81 allowSnippetAnnotations: true
82
83 # -- Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
84 # since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920
85 # is merged
86 hostNetwork: false
87
88 ## Use host ports 80 and 443
89 ## Disabled by default
90 hostPort:
91 # -- Enable 'hostPort' or not
92 enabled: false
93 ports:
94 # -- 'hostPort' http port
95 http: 80
96 # -- 'hostPort' https port
97 https: 443
98
99 # -- Election ID to use for status update
100 electionID: ingress-controller-leader
101
102 ## This section refers to the creation of the IngressClass resource
103 ## IngressClass resources are supported since k8s >= 1.18 and required since k8s >= 1.19
104 ingressClassResource:
105 # -- Name of the ingressClass
106 name: nginx
107 # -- Is this ingressClass enabled or not
108 enabled: true
109 # -- Is this the default ingressClass for the cluster
110 default: false
111 # -- Controller-value of the controller that is processing this ingressClass
112 controllerValue: "k8s.io/ingress-nginx"
113
114 # -- Parameters is a link to a custom resource containing additional
115 # configuration for the controller. This is optional if the controller
116 # does not require extra parameters.
117 parameters: {}
118
119 # -- For backwards compatibility with ingress.class annotation, use ingressClass.
120 # Algorithm is as follows, first ingressClassName is considered, if not present, controller looks for ingress.class annotation
121 ingressClass: nginx
122
123 # -- Labels to add to the pod container metadata
124 podLabels: {}
125 # key: value
126
127 # -- Security Context policies for controller pods
128 podSecurityContext: {}
129
130 # -- See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for notes on enabling and using sysctls
131 sysctls: {}
132 # sysctls:
133 # "net.core.somaxconn": "8192"
134
135 # -- Allows customization of the source of the IP address or FQDN to report
136 # in the ingress status field. By default, it reads the information provided
137 # by the service. If disable, the status field reports the IP address of the
138 # node or nodes where an ingress controller pod is running.
139 publishService:
140 # -- Enable 'publishService' or not
141 enabled: true
142 # -- Allows overriding of the publish service to bind to
143 # Must be <namespace>/<service_name>
144 pathOverride: ""
145
146 # Limit the scope of the controller to a specific namespace
147 scope:
148 # -- Enable 'scope' or not
149 enabled: false
150 # -- Namespace to limit the controller to; defaults to $(POD_NAMESPACE)
151 namespace: ""
152 # -- When scope.enabled == false, instead of watching all namespaces, we watching namespaces whose labels
153 # only match with namespaceSelector. Format like foo=bar. Defaults to empty, means watching all namespaces.
154 namespaceSelector: ""
155
156 # -- Allows customization of the configmap / nginx-configmap namespace; defaults to $(POD_NAMESPACE)
157 configMapNamespace: ""
158
159 tcp:
160 # -- Allows customization of the tcp-services-configmap; defaults to $(POD_NAMESPACE)
161 configMapNamespace: ""
162 # -- Annotations to be added to the tcp config configmap
163 annotations: {}
164
165 udp:
166 # -- Allows customization of the udp-services-configmap; defaults to $(POD_NAMESPACE)
167 configMapNamespace: ""
168 # -- Annotations to be added to the udp config configmap
169 annotations: {}
170
171 # -- Maxmind license key to download GeoLite2 Databases.
172 ## https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases
173 maxmindLicenseKey: ""
174
175 # -- Additional command line arguments to pass to nginx-ingress-controller
176 # E.g. to specify the default SSL certificate you can use
177 extraArgs: {}
178 ## extraArgs:
179 ## default-ssl-certificate: "<namespace>/<secret_name>"
180
181 # -- Additional environment variables to set
182 extraEnvs: []
183 # extraEnvs:
184 # - name: FOO
185 # valueFrom:
186 # secretKeyRef:
187 # key: FOO
188 # name: secret-resource
189
190 # -- Use a `DaemonSet` or `Deployment`
191 kind: Deployment
192
193 # -- Annotations to be added to the controller Deployment or DaemonSet
194 ##
195 annotations: {}
196 # keel.sh/pollSchedule: "@every 60m"
197
198 # -- Labels to be added to the controller Deployment or DaemonSet and other resources that do not have option to specify labels
199 ##
200 labels: {}
201 # keel.sh/policy: patch
202 # keel.sh/trigger: poll
203
204
205 # -- The update strategy to apply to the Deployment or DaemonSet
206 ##
207 updateStrategy: {}
208 # rollingUpdate:
209 # maxUnavailable: 1
210 # type: RollingUpdate
211
212 # -- `minReadySeconds` to avoid killing pods before we are ready
213 ##
214 minReadySeconds: 0
215
216
217 # -- Node tolerations for server scheduling to nodes with taints
218 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
219 ##
220 tolerations: []
221 # - key: "key"
222 # operator: "Equal|Exists"
223 # value: "value"
224 # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
225
226 # -- Affinity and anti-affinity rules for server scheduling to nodes
227 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
228 ##
229 affinity: {}
230 # # An example of preferred pod anti-affinity, weight is in the range 1-100
231 # podAntiAffinity:
232 # preferredDuringSchedulingIgnoredDuringExecution:
233 # - weight: 100
234 # podAffinityTerm:
235 # labelSelector:
236 # matchExpressions:
237 # - key: app.kubernetes.io/name
238 # operator: In
239 # values:
240 # - ingress-nginx
241 # - key: app.kubernetes.io/instance
242 # operator: In
243 # values:
244 # - ingress-nginx
245 # - key: app.kubernetes.io/component
246 # operator: In
247 # values:
248 # - controller
249 # topologyKey: kubernetes.io/hostname
250
251 # # An example of required pod anti-affinity
252 # podAntiAffinity:
253 # requiredDuringSchedulingIgnoredDuringExecution:
254 # - labelSelector:
255 # matchExpressions:
256 # - key: app.kubernetes.io/name
257 # operator: In
258 # values:
259 # - ingress-nginx
260 # - key: app.kubernetes.io/instance
261 # operator: In
262 # values:
263 # - ingress-nginx
264 # - key: app.kubernetes.io/component
265 # operator: In
266 # values:
267 # - controller
268 # topologyKey: "kubernetes.io/hostname"
269
270 # -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in.
271 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
272 ##
273 topologySpreadConstraints: []
274 # - maxSkew: 1
275 # topologyKey: failure-domain.beta.kubernetes.io/zone
276 # whenUnsatisfiable: DoNotSchedule
277 # labelSelector:
278 # matchLabels:
279 # app.kubernetes.io/instance: ingress-nginx-internal
280
281 # -- `terminationGracePeriodSeconds` to avoid killing pods before we are ready
282 ## wait up to five minutes for the drain of connections
283 ##
284 terminationGracePeriodSeconds: 300
285
286 # -- Node labels for controller pod assignment
287 ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
288 ##
289 nodeSelector:
290 kubernetes.io/os: linux
291
292 ## Liveness and readiness probe values
293 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
294 ##
295 ## startupProbe:
296 ## httpGet:
297 ## # should match container.healthCheckPath
298 ## path: "/healthz"
299 ## port: 10254
300 ## scheme: HTTP
301 ## initialDelaySeconds: 5
302 ## periodSeconds: 5
303 ## timeoutSeconds: 2
304 ## successThreshold: 1
305 ## failureThreshold: 5
306 livenessProbe:
307 httpGet:
308 # should match container.healthCheckPath
309 path: "/healthz"
310 port: 10254
311 scheme: HTTP
312 initialDelaySeconds: 10
313 periodSeconds: 10
314 timeoutSeconds: 1
315 successThreshold: 1
316 failureThreshold: 5
317 readinessProbe:
318 httpGet:
319 # should match container.healthCheckPath
320 path: "/healthz"
321 port: 10254
322 scheme: HTTP
323 initialDelaySeconds: 10
324 periodSeconds: 10
325 timeoutSeconds: 1
326 successThreshold: 1
327 failureThreshold: 3
328
329
330 # -- Path of the health check endpoint. All requests received on the port defined by
331 # the healthz-port parameter are forwarded internally to this path.
332 healthCheckPath: "/healthz"
333
334 # -- Address to bind the health check endpoint.
335 # It is better to set this option to the internal node address
336 # if the ingress nginx controller is running in the `hostNetwork: true` mode.
337 healthCheckHost: ""
338
339 # -- Annotations to be added to controller pods
340 ##
341 podAnnotations: {}
342
343 replicaCount: 1
344
345 minAvailable: 1
346
347 ## Define requests resources to avoid probe issues due to CPU utilization in busy nodes
348 ## ref: https://github.com/kubernetes/ingress-nginx/issues/4735#issuecomment-551204903
349 ## Ideally, there should be no limits.
350 ## https://engineering.indeedblog.com/blog/2019/12/cpu-throttling-regression-fix/
351 resources:
352 ## limits:
353 ## cpu: 100m
354 ## memory: 90Mi
355 requests:
356 cpu: 100m
357 memory: 90Mi
358
359 # Mutually exclusive with keda autoscaling
360 autoscaling:
361 enabled: false
362 minReplicas: 1
363 maxReplicas: 11
364 targetCPUUtilizationPercentage: 50
365 targetMemoryUtilizationPercentage: 50
366 behavior: {}
367 # scaleDown:
368 # stabilizationWindowSeconds: 300
369 # policies:
370 # - type: Pods
371 # value: 1
372 # periodSeconds: 180
373 # scaleUp:
374 # stabilizationWindowSeconds: 300
375 # policies:
376 # - type: Pods
377 # value: 2
378 # periodSeconds: 60
379
380 autoscalingTemplate: []
381 # Custom or additional autoscaling metrics
382 # ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
383 # - type: Pods
384 # pods:
385 # metric:
386 # name: nginx_ingress_controller_nginx_process_requests_total
387 # target:
388 # type: AverageValue
389 # averageValue: 10000m
390
391 # Mutually exclusive with hpa autoscaling
392 keda:
393 apiVersion: "keda.sh/v1alpha1"
394 ## apiVersion changes with keda 1.x vs 2.x
395 ## 2.x = keda.sh/v1alpha1
396 ## 1.x = keda.k8s.io/v1alpha1
397 enabled: false
398 minReplicas: 1
399 maxReplicas: 11
400 pollingInterval: 30
401 cooldownPeriod: 300
402 restoreToOriginalReplicaCount: false
403 scaledObject:
404 annotations: {}
405 # Custom annotations for ScaledObject resource
406 # annotations:
407 # key: value
408 triggers: []
409 # - type: prometheus
410 # metadata:
411 # serverAddress: http://<prometheus-host>:9090
412 # metricName: http_requests_total
413 # threshold: '100'
414 # query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
415
416 behavior: {}
417 # scaleDown:
418 # stabilizationWindowSeconds: 300
419 # policies:
420 # - type: Pods
421 # value: 1
422 # periodSeconds: 180
423 # scaleUp:
424 # stabilizationWindowSeconds: 300
425 # policies:
426 # - type: Pods
427 # value: 2
428 # periodSeconds: 60
429
430 # -- Enable mimalloc as a drop-in replacement for malloc.
431 ## ref: https://github.com/microsoft/mimalloc
432 ##
433 enableMimalloc: true
434
435 ## Override NGINX template
436 customTemplate:
437 configMapName: ""
438 configMapKey: ""
439
440 service:
441 enabled: true
442
443 # -- If enabled is adding an appProtocol option for Kubernetes service. An appProtocol field replacing annotations that were
444 # using for setting a backend protocol. Here is an example for AWS: service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
445 # It allows choosing the protocol for each backend specified in the Kubernetes service.
446 # See the following GitHub issue for more details about the purpose: https://github.com/kubernetes/kubernetes/issues/40244
447 # Will be ignored for Kubernetes versions older than 1.20
448 ##
449 appProtocol: true
450
451 annotations: {}
452 labels: {}
453 # clusterIP: ""
454
455 # -- List of IP addresses at which the controller services are available
456 ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
457 ##
458 externalIPs: []
459
460 # loadBalancerIP: ""
461 loadBalancerSourceRanges: []
462
463 enableHttp: true
464 enableHttps: true
465
466 ## Set external traffic policy to: "Local" to preserve source IP on providers supporting it.
467 ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
468 # externalTrafficPolicy: ""
469
470 ## Must be either "None" or "ClientIP" if set. Kubernetes will default to "None".
471 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
472 # sessionAffinity: ""
473
474 ## Specifies the health check node port (numeric port number) for the service. If healthCheckNodePort isn’t specified,
475 ## the service controller allocates a port from your cluster’s NodePort range.
476 ## Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
477 # healthCheckNodePort: 0
478
479 # -- Represents the dual-stack-ness requested or required by this Service. Possible values are
480 # SingleStack, PreferDualStack or RequireDualStack.
481 # The ipFamilies and clusterIPs fields depend on the value of this field.
482 ## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
483 ipFamilyPolicy: "SingleStack"
484
485 # -- List of IP families (e.g. IPv4, IPv6) assigned to the service. This field is usually assigned automatically
486 # based on cluster configuration and the ipFamilyPolicy field.
487 ## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
488 ipFamilies:
489 - IPv4
490
491 ports:
492 http: 80
493 https: 443
494
495 targetPorts:
496 http: http
497 https: https
498
499 type: LoadBalancer
500
501 ## type: NodePort
502 ## nodePorts:
503 ## http: 32080
504 ## https: 32443
505 ## tcp:
506 ## 8080: 32808
507 nodePorts:
508 http: ""
509 https: ""
510 tcp: {}
511 udp: {}
512
513 external:
514 enabled: true
515
516 internal:
517 # -- Enables an additional internal load balancer (besides the external one).
518 enabled: false
519 # -- Annotations are mandatory for the load balancer to come up. Varies with the cloud service.
520 annotations: {}
521
522 # loadBalancerIP: ""
523
524 # -- Restrict access For LoadBalancer service. Defaults to 0.0.0.0/0.
525 loadBalancerSourceRanges: []
526
527 ## Set external traffic policy to: "Local" to preserve source IP on
528 ## providers supporting it
529 ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
530 # externalTrafficPolicy: ""
531
532 # -- Additional containers to be added to the controller pod.
533 # See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example.
534 extraContainers: []
535 # - name: my-sidecar
536 # image: nginx:latest
537 # - name: lemonldap-ng-controller
538 # image: lemonldapng/lemonldap-ng-controller:0.2.0
539 # args:
540 # - /lemonldap-ng-controller
541 # - --alsologtostderr
542 # - --configmap=$(POD_NAMESPACE)/lemonldap-ng-configuration
543 # env:
544 # - name: POD_NAME
545 # valueFrom:
546 # fieldRef:
547 # fieldPath: metadata.name
548 # - name: POD_NAMESPACE
549 # valueFrom:
550 # fieldRef:
551 # fieldPath: metadata.namespace
552 # volumeMounts:
553 # - name: copy-portal-skins
554 # mountPath: /srv/var/lib/lemonldap-ng/portal/skins
555
556 # -- Additional volumeMounts to the controller main container.
557 extraVolumeMounts: []
558 # - name: copy-portal-skins
559 # mountPath: /var/lib/lemonldap-ng/portal/skins
560
561 # -- Additional volumes to the controller pod.
562 extraVolumes: []
563 # - name: copy-portal-skins
564 # emptyDir: {}
565
566 # -- Containers, which are run before the app containers are started.
567 extraInitContainers: []
568 # - name: init-myservice
569 # image: busybox
570 # command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;']
571
572 extraModules: []
573 ## Modules, which are mounted into the core nginx image
574 # - name: opentelemetry
575 # image: busybox
576 #
577 # The image must contain a `/usr/local/bin/init_module.sh` executable, which
578 # will be executed as initContainers, to move its config files within the
579 # mounted volume.
580
581 admissionWebhooks:
582 annotations: {}
583 # ignore-check.kube-linter.io/no-read-only-rootfs: "This deployment needs write access to root filesystem".
584
585 ## Additional annotations to the admission webhooks.
586 ## These annotations will be added to the ValidatingWebhookConfiguration and
587 ## the Jobs Spec of the admission webhooks.
588 enabled: true
589 failurePolicy: Fail
590 # timeoutSeconds: 10
591 port: 8443
592 certificate: "/usr/local/certificates/cert"
593 key: "/usr/local/certificates/key"
594 namespaceSelector: {}
595 objectSelector: {}
596 # -- Labels to be added to admission webhooks
597 labels: {}
598
599 # -- Use an existing PSP instead of creating one
600 existingPsp: ""
601
602 service:
603 annotations: {}
604 # clusterIP: ""
605 externalIPs: []
606 # loadBalancerIP: ""
607 loadBalancerSourceRanges: []
608 servicePort: 443
609 type: ClusterIP
610
611 createSecretJob:
612 resources: {}
613 # limits:
614 # cpu: 10m
615 # memory: 20Mi
616 # requests:
617 # cpu: 10m
618 # memory: 20Mi
619
620 patchWebhookJob:
621 resources: {}
622
623 patch:
624 enabled: true
625 image:
626 registry: k8s.gcr.io
627 image: ingress-nginx/kube-webhook-certgen
628 ## for backwards compatibility consider setting the full image url via the repository value below
629 ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
630 ## repository:
631 tag: v1.1.1
632 digest: sha256:64d8c73dca984af206adf9d6d7e46aa550362b1d7a01f3a0a91b20cc67868660
633 pullPolicy: IfNotPresent
634 # -- Provide a priority class name to the webhook patching job
635 ##
636 priorityClassName: ""
637 podAnnotations: {}
638 nodeSelector:
639 kubernetes.io/os: linux
640 tolerations: []
641 # -- Labels to be added to patch job resources
642 labels: {}
643 runAsUser: 2000
644
645 metrics:
646 port: 10254
647 # if this port is changed, change healthz-port: in extraArgs: accordingly
648 enabled: false
649
650 service:
651 annotations: {}
652 # prometheus.io/scrape: "true"
653 # prometheus.io/port: "10254"
654
655 # clusterIP: ""
656
657 # -- List of IP addresses at which the stats-exporter service is available
658 ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
659 ##
660 externalIPs: []
661
662 # loadBalancerIP: ""
663 loadBalancerSourceRanges: []
664 servicePort: 10254
665 type: ClusterIP
666 # externalTrafficPolicy: ""
667 # nodePort: ""
668
669 serviceMonitor:
670 enabled: false
671 additionalLabels: {}
672 ## The label to use to retrieve the job name from.
673 ## jobLabel: "app.kubernetes.io/name"
674 namespace: ""
675 namespaceSelector: {}
676 ## Default: scrape .Release.Namespace only
677 ## To scrape all, use the following:
678 ## namespaceSelector:
679 ## any: true
680 scrapeInterval: 30s
681 # honorLabels: true
682 targetLabels: []
683 relabelings: []
684 metricRelabelings: []
685
686 prometheusRule:
687 enabled: false
688 additionalLabels: {}
689 # namespace: ""
690 rules: []
691 # # These are just examples rules, please adapt them to your needs
692 # - alert: NGINXConfigFailed
693 # expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
694 # for: 1s
695 # labels:
696 # severity: critical
697 # annotations:
698 # description: bad ingress config - nginx config test failed
699 # summary: uninstall the latest ingress changes to allow config reloads to resume
700 # - alert: NGINXCertificateExpiry
701 # expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
702 # for: 1s
703 # labels:
704 # severity: critical
705 # annotations:
706 # description: ssl certificate(s) will expire in less then a week
707 # summary: renew expiring certificates to avoid downtime
708 # - alert: NGINXTooMany500s
709 # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
710 # for: 1m
711 # labels:
712 # severity: warning
713 # annotations:
714 # description: Too many 5XXs
715 # summary: More than 5% of all requests returned 5XX, this requires your attention
716 # - alert: NGINXTooMany400s
717 # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
718 # for: 1m
719 # labels:
720 # severity: warning
721 # annotations:
722 # description: Too many 4XXs
723 # summary: More than 5% of all requests returned 4XX, this requires your attention
724
725 # -- Improve connection draining when ingress controller pod is deleted using a lifecycle hook:
726 # With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
727 # to 300, allowing the draining of connections up to five minutes.
728 # If the active connections end before that, the pod will terminate gracefully at that time.
729 # To effectively take advantage of this feature, the Configmap feature
730 # worker-shutdown-timeout new value is 240s instead of 10s.
731 ##
732 lifecycle:
733 preStop:
734 exec:
735 command:
736 - /wait-shutdown
737
738 priorityClassName: ""
739
740# -- Rollback limit
741##
742revisionHistoryLimit: 10
743
744## Default 404 backend
745##
746defaultBackend:
747 ##
748 enabled: false
749
750 name: defaultbackend
751 image:
752 registry: k8s.gcr.io
753 image: defaultbackend-amd64
754 ## for backwards compatibility consider setting the full image url via the repository value below
755 ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
756 ## repository:
757 tag: "1.5"
758 pullPolicy: IfNotPresent
759 # nobody user -> uid 65534
760 runAsUser: 65534
761 runAsNonRoot: true
762 readOnlyRootFilesystem: true
763 allowPrivilegeEscalation: false
764
765 # -- Use an existing PSP instead of creating one
766 existingPsp: ""
767
768 extraArgs: {}
769
770 serviceAccount:
771 create: true
772 name: ""
773 automountServiceAccountToken: true
774 # -- Additional environment variables to set for defaultBackend pods
775 extraEnvs: []
776
777 port: 8080
778
779 ## Readiness and liveness probes for default backend
780 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
781 ##
782 livenessProbe:
783 failureThreshold: 3
784 initialDelaySeconds: 30
785 periodSeconds: 10
786 successThreshold: 1
787 timeoutSeconds: 5
788 readinessProbe:
789 failureThreshold: 6
790 initialDelaySeconds: 0
791 periodSeconds: 5
792 successThreshold: 1
793 timeoutSeconds: 5
794
795 # -- Node tolerations for server scheduling to nodes with taints
796 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
797 ##
798 tolerations: []
799 # - key: "key"
800 # operator: "Equal|Exists"
801 # value: "value"
802 # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
803
804 affinity: {}
805
806 # -- Security Context policies for controller pods
807 # See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
808 # notes on enabling and using sysctls
809 ##
810 podSecurityContext: {}
811
812 # -- Security Context policies for controller main container.
813 # See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
814 # notes on enabling and using sysctls
815 ##
816 containerSecurityContext: {}
817
818 # -- Labels to add to the pod container metadata
819 podLabels: {}
820 # key: value
821
822 # -- Node labels for default backend pod assignment
823 ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
824 ##
825 nodeSelector:
826 kubernetes.io/os: linux
827
828 # -- Annotations to be added to default backend pods
829 ##
830 podAnnotations: {}
831
832 replicaCount: 1
833
834 minAvailable: 1
835
836 resources: {}
837 # limits:
838 # cpu: 10m
839 # memory: 20Mi
840 # requests:
841 # cpu: 10m
842 # memory: 20Mi
843
844 extraVolumeMounts: []
845 ## Additional volumeMounts to the default backend container.
846 # - name: copy-portal-skins
847 # mountPath: /var/lib/lemonldap-ng/portal/skins
848
849 extraVolumes: []
850 ## Additional volumes to the default backend pod.
851 # - name: copy-portal-skins
852 # emptyDir: {}
853
854 autoscaling:
855 annotations: {}
856 enabled: false
857 minReplicas: 1
858 maxReplicas: 2
859 targetCPUUtilizationPercentage: 50
860 targetMemoryUtilizationPercentage: 50
861
862 service:
863 annotations: {}
864
865 # clusterIP: ""
866
867 # -- List of IP addresses at which the default backend service is available
868 ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
869 ##
870 externalIPs: []
871
872 # loadBalancerIP: ""
873 loadBalancerSourceRanges: []
874 servicePort: 80
875 type: ClusterIP
876
877 priorityClassName: ""
878 # -- Labels to be added to the default backend resources
879 labels: {}
880
881## Enable RBAC as per https://github.com/kubernetes/ingress-nginx/blob/main/docs/deploy/rbac.md and https://github.com/kubernetes/ingress-nginx/issues/266
882rbac:
883 create: true
884 scope: false
885
886## If true, create & use Pod Security Policy resources
887## https://kubernetes.io/docs/concepts/policy/pod-security-policy/
888podSecurityPolicy:
889 enabled: false
890
891serviceAccount:
892 create: true
893 name: ""
894 automountServiceAccountToken: true
895 # -- Annotations for the controller service account
896 annotations: {}
897
898# -- Optional array of imagePullSecrets containing private registry credentials
899## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
900imagePullSecrets: []
901# - name: secretName
902
903# -- TCP service key:value pairs
904## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
905##
906tcp: {}
907# 8080: "default/example-tcp-svc:9000"
908
909# -- UDP service key:value pairs
910## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
911##
912udp: {}
913# 53: "kube-system/kube-dns:53"
914
915# -- (string) A base64-encoded Diffie-Hellman parameter.
916# This can be generated with: `openssl dhparam 4096 2> /dev/null | base64`
917## Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param
918dhParam: