blob: b3389e2f19859ff457739a195f5687cf37c3e023 [file] [log] [blame]
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04001## 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
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040010## Labels to apply to all resources
11##
12commonLabels: {}
13# scmhash: abc123
14# myLabel: aakkmd
15
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040016controller:
17 name: controller
18 image:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040019 ## Keep false as default for now!
20 chroot: false
21 registry: registry.k8s.io
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040022 image: ingress-nginx/controller
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040023 ## for backwards compatibility consider setting the full image url via the repository value below
24 ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
25 ## repository:
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +040026 tag: "v1.8.0"
27 digest: sha256:744ae2afd433a395eeb13dc03d3313facba92e96ad71d9feaafc85925493fee3
28 digestChroot: sha256:a45e41cd2b7670adf829759878f512d4208d0aec1869dae593a0fecd09a5e49e
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040029 pullPolicy: IfNotPresent
30 # www-data -> uid 101
31 runAsUser: 101
32 allowPrivilegeEscalation: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040033 # -- Use an existing PSP instead of creating one
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040034 existingPsp: ""
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040035 # -- Configures the controller container name
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040036 containerName: controller
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040037 # -- Configures the ports that the nginx-controller listens on
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040038 containerPort:
39 http: 80
40 https: 443
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040041 # -- Will add custom configuration options to Nginx https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040042 config: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040043 # -- Annotations to be added to the controller config configuration configmap.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040044 configAnnotations: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040045 # -- Will add custom headers before sending traffic to backends according to https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/custom-headers
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040046 proxySetHeaders: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040047 # -- 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
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040048 addHeaders: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040049 # -- Optionally customize the pod dnsConfig.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040050 dnsConfig: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040051 # -- Optionally customize the pod hostname.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040052 hostname: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040053 # -- Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true'.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040054 # By default, while using host network, name resolution uses the host's DNS. If you wish nginx-controller
55 # to keep resolving names inside the k8s network, use ClusterFirstWithHostNet.
56 dnsPolicy: ClusterFirst
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040057 # -- Bare-metal considerations via the host network https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#via-the-host-network
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +040058 # Ingress status was blank because there is no Service exposing the Ingress-Nginx Controller in a configuration using the host network, the default --publish-service flag used in standard cloud setups does not apply
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040059 reportNodeInternalIp: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040060 # -- Process Ingress objects without ingressClass annotation/ingressClassName field
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040061 # Overrides value for --watch-ingress-without-class flag of the controller binary
62 # Defaults to false
63 watchIngressWithoutClass: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040064 # -- Process IngressClass per name (additionally as per spec.controller).
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040065 ingressClassByName: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040066 # -- This configuration enables Topology Aware Routing feature, used together with service annotation service.kubernetes.io/topology-aware-hints="auto"
67 # Defaults to false
68 enableTopologyAwareRouting: false
69 # -- This configuration defines if Ingress Controller should allow users to set
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040070 # their own *-snippet annotations, otherwise this is forbidden / dropped
71 # when users add those annotations.
72 # Global snippets in ConfigMap are still respected
73 allowSnippetAnnotations: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040074 # -- Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040075 # since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920
76 # is merged
77 hostNetwork: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040078 ## Use host ports 80 and 443
79 ## Disabled by default
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040080 hostPort:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040081 # -- Enable 'hostPort' or not
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040082 enabled: false
83 ports:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040084 # -- 'hostPort' http port
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040085 http: 80
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040086 # -- 'hostPort' https port
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040087 https: 443
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040088 # -- Election ID to use for status update, by default it uses the controller name combined with a suffix of 'leader'
89 electionID: ""
90 ## This section refers to the creation of the IngressClass resource
91 ## IngressClass resources are supported since k8s >= 1.18 and required since k8s >= 1.19
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040092 ingressClassResource:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040093 # -- Name of the ingressClass
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040094 name: nginx
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040095 # -- Is this ingressClass enabled or not
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040096 enabled: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040097 # -- Is this the default ingressClass for the cluster
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040098 default: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040099 # -- Controller-value of the controller that is processing this ingressClass
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400100 controllerValue: "k8s.io/ingress-nginx"
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400101 # -- Parameters is a link to a custom resource containing additional
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400102 # configuration for the controller. This is optional if the controller
103 # does not require extra parameters.
104 parameters: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400105 # -- For backwards compatibility with ingress.class annotation, use ingressClass.
106 # Algorithm is as follows, first ingressClassName is considered, if not present, controller looks for ingress.class annotation
107 ingressClass: nginx
108 # -- Labels to add to the pod container metadata
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400109 podLabels: {}
110 # key: value
111
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400112 # -- Security Context policies for controller pods
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400113 podSecurityContext: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400114 # -- See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for notes on enabling and using sysctls
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400115 sysctls: {}
116 # sysctls:
117 # "net.core.somaxconn": "8192"
118
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400119 # -- Allows customization of the source of the IP address or FQDN to report
120 # in the ingress status field. By default, it reads the information provided
121 # by the service. If disable, the status field reports the IP address of the
122 # node or nodes where an ingress controller pod is running.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400123 publishService:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400124 # -- Enable 'publishService' or not
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400125 enabled: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400126 # -- Allows overriding of the publish service to bind to
127 # Must be <namespace>/<service_name>
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400128 pathOverride: ""
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400129 # Limit the scope of the controller to a specific namespace
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400130 scope:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400131 # -- Enable 'scope' or not
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400132 enabled: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400133 # -- Namespace to limit the controller to; defaults to $(POD_NAMESPACE)
134 namespace: ""
135 # -- When scope.enabled == false, instead of watching all namespaces, we watching namespaces whose labels
136 # only match with namespaceSelector. Format like foo=bar. Defaults to empty, means watching all namespaces.
137 namespaceSelector: ""
138 # -- Allows customization of the configmap / nginx-configmap namespace; defaults to $(POD_NAMESPACE)
139 configMapNamespace: ""
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400140 tcp:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400141 # -- Allows customization of the tcp-services-configmap; defaults to $(POD_NAMESPACE)
142 configMapNamespace: ""
143 # -- Annotations to be added to the tcp config configmap
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400144 annotations: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400145 udp:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400146 # -- Allows customization of the udp-services-configmap; defaults to $(POD_NAMESPACE)
147 configMapNamespace: ""
148 # -- Annotations to be added to the udp config configmap
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400149 annotations: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400150 # -- Maxmind license key to download GeoLite2 Databases.
151 ## https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400152 maxmindLicenseKey: ""
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +0400153 # -- Additional command line arguments to pass to Ingress-Nginx Controller
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400154 # E.g. to specify the default SSL certificate you can use
155 extraArgs: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400156 ## extraArgs:
157 ## default-ssl-certificate: "<namespace>/<secret_name>"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400158
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400159 # -- Additional environment variables to set
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400160 extraEnvs: []
161 # extraEnvs:
162 # - name: FOO
163 # valueFrom:
164 # secretKeyRef:
165 # key: FOO
166 # name: secret-resource
167
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400168 # -- Use a `DaemonSet` or `Deployment`
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400169 kind: Deployment
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400170 # -- Annotations to be added to the controller Deployment or DaemonSet
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400171 ##
172 annotations: {}
173 # keel.sh/pollSchedule: "@every 60m"
174
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400175 # -- Labels to be added to the controller Deployment or DaemonSet and other resources that do not have option to specify labels
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400176 ##
177 labels: {}
178 # keel.sh/policy: patch
179 # keel.sh/trigger: poll
180
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400181 # -- The update strategy to apply to the Deployment or DaemonSet
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400182 ##
183 updateStrategy: {}
184 # rollingUpdate:
185 # maxUnavailable: 1
186 # type: RollingUpdate
187
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400188 # -- `minReadySeconds` to avoid killing pods before we are ready
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400189 ##
190 minReadySeconds: 0
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400191 # -- Node tolerations for server scheduling to nodes with taints
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400192 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
193 ##
194 tolerations: []
195 # - key: "key"
196 # operator: "Equal|Exists"
197 # value: "value"
198 # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
199
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400200 # -- Affinity and anti-affinity rules for server scheduling to nodes
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400201 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
202 ##
203 affinity: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400204 # # An example of preferred pod anti-affinity, weight is in the range 1-100
205 # podAntiAffinity:
206 # preferredDuringSchedulingIgnoredDuringExecution:
207 # - weight: 100
208 # podAffinityTerm:
209 # labelSelector:
210 # matchExpressions:
211 # - key: app.kubernetes.io/name
212 # operator: In
213 # values:
214 # - ingress-nginx
215 # - key: app.kubernetes.io/instance
216 # operator: In
217 # values:
218 # - ingress-nginx
219 # - key: app.kubernetes.io/component
220 # operator: In
221 # values:
222 # - controller
223 # topologyKey: kubernetes.io/hostname
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400224
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400225 # # An example of required pod anti-affinity
226 # podAntiAffinity:
227 # requiredDuringSchedulingIgnoredDuringExecution:
228 # - labelSelector:
229 # matchExpressions:
230 # - key: app.kubernetes.io/name
231 # operator: In
232 # values:
233 # - ingress-nginx
234 # - key: app.kubernetes.io/instance
235 # operator: In
236 # values:
237 # - ingress-nginx
238 # - key: app.kubernetes.io/component
239 # operator: In
240 # values:
241 # - controller
242 # topologyKey: "kubernetes.io/hostname"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400243
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400244 # -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400245 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
246 ##
247 topologySpreadConstraints: []
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400248 # - maxSkew: 1
249 # topologyKey: topology.kubernetes.io/zone
250 # whenUnsatisfiable: DoNotSchedule
251 # labelSelector:
252 # matchLabels:
253 # app.kubernetes.io/instance: ingress-nginx-internal
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400254
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400255 # -- `terminationGracePeriodSeconds` to avoid killing pods before we are ready
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400256 ## wait up to five minutes for the drain of connections
257 ##
258 terminationGracePeriodSeconds: 300
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400259 # -- Node labels for controller pod assignment
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400260 ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
261 ##
262 nodeSelector:
263 kubernetes.io/os: linux
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400264 ## Liveness and readiness probe values
265 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
266 ##
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400267 ## startupProbe:
268 ## httpGet:
269 ## # should match container.healthCheckPath
270 ## path: "/healthz"
271 ## port: 10254
272 ## scheme: HTTP
273 ## initialDelaySeconds: 5
274 ## periodSeconds: 5
275 ## timeoutSeconds: 2
276 ## successThreshold: 1
277 ## failureThreshold: 5
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400278 livenessProbe:
279 httpGet:
280 # should match container.healthCheckPath
281 path: "/healthz"
282 port: 10254
283 scheme: HTTP
284 initialDelaySeconds: 10
285 periodSeconds: 10
286 timeoutSeconds: 1
287 successThreshold: 1
288 failureThreshold: 5
289 readinessProbe:
290 httpGet:
291 # should match container.healthCheckPath
292 path: "/healthz"
293 port: 10254
294 scheme: HTTP
295 initialDelaySeconds: 10
296 periodSeconds: 10
297 timeoutSeconds: 1
298 successThreshold: 1
299 failureThreshold: 3
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400300 # -- Path of the health check endpoint. All requests received on the port defined by
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400301 # the healthz-port parameter are forwarded internally to this path.
302 healthCheckPath: "/healthz"
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400303 # -- Address to bind the health check endpoint.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400304 # It is better to set this option to the internal node address
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +0400305 # if the Ingress-Nginx Controller is running in the `hostNetwork: true` mode.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400306 healthCheckHost: ""
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400307 # -- Annotations to be added to controller pods
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400308 ##
309 podAnnotations: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400310 replicaCount: 1
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +0400311 # -- Minimum available pods set in PodDisruptionBudget.
312 # Define either 'minAvailable' or 'maxUnavailable', never both.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400313 minAvailable: 1
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +0400314 # -- Maximum unavalaile pods set in PodDisruptionBudget. If set, 'minAvailable' is ignored.
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400315 # maxUnavailable: 1
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400316
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400317 ## Define requests resources to avoid probe issues due to CPU utilization in busy nodes
318 ## ref: https://github.com/kubernetes/ingress-nginx/issues/4735#issuecomment-551204903
319 ## Ideally, there should be no limits.
320 ## https://engineering.indeedblog.com/blog/2019/12/cpu-throttling-regression-fix/
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400321 resources:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400322 ## limits:
323 ## cpu: 100m
324 ## memory: 90Mi
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400325 requests:
326 cpu: 100m
327 memory: 90Mi
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400328 # Mutually exclusive with keda autoscaling
329 autoscaling:
330 enabled: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400331 annotations: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400332 minReplicas: 1
333 maxReplicas: 11
334 targetCPUUtilizationPercentage: 50
335 targetMemoryUtilizationPercentage: 50
336 behavior: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400337 # scaleDown:
338 # stabilizationWindowSeconds: 300
339 # policies:
340 # - type: Pods
341 # value: 1
342 # periodSeconds: 180
343 # scaleUp:
344 # stabilizationWindowSeconds: 300
345 # policies:
346 # - type: Pods
347 # value: 2
348 # periodSeconds: 60
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400349 autoscalingTemplate: []
350 # Custom or additional autoscaling metrics
351 # ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
352 # - type: Pods
353 # pods:
354 # metric:
355 # name: nginx_ingress_controller_nginx_process_requests_total
356 # target:
357 # type: AverageValue
358 # averageValue: 10000m
359
360 # Mutually exclusive with hpa autoscaling
361 keda:
362 apiVersion: "keda.sh/v1alpha1"
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400363 ## apiVersion changes with keda 1.x vs 2.x
364 ## 2.x = keda.sh/v1alpha1
365 ## 1.x = keda.k8s.io/v1alpha1
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400366 enabled: false
367 minReplicas: 1
368 maxReplicas: 11
369 pollingInterval: 30
370 cooldownPeriod: 300
371 restoreToOriginalReplicaCount: false
372 scaledObject:
373 annotations: {}
374 # Custom annotations for ScaledObject resource
375 # annotations:
376 # key: value
377 triggers: []
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400378 # - type: prometheus
379 # metadata:
380 # serverAddress: http://<prometheus-host>:9090
381 # metricName: http_requests_total
382 # threshold: '100'
383 # query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400384
385 behavior: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400386 # scaleDown:
387 # stabilizationWindowSeconds: 300
388 # policies:
389 # - type: Pods
390 # value: 1
391 # periodSeconds: 180
392 # scaleUp:
393 # stabilizationWindowSeconds: 300
394 # policies:
395 # - type: Pods
396 # value: 2
397 # periodSeconds: 60
398 # -- Enable mimalloc as a drop-in replacement for malloc.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400399 ## ref: https://github.com/microsoft/mimalloc
400 ##
401 enableMimalloc: true
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400402 ## Override NGINX template
403 customTemplate:
404 configMapName: ""
405 configMapKey: ""
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400406 service:
407 enabled: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400408 # -- If enabled is adding an appProtocol option for Kubernetes service. An appProtocol field replacing annotations that were
409 # using for setting a backend protocol. Here is an example for AWS: service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
410 # It allows choosing the protocol for each backend specified in the Kubernetes service.
411 # See the following GitHub issue for more details about the purpose: https://github.com/kubernetes/kubernetes/issues/40244
412 # Will be ignored for Kubernetes versions older than 1.20
413 ##
414 appProtocol: true
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400415 annotations: {}
416 labels: {}
417 # clusterIP: ""
418
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400419 # -- List of IP addresses at which the controller services are available
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400420 ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
421 ##
422 externalIPs: []
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400423 # -- Used by cloud providers to connect the resulting `LoadBalancer` to a pre-existing static IP according to https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
424 loadBalancerIP: ""
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400425 loadBalancerSourceRanges: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400426 enableHttp: true
427 enableHttps: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400428 ## Set external traffic policy to: "Local" to preserve source IP on providers supporting it.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400429 ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
430 # externalTrafficPolicy: ""
431
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400432 ## Must be either "None" or "ClientIP" if set. Kubernetes will default to "None".
433 ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400434 # sessionAffinity: ""
435
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400436 ## Specifies the health check node port (numeric port number) for the service. If healthCheckNodePort isn’t specified,
437 ## the service controller allocates a port from your cluster’s NodePort range.
438 ## Ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400439 # healthCheckNodePort: 0
440
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400441 # -- Represents the dual-stack-ness requested or required by this Service. Possible values are
442 # SingleStack, PreferDualStack or RequireDualStack.
443 # The ipFamilies and clusterIPs fields depend on the value of this field.
444 ## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
445 ipFamilyPolicy: "SingleStack"
446 # -- List of IP families (e.g. IPv4, IPv6) assigned to the service. This field is usually assigned automatically
447 # based on cluster configuration and the ipFamilyPolicy field.
448 ## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
449 ipFamilies:
450 - IPv4
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400451 ports:
452 http: 80
453 https: 443
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400454 targetPorts:
455 http: http
456 https: https
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400457 type: LoadBalancer
giof55ab362025-04-11 17:48:17 +0400458 extraPorts:
459 tcp: {}
460 udp: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400461 ## type: NodePort
462 ## nodePorts:
463 ## http: 32080
464 ## https: 32443
465 ## tcp:
466 ## 8080: 32808
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400467 nodePorts:
468 http: ""
469 https: ""
470 tcp: {}
471 udp: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400472 external:
473 enabled: true
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400474 internal:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400475 # -- Enables an additional internal load balancer (besides the external one).
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400476 enabled: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400477 # -- Annotations are mandatory for the load balancer to come up. Varies with the cloud service.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400478 annotations: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400479 # loadBalancerIP: ""
480
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400481 # -- Restrict access For LoadBalancer service. Defaults to 0.0.0.0/0.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400482 loadBalancerSourceRanges: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400483 ## Set external traffic policy to: "Local" to preserve source IP on
484 ## providers supporting it
485 ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
486 # externalTrafficPolicy: ""
487
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400488 # -- Custom port mapping for internal service
489 ports: {}
490 # http: 80
491 # https: 443
492
493 # -- Custom target port mapping for internal service
494 targetPorts: {}
495 # http: http
496 # https: https
497 # shareProcessNamespace enables process namespace sharing within the pod.
498 # This can be used for example to signal log rotation using `kill -USR1` from a sidecar.
499 shareProcessNamespace: false
500 # -- Additional containers to be added to the controller pod.
501 # See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400502 extraContainers: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400503 # - name: my-sidecar
504 # image: nginx:latest
505 # - name: lemonldap-ng-controller
506 # image: lemonldapng/lemonldap-ng-controller:0.2.0
507 # args:
508 # - /lemonldap-ng-controller
509 # - --alsologtostderr
510 # - --configmap=$(POD_NAMESPACE)/lemonldap-ng-configuration
511 # env:
512 # - name: POD_NAME
513 # valueFrom:
514 # fieldRef:
515 # fieldPath: metadata.name
516 # - name: POD_NAMESPACE
517 # valueFrom:
518 # fieldRef:
519 # fieldPath: metadata.namespace
520 # volumeMounts:
521 # - name: copy-portal-skins
522 # mountPath: /srv/var/lib/lemonldap-ng/portal/skins
523
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400524 # -- Additional volumeMounts to the controller main container.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400525 extraVolumeMounts: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400526 # - name: copy-portal-skins
527 # mountPath: /var/lib/lemonldap-ng/portal/skins
528
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400529 # -- Additional volumes to the controller pod.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400530 extraVolumes: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400531 # - name: copy-portal-skins
532 # emptyDir: {}
533
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400534 # -- Containers, which are run before the app containers are started.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400535 extraInitContainers: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400536 # - name: init-myservice
537 # image: busybox
538 # command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;']
539
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400540 # -- Modules, which are mounted into the core nginx image. See values.yaml for a sample to add opentelemetry module
541 extraModules: []
542 # - name: mytestmodule
543 # image: registry.k8s.io/ingress-nginx/mytestmodule
544 # containerSecurityContext:
545 # allowPrivilegeEscalation: false
546 #
547 # The image must contain a `/usr/local/bin/init_module.sh` executable, which
548 # will be executed as initContainers, to move its config files within the
549 # mounted volume.
550
551 opentelemetry:
552 enabled: false
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +0400553 image: registry.k8s.io/ingress-nginx/opentelemetry:v20230527@sha256:fd7ec835f31b7b37187238eb4fdad4438806e69f413a203796263131f4f02ed0
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400554 containerSecurityContext:
555 allowPrivilegeEscalation: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400556 admissionWebhooks:
557 annotations: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400558 # ignore-check.kube-linter.io/no-read-only-rootfs: "This deployment needs write access to root filesystem".
559
560 ## Additional annotations to the admission webhooks.
561 ## These annotations will be added to the ValidatingWebhookConfiguration and
562 ## the Jobs Spec of the admission webhooks.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400563 enabled: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400564 # -- Additional environment variables to set
565 extraEnvs: []
566 # extraEnvs:
567 # - name: FOO
568 # valueFrom:
569 # secretKeyRef:
570 # key: FOO
571 # name: secret-resource
572 # -- Admission Webhook failure policy to use
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400573 failurePolicy: Fail
574 # timeoutSeconds: 10
575 port: 8443
576 certificate: "/usr/local/certificates/cert"
577 key: "/usr/local/certificates/key"
578 namespaceSelector: {}
579 objectSelector: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400580 # -- Labels to be added to admission webhooks
581 labels: {}
582 # -- Use an existing PSP instead of creating one
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400583 existingPsp: ""
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400584 networkPolicyEnabled: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400585 service:
586 annotations: {}
587 # clusterIP: ""
588 externalIPs: []
589 # loadBalancerIP: ""
590 loadBalancerSourceRanges: []
591 servicePort: 443
592 type: ClusterIP
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400593 createSecretJob:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400594 securityContext:
595 allowPrivilegeEscalation: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400596 resources: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400597 # limits:
598 # cpu: 10m
599 # memory: 20Mi
600 # requests:
601 # cpu: 10m
602 # memory: 20Mi
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400603 patchWebhookJob:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400604 securityContext:
605 allowPrivilegeEscalation: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400606 resources: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400607 patch:
608 enabled: true
609 image:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400610 registry: registry.k8s.io
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400611 image: ingress-nginx/kube-webhook-certgen
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400612 ## for backwards compatibility consider setting the full image url via the repository value below
613 ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
614 ## repository:
Giorgi Lekveishvili0048a782023-06-20 18:32:21 +0400615 tag: v20230407
616 digest: sha256:543c40fd093964bc9ab509d3e791f9989963021f1e9e4c9c7b6700b02bfb227b
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400617 pullPolicy: IfNotPresent
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400618 # -- Provide a priority class name to the webhook patching job
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400619 ##
620 priorityClassName: ""
621 podAnnotations: {}
622 nodeSelector:
623 kubernetes.io/os: linux
624 tolerations: []
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400625 # -- Labels to be added to patch job resources
626 labels: {}
627 securityContext:
628 runAsNonRoot: true
629 runAsUser: 2000
630 fsGroup: 2000
631 # Use certmanager to generate webhook certs
632 certManager:
633 enabled: false
634 # self-signed root certificate
635 rootCert:
636 # default to be 5y
637 duration: ""
638 admissionCert:
639 # default to be 1y
640 duration: ""
641 # issuerRef:
642 # name: "issuer"
643 # kind: "ClusterIssuer"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400644 metrics:
645 port: 10254
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400646 portName: metrics
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400647 # if this port is changed, change healthz-port: in extraArgs: accordingly
648 enabled: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400649 service:
650 annotations: {}
651 # prometheus.io/scrape: "true"
652 # prometheus.io/port: "10254"
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400653 # -- Labels to be added to the metrics service resource
654 labels: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400655 # clusterIP: ""
656
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400657 # -- List of IP addresses at which the stats-exporter service is available
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400658 ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
659 ##
660 externalIPs: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400661 # loadBalancerIP: ""
662 loadBalancerSourceRanges: []
663 servicePort: 10254
664 type: ClusterIP
665 # externalTrafficPolicy: ""
666 # nodePort: ""
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400667 serviceMonitor:
668 enabled: false
669 additionalLabels: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400670 ## The label to use to retrieve the job name from.
671 ## jobLabel: "app.kubernetes.io/name"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400672 namespace: ""
673 namespaceSelector: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400674 ## Default: scrape .Release.Namespace only
675 ## To scrape all, use the following:
676 ## namespaceSelector:
677 ## any: true
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400678 scrapeInterval: 30s
679 # honorLabels: true
680 targetLabels: []
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400681 relabelings: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400682 metricRelabelings: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400683 prometheusRule:
684 enabled: false
685 additionalLabels: {}
686 # namespace: ""
687 rules: []
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400688 # # These are just examples rules, please adapt them to your needs
689 # - alert: NGINXConfigFailed
690 # expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
691 # for: 1s
692 # labels:
693 # severity: critical
694 # annotations:
695 # description: bad ingress config - nginx config test failed
696 # summary: uninstall the latest ingress changes to allow config reloads to resume
697 # - alert: NGINXCertificateExpiry
698 # expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
699 # for: 1s
700 # labels:
701 # severity: critical
702 # annotations:
703 # description: ssl certificate(s) will expire in less then a week
704 # summary: renew expiring certificates to avoid downtime
705 # - alert: NGINXTooMany500s
706 # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
707 # for: 1m
708 # labels:
709 # severity: warning
710 # annotations:
711 # description: Too many 5XXs
712 # summary: More than 5% of all requests returned 5XX, this requires your attention
713 # - alert: NGINXTooMany400s
714 # expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
715 # for: 1m
716 # labels:
717 # severity: warning
718 # annotations:
719 # description: Too many 4XXs
720 # summary: More than 5% of all requests returned 4XX, this requires your attention
721 # -- Improve connection draining when ingress controller pod is deleted using a lifecycle hook:
722 # With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
723 # to 300, allowing the draining of connections up to five minutes.
724 # If the active connections end before that, the pod will terminate gracefully at that time.
725 # To effectively take advantage of this feature, the Configmap feature
726 # worker-shutdown-timeout new value is 240s instead of 10s.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400727 ##
728 lifecycle:
729 preStop:
730 exec:
731 command:
732 - /wait-shutdown
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400733 priorityClassName: ""
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400734# -- Rollback limit
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400735##
736revisionHistoryLimit: 10
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400737## Default 404 backend
738##
739defaultBackend:
740 ##
741 enabled: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400742 name: defaultbackend
743 image:
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400744 registry: registry.k8s.io
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400745 image: defaultbackend-amd64
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400746 ## for backwards compatibility consider setting the full image url via the repository value below
747 ## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
748 ## repository:
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400749 tag: "1.5"
750 pullPolicy: IfNotPresent
751 # nobody user -> uid 65534
752 runAsUser: 65534
753 runAsNonRoot: true
754 readOnlyRootFilesystem: true
755 allowPrivilegeEscalation: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400756 # -- Use an existing PSP instead of creating one
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400757 existingPsp: ""
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400758 extraArgs: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400759 serviceAccount:
760 create: true
761 name: ""
762 automountServiceAccountToken: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400763 # -- Additional environment variables to set for defaultBackend pods
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400764 extraEnvs: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400765 port: 8080
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400766 ## Readiness and liveness probes for default backend
767 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
768 ##
769 livenessProbe:
770 failureThreshold: 3
771 initialDelaySeconds: 30
772 periodSeconds: 10
773 successThreshold: 1
774 timeoutSeconds: 5
775 readinessProbe:
776 failureThreshold: 6
777 initialDelaySeconds: 0
778 periodSeconds: 5
779 successThreshold: 1
780 timeoutSeconds: 5
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400781 # -- The update strategy to apply to the Deployment or DaemonSet
782 ##
783 updateStrategy: {}
784 # rollingUpdate:
785 # maxUnavailable: 1
786 # type: RollingUpdate
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400787
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400788 # -- `minReadySeconds` to avoid killing pods before we are ready
789 ##
790 minReadySeconds: 0
791 # -- Node tolerations for server scheduling to nodes with taints
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400792 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
793 ##
794 tolerations: []
795 # - key: "key"
796 # operator: "Equal|Exists"
797 # value: "value"
798 # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
799
800 affinity: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400801 # -- Security Context policies for controller pods
802 # See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
803 # notes on enabling and using sysctls
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400804 ##
805 podSecurityContext: {}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400806 # -- Security Context policies for controller main container.
807 # See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
808 # notes on enabling and using sysctls
809 ##
810 containerSecurityContext: {}
811 # -- Labels to add to the pod container metadata
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400812 podLabels: {}
813 # key: value
814
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400815 # -- Node labels for default backend pod assignment
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400816 ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
817 ##
818 nodeSelector:
819 kubernetes.io/os: linux
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400820 # -- Annotations to be added to default backend pods
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400821 ##
822 podAnnotations: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400823 replicaCount: 1
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400824 minAvailable: 1
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400825 resources: {}
826 # limits:
827 # cpu: 10m
828 # memory: 20Mi
829 # requests:
830 # cpu: 10m
831 # memory: 20Mi
832
833 extraVolumeMounts: []
834 ## Additional volumeMounts to the default backend container.
835 # - name: copy-portal-skins
836 # mountPath: /var/lib/lemonldap-ng/portal/skins
837
838 extraVolumes: []
839 ## Additional volumes to the default backend pod.
840 # - name: copy-portal-skins
841 # emptyDir: {}
842
843 autoscaling:
844 annotations: {}
845 enabled: false
846 minReplicas: 1
847 maxReplicas: 2
848 targetCPUUtilizationPercentage: 50
849 targetMemoryUtilizationPercentage: 50
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400850 service:
851 annotations: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400852 # clusterIP: ""
853
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400854 # -- List of IP addresses at which the default backend service is available
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400855 ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
856 ##
857 externalIPs: []
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400858 # loadBalancerIP: ""
859 loadBalancerSourceRanges: []
860 servicePort: 80
861 type: ClusterIP
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400862 priorityClassName: ""
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400863 # -- Labels to be added to the default backend resources
864 labels: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400865## 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
866rbac:
867 create: true
868 scope: false
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400869## If true, create & use Pod Security Policy resources
870## https://kubernetes.io/docs/concepts/policy/pod-security-policy/
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400871podSecurityPolicy:
872 enabled: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400873serviceAccount:
874 create: true
875 name: ""
876 automountServiceAccountToken: true
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400877 # -- Annotations for the controller service account
878 annotations: {}
879# -- Optional array of imagePullSecrets containing private registry credentials
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400880## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
881imagePullSecrets: []
882# - name: secretName
883
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400884# -- TCP service key-value pairs
885## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400886##
887tcp: {}
888# 8080: "default/example-tcp-svc:9000"
889
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400890# -- UDP service key-value pairs
891## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400892##
893udp: {}
894# 53: "kube-system/kube-dns:53"
895
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +0400896# -- Prefix for TCP and UDP ports names in ingress controller service
897## Some cloud providers, like Yandex Cloud may have a requirements for a port name regex to support cloud load balancer integration
898portNamePrefix: ""
899# -- (string) A base64-encoded Diffie-Hellman parameter.
900# This can be generated with: `openssl dhparam 4096 2> /dev/null | base64`
901## Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param
902dhParam: ""