2020-02-24 19:25:57 +00:00
## nginx configuration
2021-08-07 00:07:29 +00:00
## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/index.md
2020-02-24 19:25:57 +00:00
##
2020-11-12 19:17:51 +00:00
## Overrides for generated resource names
# See templates/_helpers.tpl
# nameOverride:
# fullnameOverride:
2022-01-16 22:29:28 +00:00
## Labels to apply to all resources
##
commonLabels : {}
# scmhash: abc123
# myLabel: aakkmd
2020-02-24 19:25:57 +00:00
controller :
2020-11-12 19:17:51 +00:00
name : controller
2020-02-24 19:25:57 +00:00
image :
2022-04-09 04:48:04 +00:00
## Keep false as default for now!
chroot : false
2021-05-23 16:07:38 +00:00
registry : k8s.gcr.io
image : ingress-nginx/controller
2022-01-08 10:53:04 +00:00
## for backwards compatibility consider setting the full image url via the repository value below
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
## repository:
2022-04-17 20:20:41 +00:00
tag : "v1.2.0-beta.1"
digest : sha256:7059739637c30865f74cae403fffa55c2cb6d9779cd15654480dd0e4f850d536
digestChroot : sha256:5344d8367295be743703f19eea137e7a3253efc2d0ec8aee131b85d3258f9780
2020-02-24 19:25:57 +00:00
pullPolicy : IfNotPresent
# www-data -> uid 101
runAsUser : 101
allowPrivilegeEscalation : true
2022-01-08 10:53:04 +00:00
# -- Use an existing PSP instead of creating one
2021-02-24 00:31:56 +00:00
existingPsp : ""
2022-01-08 10:53:04 +00:00
# -- Configures the controller container name
2021-04-13 11:48:34 +00:00
containerName : controller
2022-01-17 01:25:28 +00:00
# -- Configures the ports that the nginx-controller listens on
2020-02-24 19:25:57 +00:00
containerPort :
http : 80
https : 443
2022-01-08 10:53:04 +00:00
# -- Will add custom configuration options to Nginx https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
2020-02-24 19:25:57 +00:00
config : {}
2022-01-17 01:52:10 +00:00
# -- Annotations to be added to the controller config configuration configmap.
2020-02-26 15:53:20 +00:00
configAnnotations : {}
2022-01-08 10:53:04 +00:00
# -- Will add custom headers before sending traffic to backends according to https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/custom-headers
2020-02-24 19:25:57 +00:00
proxySetHeaders : {}
2022-01-08 10:53:04 +00:00
# -- 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
2020-02-24 19:25:57 +00:00
addHeaders : {}
2022-01-08 10:53:04 +00:00
# -- Optionally customize the pod dnsConfig.
2020-02-24 19:25:57 +00:00
dnsConfig : {}
2022-01-08 10:53:04 +00:00
# -- Optionally customize the pod hostname.
2021-08-09 13:45:31 +00:00
hostname : {}
2022-01-08 10:53:04 +00:00
# -- Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'.
2020-02-24 19:25:57 +00:00
# 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
2022-01-08 10:53:04 +00:00
# -- Bare-metal considerations via the host network https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#via-the-host-network
2020-02-24 19:25:57 +00:00
# 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
reportNodeInternalIp : false
2022-01-08 10:53:04 +00:00
# -- Process Ingress objects without ingressClass annotation/ingressClassName field
2021-08-21 20:42:00 +00:00
# Overrides value for --watch-ingress-without-class flag of the controller binary
# Defaults to false
watchIngressWithoutClass : false
2022-01-17 01:59:36 +00:00
# -- Process IngressClass per name (additionally as per spec.controller).
2021-09-10 17:14:01 +00:00
ingressClassByName : false
2022-01-08 10:53:04 +00:00
# -- This configuration defines if Ingress Controller should allow users to set
2021-09-20 23:52:23 +00:00
# their own *-snippet annotations, otherwise this is forbidden / dropped
2021-09-19 19:40:08 +00:00
# when users add those annotations.
# Global snippets in ConfigMap are still respected
2021-09-20 23:52:23 +00:00
allowSnippetAnnotations : true
2021-09-19 19:40:08 +00:00
2022-01-08 10:53:04 +00:00
# -- Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
2020-04-06 23:01:52 +00:00
# since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920
# is merged
hostNetwork : false
2020-02-24 19:25:57 +00:00
2020-04-06 23:01:52 +00:00
## Use host ports 80 and 443
## Disabled by default
hostPort :
2022-01-08 10:53:04 +00:00
# -- Enable 'hostPort' or not
2020-04-06 23:01:52 +00:00
enabled : false
ports :
2022-01-08 10:53:04 +00:00
# -- 'hostPort' http port
2020-04-06 23:01:52 +00:00
http : 80
2022-01-08 10:53:04 +00:00
# -- 'hostPort' https port
2020-04-06 23:01:52 +00:00
https : 443
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Election ID to use for status update
2020-02-24 19:25:57 +00:00
electionID : ingress-controller-leader
2022-01-08 10:53:04 +00:00
## This section refers to the creation of the IngressClass resource
## IngressClass resources are supported since k8s >= 1.18 and required since k8s >= 1.19
2021-06-18 23:16:42 +00:00
ingressClassResource :
2022-01-12 16:48:37 +00:00
# -- Name of the ingressClass
2021-08-21 20:42:00 +00:00
name : nginx
2022-01-12 16:48:37 +00:00
# -- Is this ingressClass enabled or not
2021-08-21 20:42:00 +00:00
enabled : true
2022-01-12 16:48:37 +00:00
# -- Is this the default ingressClass for the cluster
2021-06-18 23:16:42 +00:00
default : false
2022-01-12 16:48:37 +00:00
# -- Controller-value of the controller that is processing this ingressClass
2021-08-21 20:42:00 +00:00
controllerValue : "k8s.io/ingress-nginx"
2021-06-18 23:16:42 +00:00
2022-01-08 10:53:04 +00:00
# -- Parameters is a link to a custom resource containing additional
2021-06-18 23:16:42 +00:00
# configuration for the controller. This is optional if the controller
# does not require extra parameters.
parameters : {}
2022-02-06 20:18:51 +00:00
# -- For backwards compatibility with ingress.class annotation, use ingressClass.
# Algorithm is as follows, first ingressClassName is considered, if not present, controller looks for ingress.class annotation
ingressClass : nginx
2022-01-08 10:53:04 +00:00
# -- Labels to add to the pod container metadata
2020-02-24 19:25:57 +00:00
podLabels : {}
# key: value
2022-01-08 10:53:04 +00:00
# -- Security Context policies for controller pods
2020-02-24 19:25:57 +00:00
podSecurityContext : {}
2022-01-08 10:53:04 +00:00
# -- See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for notes on enabling and using sysctls
2020-06-12 07:45:55 +00:00
sysctls : {}
# sysctls:
# "net.core.somaxconn": "8192"
2022-01-08 10:53:04 +00:00
# -- Allows customization of the source of the IP address or FQDN to report
# in the ingress status field. By default, it reads the information provided
# by the service. If disable, the status field reports the IP address of the
# node or nodes where an ingress controller pod is running.
2020-02-24 19:25:57 +00:00
publishService :
2022-01-08 10:53:04 +00:00
# -- Enable 'publishService' or not
2020-03-30 18:22:09 +00:00
enabled : true
2022-01-08 10:53:04 +00:00
# -- Allows overriding of the publish service to bind to
# Must be <namespace>/<service_name>
2020-02-24 19:25:57 +00:00
pathOverride : ""
2022-01-08 10:53:04 +00:00
# Limit the scope of the controller to a specific namespace
2020-02-24 19:25:57 +00:00
scope :
2022-01-08 10:53:04 +00:00
# -- Enable 'scope' or not
2020-02-24 19:25:57 +00:00
enabled : false
2022-01-08 10:53:04 +00:00
# -- Namespace to limit the controller to; defaults to $(POD_NAMESPACE)
namespace : ""
# -- When scope.enabled == false, instead of watching all namespaces, we watching namespaces whose labels
# only match with namespaceSelector. Format like foo=bar. Defaults to empty, means watching all namespaces.
2021-11-12 19:46:28 +00:00
namespaceSelector : ""
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Allows customization of the configmap / nginx-configmap namespace; defaults to $(POD_NAMESPACE)
configMapNamespace : ""
2020-02-24 19:25:57 +00:00
tcp :
2022-01-08 10:53:04 +00:00
# -- Allows customization of the tcp-services-configmap; defaults to $(POD_NAMESPACE)
configMapNamespace : ""
# -- Annotations to be added to the tcp config configmap
2020-02-26 15:53:20 +00:00
annotations : {}
2020-02-24 19:25:57 +00:00
udp :
2022-01-08 10:53:04 +00:00
# -- Allows customization of the udp-services-configmap; defaults to $(POD_NAMESPACE)
configMapNamespace : ""
# -- Annotations to be added to the udp config configmap
2020-02-26 15:53:20 +00:00
annotations : {}
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Maxmind license key to download GeoLite2 Databases.
## https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases
2020-12-07 18:24:29 +00:00
maxmindLicenseKey : ""
2022-01-08 10:53:04 +00:00
# -- Additional command line arguments to pass to nginx-ingress-controller
# E.g. to specify the default SSL certificate you can use
extraArgs : {}
2020-02-24 19:25:57 +00:00
## extraArgs:
## default-ssl-certificate: "<namespace>/<secret_name>"
2022-01-08 10:53:04 +00:00
# -- Additional environment variables to set
2020-02-24 19:25:57 +00:00
extraEnvs : [ ]
# extraEnvs:
# - name: FOO
# valueFrom:
# secretKeyRef:
# key: FOO
# name: secret-resource
2022-01-08 10:53:04 +00:00
# -- Use a `DaemonSet` or `Deployment`
2020-02-24 19:25:57 +00:00
kind : Deployment
2022-01-08 10:53:04 +00:00
# -- Annotations to be added to the controller Deployment or DaemonSet
2020-03-02 14:49:26 +00:00
##
2020-04-06 23:01:52 +00:00
annotations : {}
2020-08-31 19:46:43 +00:00
# keel.sh/pollSchedule: "@every 60m"
2022-01-08 10:53:04 +00:00
# -- Labels to be added to the controller Deployment or DaemonSet and other resources that do not have option to specify labels
2020-08-31 19:46:43 +00:00
##
labels : {}
# keel.sh/policy: patch
# keel.sh/trigger: poll
2020-03-02 14:49:26 +00:00
2022-01-08 10:53:04 +00:00
# -- The update strategy to apply to the Deployment or DaemonSet
2020-02-24 19:25:57 +00:00
##
updateStrategy : {}
# rollingUpdate:
# maxUnavailable: 1
# type: RollingUpdate
2022-01-08 10:53:04 +00:00
# -- `minReadySeconds` to avoid killing pods before we are ready
2020-02-24 19:25:57 +00:00
##
minReadySeconds : 0
2022-01-08 10:53:04 +00:00
# -- Node tolerations for server scheduling to nodes with taints
2020-02-24 19:25:57 +00:00
## 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)"
2022-01-08 10:53:04 +00:00
# -- Affinity and anti-affinity rules for server scheduling to nodes
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity : {}
# # An example of preferred pod anti-affinity, weight is in the range 1-100
# podAntiAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 100
# podAffinityTerm:
# labelSelector:
# matchExpressions:
2020-08-26 02:16:51 +00:00
# - key: app.kubernetes.io/name
2020-02-24 19:25:57 +00:00
# operator: In
# values:
2020-02-28 14:53:24 +00:00
# - ingress-nginx
2020-08-26 02:16:51 +00:00
# - key: app.kubernetes.io/instance
# operator: In
# values:
# - ingress-nginx
# - key: app.kubernetes.io/component
# operator: In
# values:
# - controller
2020-02-24 19:25:57 +00:00
# topologyKey: kubernetes.io/hostname
# # An example of required pod anti-affinity
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
2020-08-26 02:16:51 +00:00
# - key: app.kubernetes.io/name
2020-02-24 19:25:57 +00:00
# operator: In
# values:
2020-02-28 14:53:24 +00:00
# - ingress-nginx
2020-08-26 02:16:51 +00:00
# - key: app.kubernetes.io/instance
# operator: In
# values:
# - ingress-nginx
# - key: app.kubernetes.io/component
# operator: In
# values:
# - controller
2020-02-24 19:25:57 +00:00
# topologyKey: "kubernetes.io/hostname"
2022-01-08 10:53:04 +00:00
# -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in.
2020-09-11 06:55:34 +00:00
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
##
topologySpreadConstraints : [ ]
# - maxSkew: 1
2022-04-08 08:36:42 +00:00
# topologyKey: topology.kubernetes.io/zone
2020-09-11 06:55:34 +00:00
# whenUnsatisfiable: DoNotSchedule
# labelSelector:
# matchLabels:
# app.kubernetes.io/instance: ingress-nginx-internal
2022-01-08 10:53:04 +00:00
# -- `terminationGracePeriodSeconds` to avoid killing pods before we are ready
2020-04-06 16:34:19 +00:00
## wait up to five minutes for the drain of connections
2020-02-24 19:25:57 +00:00
##
2020-04-06 16:34:19 +00:00
terminationGracePeriodSeconds : 300
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Node labels for controller pod assignment
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
2020-10-09 10:20:29 +00:00
nodeSelector :
kubernetes.io/os : linux
2020-02-24 19:25:57 +00:00
## Liveness and readiness probe values
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
##
2022-01-08 10:53:04 +00:00
## startupProbe:
## httpGet:
## # should match container.healthCheckPath
## path: "/healthz"
## port: 10254
## scheme: HTTP
## initialDelaySeconds: 5
## periodSeconds: 5
## timeoutSeconds: 2
## successThreshold: 1
## failureThreshold: 5
2020-02-24 19:25:57 +00:00
livenessProbe :
2021-05-18 13:37:31 +00:00
httpGet :
# should match container.healthCheckPath
path : "/healthz"
port : 10254
scheme : HTTP
2020-02-24 19:25:57 +00:00
initialDelaySeconds : 10
periodSeconds : 10
timeoutSeconds : 1
2021-05-18 13:37:31 +00:00
successThreshold : 1
failureThreshold : 5
2020-02-24 19:25:57 +00:00
readinessProbe :
2021-05-18 13:37:31 +00:00
httpGet :
# should match container.healthCheckPath
path : "/healthz"
port : 10254
scheme : HTTP
2020-02-24 19:25:57 +00:00
initialDelaySeconds : 10
periodSeconds : 10
timeoutSeconds : 1
2021-05-18 13:37:31 +00:00
successThreshold : 1
failureThreshold : 3
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Path of the health check endpoint. All requests received on the port defined by
2020-03-15 14:54:58 +00:00
# the healthz-port parameter are forwarded internally to this path.
healthCheckPath : "/healthz"
2022-01-08 10:53:04 +00:00
# -- Address to bind the health check endpoint.
2021-08-26 12:13:23 +00:00
# It is better to set this option to the internal node address
2022-01-08 10:53:04 +00:00
# if the ingress nginx controller is running in the `hostNetwork: true` mode.
2021-08-26 12:13:23 +00:00
healthCheckHost : ""
2022-01-08 10:53:04 +00:00
# -- Annotations to be added to controller pods
2020-02-24 19:25:57 +00:00
##
podAnnotations : {}
replicaCount : 1
minAvailable : 1
2022-01-08 10:53:04 +00:00
## Define requests resources to avoid probe issues due to CPU utilization in busy nodes
## ref: https://github.com/kubernetes/ingress-nginx/issues/4735#issuecomment-551204903
## Ideally, there should be no limits.
## https://engineering.indeedblog.com/blog/2019/12/cpu-throttling-regression-fix/
2020-04-01 21:33:38 +00:00
resources :
2022-01-08 10:53:04 +00:00
## limits:
## cpu: 100m
## memory: 90Mi
2020-04-01 21:33:38 +00:00
requests :
cpu : 100m
memory : 90Mi
2020-02-24 19:25:57 +00:00
2020-11-18 20:22:34 +00:00
# Mutually exclusive with keda autoscaling
2020-02-24 19:25:57 +00:00
autoscaling :
enabled : false
minReplicas : 1
maxReplicas : 11
targetCPUUtilizationPercentage : 50
targetMemoryUtilizationPercentage : 50
2021-08-22 19:05:59 +00:00
behavior : {}
# scaleDown:
# stabilizationWindowSeconds: 300
# policies:
# - type: Pods
# value: 1
# periodSeconds: 180
# scaleUp:
# stabilizationWindowSeconds: 300
# policies:
# - type: Pods
# value: 2
# periodSeconds: 60
2020-02-24 19:25:57 +00:00
2020-06-11 22:34:31 +00:00
autoscalingTemplate : [ ]
# Custom or additional autoscaling metrics
# ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
# - type: Pods
# pods:
# metric:
# name: nginx_ingress_controller_nginx_process_requests_total
# target:
# type: AverageValue
# averageValue: 10000m
2020-11-18 20:22:34 +00:00
# Mutually exclusive with hpa autoscaling
keda :
apiVersion : "keda.sh/v1alpha1"
2022-01-08 10:53:04 +00:00
## apiVersion changes with keda 1.x vs 2.x
## 2.x = keda.sh/v1alpha1
## 1.x = keda.k8s.io/v1alpha1
2020-11-18 20:22:34 +00:00
enabled : false
minReplicas : 1
maxReplicas : 11
pollingInterval : 30
cooldownPeriod : 300
restoreToOriginalReplicaCount : false
2021-01-20 15:37:46 +00:00
scaledObject :
annotations : {}
# Custom annotations for ScaledObject resource
# annotations:
# key: value
2020-11-18 20:22:34 +00:00
triggers : [ ]
# - type: prometheus
# metadata:
# serverAddress: http://<prometheus-host>:9090
# metricName: http_requests_total
# threshold: '100'
# query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
behavior : {}
# scaleDown:
# stabilizationWindowSeconds: 300
# policies:
# - type: Pods
# value: 1
# periodSeconds: 180
# scaleUp:
# stabilizationWindowSeconds: 300
# policies:
# - type: Pods
# value: 2
# periodSeconds: 60
2022-01-08 10:53:04 +00:00
# -- Enable mimalloc as a drop-in replacement for malloc.
2020-04-06 16:34:19 +00:00
## ref: https://github.com/microsoft/mimalloc
##
2020-09-15 13:21:36 +00:00
enableMimalloc : true
2020-04-06 16:34:19 +00:00
2020-02-24 19:25:57 +00:00
## Override NGINX template
customTemplate :
configMapName : ""
configMapKey : ""
service :
enabled : true
2022-01-08 10:53:04 +00:00
# -- If enabled is adding an appProtocol option for Kubernetes service. An appProtocol field replacing annotations that were
# using for setting a backend protocol. Here is an example for AWS: service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
# It allows choosing the protocol for each backend specified in the Kubernetes service.
# See the following GitHub issue for more details about the purpose: https://github.com/kubernetes/kubernetes/issues/40244
# Will be ignored for Kubernetes versions older than 1.20
2021-11-26 10:36:52 +00:00
##
appProtocol : true
2020-02-24 19:25:57 +00:00
annotations : {}
labels : {}
# clusterIP: ""
2022-01-08 10:53:04 +00:00
# -- List of IP addresses at which the controller services are available
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs : [ ]
2020-03-02 14:49:26 +00:00
# loadBalancerIP: ""
2020-02-24 19:25:57 +00:00
loadBalancerSourceRanges : [ ]
enableHttp : true
enableHttps : true
2021-10-12 20:38:00 +00:00
## Set external traffic policy to: "Local" to preserve source IP on providers supporting it.
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
2020-03-02 14:49:26 +00:00
# externalTrafficPolicy: ""
2020-02-24 19:25:57 +00:00
2021-10-12 20:38:00 +00:00
## Must be either "None" or "ClientIP" if set. Kubernetes will default to "None".
## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
2020-03-02 14:49:26 +00:00
# sessionAffinity: ""
2020-02-24 19:25:57 +00:00
2021-10-12 20:38:00 +00:00
## Specifies the health check node port (numeric port number) for the service. If healthCheckNodePort isn’ t specified,
## the service controller allocates a port from your cluster’ s NodePort range.
## Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
2020-03-02 14:49:26 +00:00
# healthCheckNodePort: 0
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Represents the dual-stack-ness requested or required by this Service. Possible values are
# SingleStack, PreferDualStack or RequireDualStack.
# The ipFamilies and clusterIPs fields depend on the value of this field.
2021-10-12 20:38:00 +00:00
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
ipFamilyPolicy : "SingleStack"
2022-01-08 10:53:04 +00:00
# -- List of IP families (e.g. IPv4, IPv6) assigned to the service. This field is usually assigned automatically
# based on cluster configuration and the ipFamilyPolicy field.
2021-10-12 20:38:00 +00:00
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
ipFamilies :
- IPv4
2020-02-24 19:25:57 +00:00
ports :
http : 80
https : 443
targetPorts :
http : http
https : https
type : LoadBalancer
2022-01-08 10:53:04 +00:00
## type: NodePort
## nodePorts:
## http: 32080
## https: 32443
## tcp:
## 8080: 32808
2020-02-24 19:25:57 +00:00
nodePorts :
http : ""
https : ""
tcp : {}
udp : {}
2021-11-15 23:13:52 +00:00
external :
enabled : true
2020-06-15 11:08:06 +00:00
internal :
2022-01-08 10:53:04 +00:00
# -- Enables an additional internal load balancer (besides the external one).
2020-06-15 11:08:06 +00:00
enabled : false
2022-01-08 10:53:04 +00:00
# -- Annotations are mandatory for the load balancer to come up. Varies with the cloud service.
2020-06-15 11:08:06 +00:00
annotations : {}
2020-12-17 16:50:08 +00:00
# loadBalancerIP: ""
2022-01-08 10:53:04 +00:00
# -- Restrict access For LoadBalancer service. Defaults to 0.0.0.0/0.
2020-10-27 16:02:05 +00:00
loadBalancerSourceRanges : [ ]
2020-08-27 17:05:38 +00:00
## 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: ""
2022-03-14 15:51:57 +00:00
# shareProcessNamespace enables process namespace sharing within the pod.
# This can be used for example to signal log rotation using `kill -USR1` from a sidecar.
shareProcessNamespace : false
2022-01-08 10:53:04 +00:00
# -- Additional containers to be added to the controller pod.
# See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example.
2020-02-24 19:25:57 +00:00
extraContainers : [ ]
# - name: my-sidecar
# image: nginx:latest
# - name: lemonldap-ng-controller
# image: lemonldapng/lemonldap-ng-controller:0.2.0
# args:
# - /lemonldap-ng-controller
# - --alsologtostderr
# - --configmap=$(POD_NAMESPACE)/lemonldap-ng-configuration
# env:
# - name: POD_NAME
# valueFrom:
# fieldRef:
# fieldPath: metadata.name
# - name: POD_NAMESPACE
# valueFrom:
# fieldRef:
# fieldPath: metadata.namespace
# volumeMounts:
# - name: copy-portal-skins
# mountPath: /srv/var/lib/lemonldap-ng/portal/skins
2022-01-08 10:53:04 +00:00
# -- Additional volumeMounts to the controller main container.
2020-02-24 19:25:57 +00:00
extraVolumeMounts : [ ]
# - name: copy-portal-skins
# mountPath: /var/lib/lemonldap-ng/portal/skins
2022-01-08 10:53:04 +00:00
# -- Additional volumes to the controller pod.
2020-02-24 19:25:57 +00:00
extraVolumes : [ ]
# - name: copy-portal-skins
# emptyDir: {}
2022-01-08 10:53:04 +00:00
# -- Containers, which are run before the app containers are started.
2020-02-24 19:25:57 +00:00
extraInitContainers : [ ]
# - name: init-myservice
# image: busybox
# command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;']
2022-01-16 21:33:28 +00:00
extraModules : [ ]
## Modules, which are mounted into the core nginx image
2022-04-01 11:37:08 +00:00
# - name: opentelemetry:v20220331-controller-v1.1.2-36-g7517b7ecf@sha256:e3f635474b5da24ccd0ea6b078fb190dae68b8b4a44b52bea19ec2561f0102ec
# image: k8s.gcr.io/ingress-nginx/opentelemetry:
2022-01-16 21:33:28 +00:00
#
# The image must contain a `/usr/local/bin/init_module.sh` executable, which
# will be executed as initContainers, to move its config files within the
# mounted volume.
2020-02-24 19:25:57 +00:00
admissionWebhooks :
2020-10-01 21:07:42 +00:00
annotations : {}
2021-11-29 11:33:22 +00:00
# ignore-check.kube-linter.io/no-read-only-rootfs: "This deployment needs write access to root filesystem".
## Additional annotations to the admission webhooks.
## These annotations will be added to the ValidatingWebhookConfiguration and
## the Jobs Spec of the admission webhooks.
2020-02-24 19:25:57 +00:00
enabled : true
failurePolicy : Fail
2020-10-01 21:07:42 +00:00
# timeoutSeconds: 10
2020-02-24 19:25:57 +00:00
port : 8443
2020-10-01 21:07:42 +00:00
certificate : "/usr/local/certificates/cert"
key : "/usr/local/certificates/key"
namespaceSelector : {}
objectSelector : {}
2022-01-08 10:53:04 +00:00
# -- Labels to be added to admission webhooks
2021-11-19 14:52:52 +00:00
labels : {}
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Use an existing PSP instead of creating one
2021-02-24 00:31:56 +00:00
existingPsp : ""
2020-02-24 19:25:57 +00:00
service :
annotations : {}
# clusterIP: ""
externalIPs : [ ]
2020-03-02 14:49:26 +00:00
# loadBalancerIP: ""
2020-02-24 19:25:57 +00:00
loadBalancerSourceRanges : [ ]
servicePort : 443
type : ClusterIP
2021-08-05 22:31:41 +00:00
createSecretJob :
resources : {}
# limits:
# cpu: 10m
# memory: 20Mi
# requests:
# cpu: 10m
# memory: 20Mi
patchWebhookJob :
resources : {}
2020-02-24 19:25:57 +00:00
patch :
enabled : true
image :
2021-08-21 20:42:00 +00:00
registry : k8s.gcr.io
image : ingress-nginx/kube-webhook-certgen
2022-01-08 10:53:04 +00:00
## for backwards compatibility consider setting the full image url via the repository value below
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
## repository:
2021-10-12 21:17:59 +00:00
tag : v1.1.1
digest : sha256:64d8c73dca984af206adf9d6d7e46aa550362b1d7a01f3a0a91b20cc67868660
2020-02-24 19:25:57 +00:00
pullPolicy : IfNotPresent
2022-01-08 10:53:04 +00:00
# -- Provide a priority class name to the webhook patching job
2020-02-24 19:25:57 +00:00
##
priorityClassName : ""
podAnnotations : {}
2021-08-12 19:39:51 +00:00
nodeSelector :
kubernetes.io/os : linux
2020-05-19 05:58:57 +00:00
tolerations : [ ]
2022-01-08 10:53:04 +00:00
# -- Labels to be added to patch job resources
2021-11-19 14:52:52 +00:00
labels : {}
2020-05-04 17:50:00 +00:00
runAsUser : 2000
2022-02-28 15:10:57 +00:00
fsGroup : 2000
2020-02-24 19:25:57 +00:00
metrics :
port : 10254
# if this port is changed, change healthz-port: in extraArgs: accordingly
enabled : false
service :
annotations : {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "10254"
# clusterIP: ""
2022-01-08 10:53:04 +00:00
# -- List of IP addresses at which the stats-exporter service is available
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs : [ ]
2020-03-02 14:49:26 +00:00
# loadBalancerIP: ""
2020-02-24 19:25:57 +00:00
loadBalancerSourceRanges : [ ]
2021-03-19 07:14:27 +00:00
servicePort : 10254
2020-02-24 19:25:57 +00:00
type : ClusterIP
2020-09-14 11:09:40 +00:00
# externalTrafficPolicy: ""
# nodePort: ""
2020-02-24 19:25:57 +00:00
serviceMonitor :
enabled : false
additionalLabels : {}
2022-01-08 10:53:04 +00:00
## The label to use to retrieve the job name from.
## jobLabel: "app.kubernetes.io/name"
2020-02-24 19:25:57 +00:00
namespace : ""
namespaceSelector : {}
2022-01-08 10:53:04 +00:00
## Default: scrape .Release.Namespace only
## To scrape all, use the following:
## namespaceSelector:
## any: true
2020-02-24 19:25:57 +00:00
scrapeInterval : 30s
# honorLabels: true
2020-08-19 02:25:57 +00:00
targetLabels : [ ]
2021-12-06 13:50:32 +00:00
relabelings : [ ]
2020-08-19 02:25:57 +00:00
metricRelabelings : [ ]
2020-02-24 19:25:57 +00:00
prometheusRule :
enabled : false
additionalLabels : {}
2020-03-02 14:49:26 +00:00
# namespace: ""
2020-02-24 19:25:57 +00:00
rules : [ ]
# # These are just examples rules, please adapt them to your needs
2020-08-31 19:46:43 +00:00
# - alert: NGINXConfigFailed
# expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
# for: 1s
# labels:
# severity: critical
# annotations:
# description: bad ingress config - nginx config test failed
# summary: uninstall the latest ingress changes to allow config reloads to resume
# - alert: NGINXCertificateExpiry
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
# for: 1s
# labels:
# severity: critical
# annotations:
# description: ssl certificate(s) will expire in less then a week
# summary: renew expiring certificates to avoid downtime
# - alert: NGINXTooMany500s
2020-02-24 19:25:57 +00:00
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
# for: 1m
# labels:
2020-08-31 19:46:43 +00:00
# severity: warning
2020-02-24 19:25:57 +00:00
# annotations:
# description: Too many 5XXs
2020-09-15 17:00:07 +00:00
# summary: More than 5% of all requests returned 5XX, this requires your attention
2020-08-31 19:46:43 +00:00
# - alert: NGINXTooMany400s
2020-02-24 19:25:57 +00:00
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
# for: 1m
# labels:
2020-08-31 19:46:43 +00:00
# severity: warning
2020-02-24 19:25:57 +00:00
# annotations:
# description: Too many 4XXs
2020-09-15 17:00:07 +00:00
# summary: More than 5% of all requests returned 4XX, this requires your attention
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Improve connection draining when ingress controller pod is deleted using a lifecycle hook:
# With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
# to 300, allowing the draining of connections up to five minutes.
# If the active connections end before that, the pod will terminate gracefully at that time.
# To effectively take advantage of this feature, the Configmap feature
# worker-shutdown-timeout new value is 240s instead of 10s.
2020-04-06 16:34:19 +00:00
##
lifecycle :
preStop :
exec :
command :
- /wait-shutdown
2020-02-24 19:25:57 +00:00
priorityClassName : ""
2022-01-08 10:53:04 +00:00
# -- Rollback limit
2020-02-24 19:25:57 +00:00
##
revisionHistoryLimit : 10
## Default 404 backend
##
defaultBackend :
##
enabled : false
2020-11-12 19:17:51 +00:00
name : defaultbackend
2020-02-24 19:25:57 +00:00
image :
2021-05-23 16:07:38 +00:00
registry : k8s.gcr.io
image : defaultbackend-amd64
2022-01-08 10:53:04 +00:00
## for backwards compatibility consider setting the full image url via the repository value below
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
## repository:
2020-02-24 19:25:57 +00:00
tag : "1.5"
pullPolicy : IfNotPresent
# nobody user -> uid 65534
runAsUser : 65534
2020-10-21 09:15:15 +00:00
runAsNonRoot : true
readOnlyRootFilesystem : true
allowPrivilegeEscalation : false
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Use an existing PSP instead of creating one
2021-02-24 00:31:56 +00:00
existingPsp : ""
2020-02-24 19:25:57 +00:00
extraArgs : {}
serviceAccount :
create : true
2021-01-15 09:46:36 +00:00
name : ""
2021-03-15 18:32:25 +00:00
automountServiceAccountToken : true
2022-01-08 10:53:04 +00:00
# -- Additional environment variables to set for defaultBackend pods
2020-02-24 19:25:57 +00:00
extraEnvs : [ ]
port : 8080
## Readiness and liveness probes for default backend
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
##
livenessProbe :
failureThreshold : 3
initialDelaySeconds : 30
periodSeconds : 10
successThreshold : 1
timeoutSeconds : 5
readinessProbe :
failureThreshold : 6
initialDelaySeconds : 0
periodSeconds : 5
successThreshold : 1
timeoutSeconds : 5
2022-01-08 10:53:04 +00:00
# -- Node tolerations for server scheduling to nodes with taints
2020-02-24 19:25:57 +00:00
## 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 : {}
2022-01-08 10:53:04 +00:00
# -- Security Context policies for controller pods
# See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
# notes on enabling and using sysctls
2020-02-24 19:25:57 +00:00
##
podSecurityContext : {}
2022-01-08 10:53:04 +00:00
# -- Security Context policies for controller main container.
# See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
# notes on enabling and using sysctls
2021-11-15 21:54:49 +00:00
##
containerSecurityContext : {}
2022-01-08 10:53:04 +00:00
# -- Labels to add to the pod container metadata
2020-02-24 19:25:57 +00:00
podLabels : {}
# key: value
2022-01-08 10:53:04 +00:00
# -- Node labels for default backend pod assignment
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
2021-08-12 19:39:51 +00:00
nodeSelector :
kubernetes.io/os : linux
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Annotations to be added to default backend pods
2020-02-24 19:25:57 +00:00
##
podAnnotations : {}
replicaCount : 1
minAvailable : 1
resources : {}
# limits:
# cpu: 10m
# memory: 20Mi
# requests:
# cpu: 10m
# memory: 20Mi
2021-02-25 09:23:26 +00:00
extraVolumeMounts : [ ]
## Additional volumeMounts to the default backend container.
# - name: copy-portal-skins
# mountPath: /var/lib/lemonldap-ng/portal/skins
extraVolumes : [ ]
## Additional volumes to the default backend pod.
# - name: copy-portal-skins
# emptyDir: {}
2020-11-04 13:03:50 +00:00
autoscaling :
2021-06-02 09:52:24 +00:00
annotations : {}
2020-11-04 13:03:50 +00:00
enabled : false
minReplicas : 1
maxReplicas : 2
targetCPUUtilizationPercentage : 50
targetMemoryUtilizationPercentage : 50
2020-02-24 19:25:57 +00:00
service :
annotations : {}
2020-03-02 14:49:26 +00:00
2020-02-24 19:25:57 +00:00
# clusterIP: ""
2022-01-08 10:53:04 +00:00
# -- List of IP addresses at which the default backend service is available
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs : [ ]
2020-03-02 14:49:26 +00:00
# loadBalancerIP: ""
2020-02-24 19:25:57 +00:00
loadBalancerSourceRanges : [ ]
servicePort : 80
type : ClusterIP
priorityClassName : ""
2022-01-08 10:53:04 +00:00
# -- Labels to be added to the default backend resources
2021-11-19 14:52:52 +00:00
labels : {}
2020-02-24 19:25:57 +00:00
2021-08-07 00:07:29 +00:00
## 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
2020-02-24 19:25:57 +00:00
rbac :
create : true
2020-02-26 19:55:02 +00:00
scope : false
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
## If true, create & use Pod Security Policy resources
## https://kubernetes.io/docs/concepts/policy/pod-security-policy/
2020-02-24 19:25:57 +00:00
podSecurityPolicy :
enabled : false
serviceAccount :
create : true
2021-01-15 09:46:36 +00:00
name : ""
2021-03-15 18:32:25 +00:00
automountServiceAccountToken : true
2022-01-28 14:16:31 +00:00
# -- Annotations for the controller service account
2022-01-27 03:12:50 +00:00
annotations : {}
2020-02-24 19:25:57 +00:00
2022-01-08 10:53:04 +00:00
# -- Optional array of imagePullSecrets containing private registry credentials
2020-02-24 19:25:57 +00:00
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets : [ ]
# - name: secretName
2022-01-08 10:53:04 +00:00
# -- TCP service key:value pairs
## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
2020-02-24 19:25:57 +00:00
##
tcp : {}
# 8080: "default/example-tcp-svc:9000"
2022-01-08 10:53:04 +00:00
# -- UDP service key:value pairs
## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
2020-02-24 19:25:57 +00:00
##
udp : {}
# 53: "kube-system/kube-dns:53"
2021-01-28 02:04:26 +00:00
2022-01-08 10:53:04 +00:00
# -- (string) A base64-encoded Diffie-Hellman parameter.
# This can be generated with: `openssl dhparam 4096 2> /dev/null | base64`
## Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param
2021-01-28 02:04:26 +00:00
dhParam :