-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvalues.yaml
More file actions
150 lines (130 loc) · 3.88 KB
/
Copy pathvalues.yaml
File metadata and controls
150 lines (130 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
image:
repository: kong/kong-gateway
tag: "3.9"
secretVolumes:
- kong-cluster-cert
admin:
enabled: false
env:
role: data_plane
database: "off"
cluster_mtls: pki
cluster_control_plane: xxxx.eu.cp0.konghq.com:443
cluster_server_name: xxxx.eu.cp0.konghq.com
cluster_telemetry_endpoint: xxxx.eu.tp0.konghq.com:443
cluster_telemetry_server_name: xxxx.eu.tp0.konghq.com
cluster_cert: /etc/secrets/kong-cluster-cert/tls.crt
cluster_cert_key: /etc/secrets/kong-cluster-cert/tls.key
lua_ssl_trusted_certificate: system
konnect_mode: "on"
vitals: "off"
upstream_keepalive_max_requests: "100000"
nginx_http_keepalive_requests: "100000"
proxy_access_log: "off"
dns_stale_ttl: "3600"
router_flavor: expressions
## Custom Nginx settings
nginx_worker_processes: "2" # match the CPU of the pods, 2
log_level: "notice"
tracing_sampling_rate: "0.01"
tracing_instrumentations: "off"
anonymous_reports: "off"
headers: "off"
## If using a LB in front
# real_ip_header: "X-Forwarded-For"
# trusted_ips: "0.0.0.0/0,::/0"
# real_ip_recursive: "on"
ingressController:
enabled: false
installCRDs: false
resources:
limits:
# Use only memory limit with same value as requests
memory: "4Gi"
requests:
cpu: 2
memory: "4Gi"
## Recommand sections:
# Kong Pod Autoscaling
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 5
## Otherwise for clusters that do support autoscaling/v2 or autoscaling/v2beta, use metrics
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
# could be adapted according to your traffic
averageUtilization: 75
# Kong Pod Disruption Budget
podDisruptionBudget:
enabled: true
minAvailable: "50%"
unhealthyPodEvictionPolicy: IfHealthyBudget
# Update strategy
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: "100%"
maxUnavailable: "0%"
# Affinity for pod assignment
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
## could be any label such as app.kubernetes.io/instance: "{{ .Release.Name }}"
- key: app
operator: In
values:
- kong
topologyKey: kubernetes.io/hostname
weight: 100
# Topology spread constraints for pod assignment (requires Kubernetes >= 1.19)
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "topology.kubernetes.io/zone"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
## could be any label such as app.kubernetes.io/instance: "{{ .Release.Name }}"
app: kong
# Certificate management
certificates:
enabled: true
# Set either `issuer` or `clusterIssuer` to the name of the desired cert manager issuer
# If left blank a built in self-signed issuer will be created and utilized
issuer: ""
clusterIssuer: ""
# Set proxy.enabled to true to issue default kong-proxy certificate with cert-manager
proxy:
enabled: true
commonName: "app.example"
# Remove the "[]" and uncomment/change the examples to add SANs
dnsNames: []
# - "app.example"
# - "*.apps.example"
# - "*.kong.example"
# Specify Kong proxy service configuration
proxy:
# Enable creating a Kubernetes service for the proxy
enabled: true
type: LoadBalancer
# Configures optional firewall rules and in the VPC network to only allow certain source ranges.
annotations: {}
# If terminating TLS at the ELB, the following annotations can be used
# "service.beta.kubernetes.io/azure-load-balancer-internal": false
# "service.beta.kubernetes.io/azure-load-balancer-ipv4": xx.xxx.xx.xx
labels:
enable-metrics: "true"
## Additional sections
# Tolerations for pod assignment
tolerations: []
# Node labels for pod assignment
nodeSelector: {}
# Service Monitor for Prometheus Operator
serviceMonitor: {}