-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
397 lines (374 loc) · 11.7 KB
/
values.yaml
File metadata and controls
397 lines (374 loc) · 11.7 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
# Default values for typesense.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# @schema
# type: integer
# minimum: 1
# @schema
# -- Number of replicas for the Typesense deployment
replicaCount: 3
image:
# -- Docker image repository for Typesense
repository: typesense/typesense
# @schema
# enum: [Always, IfNotPresent, Never]
# @schema
# -- Image pull policy (Always, IfNotPresent, etc.)
pullPolicy: IfNotPresent
# -- Overrides the image tag. If left empty, it uses the appVersion from Chart.yaml
tag: ""
# -- Override the name of the release (optional)
nameOverride: ""
# -- Override the full name of the release (optional)
fullnameOverride: ""
# -- Termination grace period in seconds. Typesense recommends 300s to allow graceful shutdown.
terminationGracePeriodSeconds: 300
# -- Additional annotations to add to the Typesense pod(s)
podAnnotations: {}
# -- Additional labels to add to the Typesense pod(s)
podLabels: {}
podSecurityContext:
# -- Group ID for the filesystem of the Typesense container
fsGroup: 2000
# -- User ID for running the Typesense process
runAsUser: 10000
# -- Group ID for running the Typesense process
runAsGroup: 3000
# -- Ensure the container does not run as root
runAsNonRoot: true
securityContext:
# -- Prevent privilege escalation
allowPrivilegeEscalation: false
# -- Read-only root filesystem (Typesense only writes to data PVC)
readOnlyRootFilesystem: true
# -- Drop all Linux capabilities
capabilities:
drop:
- ALL
service:
# -- Kubernetes service type (ClusterIP, NodePort, LoadBalancer)
type: ClusterIP
# @schema
# type: integer
# minimum: 1
# maximum: 65535
# @schema
# -- Port that the Typesense service will listen on
port: 8108
ingress:
# -- Enable or disable Ingress for the application
enabled: false
# -- The name of the Ingress class to use (e.g., nginx)
className: "nginx"
# -- Extra annotations to add to the Ingress resource
annotations: {}
# -- List of hostnames the Ingress will route traffic for
hosts: []
# -- The URL path prefix for the application
prefix: "/"
gateway:
# -- Enable or disable Gateway API for the application
enabled: false
# -- List of hostnames the Gateway will route traffic for
hosts: []
# -- The URL path prefix for the application
prefix: "/"
# @schema
# properties:
# default:
# type: object
# description: The default Gateway reference this HTTPRoute attaches to.
# properties:
# name:
# type: string
# description: Name of the Gateway.
# namespace:
# type: string
# description: Namespace of the Gateway.
# default: istio-system
# required: [name]
# extras:
# type: array
# description: Additional Gateway references.
# items:
# type: object
# properties:
# name:
# type: string
# description: Name of the Gateway.
# namespace:
# type: string
# description: Namespace of the Gateway.
# default: istio-system
# required: [name]
# @schema
# -- (object) Configuration controlling which Gateway(s) this HTTPRoute attaches to.
parentRefs:
default:
name: ""
namespace: "istio-system"
extras: []
# -- Resource requests and limits for the Typesense container.
# Typesense requires at least 2 vCPUs to operate correctly. No CPU limit is
# set by default to avoid throttling during indexing and Raft catch-up.
resources:
requests:
cpu: 2000m
livenessProbe:
# -- Probe type: 'tcpSocket' or 'httpGet'.
# Default is tcpSocket to check only that the process is alive and listening.
# Avoid httpGet /health for liveness: Typesense returns 503 when the write
# queue exceeds --healthy-write-lag (default 500), which occurs normally
# during Raft catch-up after a restart, causing a liveness-triggered restart
# loop that prevents the cluster from ever recovering.
type: tcpSocket
httpGet:
path: /health
port: http
tcpSocket:
port: http
# -- Number of failed liveness checks before restarting the container
failureThreshold: 6
# -- Period (in seconds) to perform the liveness check
periodSeconds: 20
timeoutSeconds: 3
startupProbe:
# -- Probe type: 'httpGet' or 'tcpSocket'
type: httpGet
httpGet:
path: /health
port: http
tcpSocket:
port: http
# -- Number of failed startup checks before marking the container as unhealthy
failureThreshold: 60
# -- Period (in seconds) to perform the startup check
periodSeconds: 10
timeoutSeconds: 3
readinessProbe:
# -- Probe type: 'httpGet' or 'tcpSocket'
type: httpGet
httpGet:
path: /health
port: http
tcpSocket:
port: http
# -- Period (in seconds) to perform the readiness check
periodSeconds: 10
# -- Number of failed readiness checks before marking the pod as unready
failureThreshold: 12
timeoutSeconds: 3
# -- Node selector to schedule pods on specific nodes (optional)
nodeSelector: {}
# -- Tolerations for pod scheduling
tolerations: []
# @schema
# type: object
# @schema
# -- Affinity rules for pod scheduling. When unset or empty and replicaCount > 1,
# a soft pod anti-affinity on kubernetes.io/hostname is automatically applied. Set
# to a non-empty affinity object to override this default behavior.
affinity: {}
# -- Topology spread constraints for pod distribution across nodes/zones
topologySpreadConstraints: []
pdb:
# @schema
# type: boolean
# @schema
# -- Enable PodDisruptionBudget for Typesense StatefulSet. Automatically skipped when replicaCount is 1.
enabled: true
# @schema
# anyOf:
# - type: integer
# minimum: 0
# - enum: [auto]
# @schema
# -- (string/int) Maximum number of pods that can be unavailable during disruption.
# Set to "auto" (default) to auto-calculate as floor(replicaCount/2), preserving Raft quorum.
# Set to 0 to block all voluntary disruptions. Any positive value is used directly
# and must not exceed floor(replicaCount/2).
maxUnavailable: auto
# @schema
# type: object
# required:
# - type
# properties:
# type:
# description: "StatefulSet update strategy type. Use RollingUpdate for zero-downtime upgrades or OnDelete for manual pod-by-pod control."
# enum:
# - RollingUpdate
# - OnDelete
# rollingUpdate:
# type: object
# description: "Rolling update configuration. Only used when type is RollingUpdate."
# properties:
# maxUnavailable:
# description: "Maximum number of pods unavailable during a rolling update. Set to \"auto\" to auto-calculate as floor(replicaCount/2). Set to 0 to block all voluntary pod replacements. Must not exceed floor(replicaCount/2)."
# anyOf:
# - type: integer
# minimum: 0
# - enum: [auto]
# if:
# properties:
# type:
# const: RollingUpdate
# then:
# required:
# - rollingUpdate
# properties:
# rollingUpdate:
# required:
# - maxUnavailable
# @schema
# -- StatefulSet update strategy configuration.
# When type is RollingUpdate, rollingUpdate.maxUnavailable is required.
# When type is OnDelete, rollingUpdate is optional and ignored.
updateStrategy:
# -- StatefulSet update strategy type. Use RollingUpdate (default) for zero-downtime
# upgrades or OnDelete for manual pod-by-pod control.
type: RollingUpdate
rollingUpdate:
# -- (string/int) Maximum number of pods that can be unavailable during a rolling update.
# Set to "auto" (default) to auto-calculate as floor(replicaCount/2), preserving Raft quorum.
# Set to 0 to block all voluntary pod replacements. Any positive value is used directly
# and must not exceed floor(replicaCount/2). Ignored when updateStrategy.type is OnDelete.
maxUnavailable: auto
storage:
# -- Storage class to use for Persistent Volume Claims (PVC)
className:
# @schema
# type: string
# @schema
# -- Size of the persistent storage volume (e.g., 10Gi)
size: 10Gi
secrets:
# -- Name of the Kubernetes Secret to mount via envFrom. Defaults to <fullname>-secret
secretName: ""
# @schema
# type: boolean
# @schema
# -- Whether the secretRef in envFrom is optional (pods start even if secret is missing)
optional: true
externalSecret:
# -- Enable or disable ExternalSecret creation (requires external-secrets operator)
enabled: false
# -- The name of the ClusterSecretStore or SecretStore to use
storeName: ""
# -- The key path to extract secrets from
extractKey: ""
typesense:
cors:
# -- Enable CORS for browser/JS access
enabled: false
# -- List of allowed origins (no trailing slashes)
domains: []
cache:
# @schema
# type: [integer, null]
# minimum: 0
# @schema
# -- LRU cache size for search responses. Unset uses Typesense default (1000)
numEntries:
analytics:
# -- Enable aggregated search query analytics
enabled: false
# @schema
# type: [integer, null]
# minimum: 1
# @schema
# -- How often analytics are persisted to disk in seconds. Unset uses Typesense default (3600)
flushInterval:
snapshots:
# @schema
# type: [integer, null]
# minimum: 1
# @schema
# -- Replication log snapshot frequency in seconds. Unset uses Typesense default (3600)
intervalSeconds:
# @schema
# type: [integer, null]
# minimum: 1
# @schema
# -- Concurrent request handler threads. Unset uses Typesense default (NUM_CORES * 8)
threadPoolSize:
limits:
# @schema
# type: [integer, null]
# minimum: 0
# maximum: 100
# @schema
# -- Reject writes above this disk usage percentage. Unset uses Typesense default (100)
diskUsedMaxPercentage:
# @schema
# type: [integer, null]
# minimum: 0
# maximum: 100
# @schema
# -- Reject writes above this memory usage percentage. Unset uses Typesense default (100)
memoryUsedMaxPercentage:
health:
# @schema
# type: [integer, null]
# minimum: 0
# @schema
# -- Update lag threshold before rejecting reads. Unset uses Typesense default (1000)
readLag:
# @schema
# type: [integer, null]
# minimum: 0
# @schema
# -- Update lag threshold before rejecting writes. Unset uses Typesense default (500)
writeLag:
logging:
# @schema
# type: [integer, null]
# @schema
# -- Threshold in ms for slow request logging (-1 disables). Unset uses Typesense default (-1)
slowRequestsTimeMs:
# -- Log search request payloads
enableSearchLogging: false
# -- Extra command-line arguments for Typesense server (e.g., ["--filter-by-max-ops=200"])
extraArgs: []
# -- Extra environment variables for the Typesense container
extraEnv: []
serviceAccount:
# @schema
# type: boolean
# @schema
# -- Whether to create a ServiceAccount
create: true
# -- Name of the ServiceAccount. Defaults to fullname
name: ""
# -- Annotations to add to the ServiceAccount (e.g., for IRSA)
annotations: {}
# -- Whether to automount the ServiceAccount token
automountServiceAccountToken: false
metrics:
# @schema
# type: boolean
# @schema
# -- Enable Prometheus metrics sidecar
enabled: false
image:
# -- Metrics exporter image repository
repository: imatefx/typesense-prometheus-exporter
# -- Metrics exporter image tag
tag: "v0.1.5"
# -- Image pull policy for metrics exporter
pullPolicy: IfNotPresent
# @schema
# type: integer
# minimum: 1
# maximum: 65535
# @schema
# -- Port for Prometheus metrics endpoint
port: 8888
# -- Resource requests and limits for the metrics sidecar
resources: {}
serviceMonitor:
# -- Enable ServiceMonitor for Prometheus scraping
enabled: false
# -- Scrape interval
interval: 30s
# -- Additional labels for ServiceMonitor
labels: {}