-
Notifications
You must be signed in to change notification settings - Fork 44
/
ingress-nginx-helm-values.ftl.yaml
47 lines (47 loc) · 1.73 KB
/
ingress-nginx-helm-values.ftl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
controller:
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
watchIngressWithoutClass: true
admissionWebhooks:
enabled: false
kind: Deployment
service:
# Preserve client ip address
# https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
externalTrafficPolicy: Local
replicaCount: 2
<#if podResources == true>
resources:
# Be generous to our Single Point of failure
limits:
cpu: '1'
memory: 1Gi
requests:
cpu: 100m
memory: 90Mi
<#else>
<#-- Explicitly set to null, because the chart sets requests by default
https://github.com/kubernetes/ingress-nginx/blob/helm-chart-4.9.1/charts/ingress-nginx/values.yaml#L361 -->
resources: null
</#if>
ingressClassResource:
enabled: true
default: true
#extraArgs:
#default-ssl-certificate: "ingress-nginx/wildcard-cert"
config:
# settings for compression
use-gzip: "true"
enable-brotli: "true"
# permanent redirect from http to https
#force-ssl-redirect: "true"
# customize access log format to include requested hostname ($host)
# https://github.com/kubernetes/ingress-nginx/blob/controller-v1.2.1/docs/user-guide/nginx-configuration/log-format.md
log-format-upstream: '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$host" $request_length $request_time [$proxy_upstream_name] [$proxy_alternative_upstream_name] $upstream_addr $upstream_response_length $upstream_response_time $upstream_status $req_id'
<#if monitoring.active == true>
metrics:
enabled: true
serviceMonitor:
enabled: true
namespace: ${namePrefix}monitoring
</#if>