-
-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathvalues.yaml
More file actions
567 lines (545 loc) · 16.4 KB
/
Copy pathvalues.yaml
File metadata and controls
567 lines (545 loc) · 16.4 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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
parseable:
image:
repository: parseable/parseable
tag: "v2.8.0"
pullPolicy: Always
## object store can be local-store, s3-store, blob-store or gcs-store.
store: local-store
## Set to true if you want to deploy Parseable in a HA mode (multiple ingestors + hot tier)
## Please note that highAvailability is not supported in local mode
highAvailability:
enabled: true
ingestor:
affinity: {}
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchLabels:
# app: parseable
# component: ingestor
# topologyKey: kubernetes.io/hostname
port: 8000
extraLabels:
app: parseable
podAnnotations: {}
nodeSelector: {}
tolerations: []
labels:
app: parseable
component: ingestor
count: 3
env:
RUST_LOG: warn
## Use this endpoint to send events to ingestors
## Console (UI) is available on the other service (that points to the query pod)
service:
type: ClusterIP
port: 80
readinessProbe:
httpGet:
path: /api/v1/readiness
port: 8000
resources:
limits:
cpu: 500m
memory: 4Gi
requests:
cpu: 250m
memory: 1Gi
## Add environment variables to the Parseable Deployment
env:
RUST_LOG: warn
## Enable to create a log stream and then add retention configuration
## for that log stream
# logstream:
# - name: "vectordemo"
# retention:
# action: "delete"
# duration: "30d"
# - name: "fluentbitdemo"
# retention:
# action: "delete"
# duration: "30d"
## enable persistence using PVC for the Data and Staging directories
## Note that Data directory is needed only for local mode
persistence:
staging:
enabled: true
storageClass: ""
accessMode: ReadWriteOnce
size: 5Gi
ingestor:
enabled: false
storageClass: ""
accessMode: ReadWriteOnce
size: 5Gi
data:
enabled: false
storageClass: ""
accessMode: ReadWriteOnce
size: 5Gi
## enabling the disk on querier adds the hot-tier.
## local-store is not supported on hot-tier.
querier:
enabled: false
storageClass: ""
accessMode: ReadWriteOnce
size: 100Gi
## comment out the secrets depending upon deployment option
## localModeSecret if store is set to local
## blobModeSecret if store is set to blob-store
## s3ModeSecret if store is set to s3-store
localModeSecret:
enabled: false
secrets:
- name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- staging.dir
- fs.dir
blobModeSecret:
enabled: false
secrets:
- name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- azr.access_key
- azr.account
- azr.container
- azr.url
s3ModeSecret:
enabled: false
secrets:
- name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- staging.dir
- fs.dir
- s3.url
- s3.access.key
- s3.secret.key
- s3.bucket
- s3.region
gcsModeSecret:
enabled: true
auth:
secret_name: parseable-env-secret
secret_key: key.json
mount_path: /var/secrets/google
secrets:
- name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- staging.dir
- fs.dir
- gcs.url
- gcs.bucket
serviceAccount:
create: true
name: "parseable"
annotations: {}
nodeSelector: {}
service:
type: ClusterIP
port: 80
readinessProbe:
httpGet:
path: /api/v1/readiness
port: 8000
toleration: []
resources:
limits:
cpu: 500m
memory: 4Gi
requests:
cpu: 250m
memory: 1Gi
## works only when highAvailability is enabled
## Set it to true if you want to deploy Parseable
## Query node with a sidecar
sidecar:
enabled: false
image:
repository: busybox
tag: latest
pullPolicy: IfNotPresent
command: []
args: []
env:
RUST_LOG: warn
ports: 8000
volumeMounts:
- name: test-volume
mountPath: /parseable/test
volumeClaimTemplates:
- metadata:
name: test-volume
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
resources:
limits:
cpu: 500m
memory: 4Gi
requests:
cpu: 250m
memory: 1Gi
securityContext:
allowPrivilegeEscalation: false
podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/port: "80"
prometheus.io/path: "/api/v1/metrics"
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: "Always"
nameOverride: ""
fullnameOverride: ""
affinity: {}
podLabels:
app: parseable
component: query
tolerations: []
## Use this section to create ServiceMonitor object for
## this Parseable deployment. Read more on ServiceMonitor
## here: https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.ServiceMonitor
metrics:
serviceMonitor:
enabled: false
labels: {}
namespace: ""
spec:
jobLabel: ""
targetLabels: []
podTargetLabels: []
endpoints: []
selector: {}
namespaceSelector: {}
sampleLimit: 0
scrapeProtocols: []
targetLimit: 0
labelLimit: 0
labelNameLengthLimit: 0
labelValueLengthLimit: 0
keepDroppedTargets: 0
attachMetadata: {}
scrapeClass: ""
bodySizeLimit: {}
kafkaConnector:
enabled: false
env:
# General Kafka Configuration
P_KAFKA_BOOTSTRAP_SERVERS: "my-kafka.kafka.svc.cluster.local:9092" # Comma-separated list of Kafka bootstrap servers
P_KAFKA_PARTITION_LISTENER_CONCURRENCY: "2" # Number of parallel threads for Kafka partition listeners
P_KAFKA_CONSUMER_TOPICS: "test-log-stream-0,test-log-stream-1"
# P_KAFKA_CLIENT_ID: "parseable-connect" # Client ID for Kafka connection
# P_CONNECTOR_BAD_DATA_POLICY: "fail" # Default Policy for handling bad data
# Consumer Configurations. These config are Default Parseable KafkaConnector configs. Change only if necessary.
# P_KAFKA_CONSUMER_GROUP_ID: "parseable-connect-cg"
# P_KAFKA_CONSUMER_BUFFER_SIZE: "10000"
# P_KAFKA_CONSUMER_BUFFER_TIMEOUT: "10000ms"
# P_KAFKA_CONSUMER_SESSION_TIMEOUT: "60000"
# P_KAFKA_CONSUMER_HEARTBEAT_INTERVAL: "3000"
# P_KAFKA_CONSUMER_PARTITION_STRATEGY: "roundrobin,range"
# P_KAFKA_CONSUMER_MAX_POLL_INTERVAL: "300000"
# P_KAFKA_CONSUMER_ENABLE_AUTO_OFFSET_STORE: "true"
# P_KAFKA_CONSUMER_AUTO_OFFSET_RESET: "earliest"
# P_KAFKA_CONSUMER_FETCH_MIN_BYTES: "1"
# P_KAFKA_CONSUMER_FETCH_MAX_BYTES: "52428800"
# P_KAFKA_CONSUMER_FETCH_MAX_WAIT: "500"
# P_KAFKA_CONSUMER_MAX_PARTITION_FETCH_BYTES: "1048576"
# P_KAFKA_CONSUMER_QUEUED_MIN_MESSAGES: "100000"
# P_KAFKA_CONSUMER_QUEUED_MAX_MESSAGES_KBYTES: "65536"
# P_KAFKA_CONSUMER_ENABLE_PARTITION_EOF: "false"
# P_KAFKA_CONSUMER_CHECK_CRCS: "false"
# P_KAFKA_CONSUMER_ISOLATION_LEVEL: "read_committed"
# P_KAFKA_CONSUMER_FETCH_MESSAGE_MAX_BYTES: "1048576"
# P_KAFKA_CONSUMER_STATS_INTERVAL: "10000"
# Security Configuration Options - By Default PLAINTEXT
# Option 1: SSL Encryption Only
# P_KAFKA_SECURITY_PROTOCOL: "SSL"
# P_KAFKA_SSL_CA_LOCATION: "/etc/ssl/certs/ca-certificates.crt"
# P_KAFKA_SSL_CERTIFICATE_LOCATION: "/etc/ssl/certs/client-cert.pem"
# P_KAFKA_SSL_KEY_LOCATION: "/etc/ssl/private/client-key.pem"
# P_KAFKA_SSL_KEY_PASSWORD: "my-key-password" # Optional: only if key is password protected
# Option 2: SASL Authentication with SSL Encryption
# P_KAFKA_SECURITY_PROTOCOL: "SASL_SSL"
# P_KAFKA_SSL_CA_LOCATION: "/etc/ssl/certs/ca-certificates.crt"
# P_KAFKA_SASL_MECHANISM: "SCRAM-SHA-512" # Can also be PLAIN, SCRAM-SHA-256, or GSSAPI
# P_KAFKA_SASL_USERNAME: "kafka-user"
# P_KAFKA_SASL_PASSWORD: "kafka-password"
# Option 3: SASL Authentication without Encryption
# P_KAFKA_SECURITY_PROTOCOL: "SASL_PLAINTEXT"
# P_KAFKA_SASL_MECHANISM: "PLAIN" # Can also be SCRAM-SHA-256, SCRAM-SHA-512, or GSSAPI
# P_KAFKA_SASL_USERNAME: "kafka-user"
# P_KAFKA_SASL_PASSWORD: "kafka-password"
# Option 4: OAuth Bearer Token Authentication (Not supported yet)
# P_KAFKA_SECURITY_PROTOCOL: "SASL_SSL"
# P_KAFKA_SASL_MECHANISM: "OAUTHBEARER"
# P_KAFKA_OAUTH_TOKEN_ENDPOINT: "https://oauth.example.com/token"
# P_KAFKA_OAUTH_CLIENT_ID: "kafka-client"
# P_KAFKA_OAUTH_CLIENT_SECRET: "client-secret"
# P_KAFKA_OAUTH_SCOPE: "kafka-access" # Optional: only if required by OAuth provider
## Default values for Vector
# See Vector helm documentation to learn more:
# https://vector.dev/docs/setup/installation/package-managers/helm/
vector:
enabled: false
role: "Agent"
rollWorkload: true
image:
repository: timberio/vector
pullPolicy: IfNotPresent
pullSecrets: []
tag: ""
sha: ""
replicas: 1
podManagementPolicy: OrderedReady
podDisruptionBudget:
enabled: false
minAvailable: 1
maxUnavailable:
rbac:
create: true
serviceAccount:
create: true
annotations: {}
name:
automountToken: true
podLabels:
vector.dev/exclude: "true"
args:
- --config-dir
- "/etc/vector/"
terminationGracePeriodSeconds: 60
service:
enabled: true
type: "ClusterIP"
annotations: {}
topologyKeys: []
ports: []
externalTrafficPolicy: ""
loadBalancerIP: ""
ipFamilyPolicy: ""
ipFamilies: []
serviceHeadless:
enabled: true
dnsPolicy: ClusterFirst
customConfig:
data_dir: /vector-data-dir
api:
enabled: true
address: 127.0.0.1:8686
playground: false
sources:
kubernetes_logs:
type: kubernetes_logs
sinks:
parseable:
type: http
method: post
batch:
max_bytes: 10485760
max_events: 1000
timeout_secs: 10
compression: gzip
inputs:
- kubernetes_logs
encoding:
codec: json
uri: "http://parseable.parseable.svc.cluster.local/api/v1/ingest"
auth:
strategy: basic
user: admin
password: admin
request:
headers:
X-P-Stream: vectordemo
healthcheck:
enabled: true
path: "http://parseable.parseable.svc.cluster.local/api/v1/liveness"
port: 80
# Default values for fluent-bit.
# See fluent-bit helm documentation to learn more:
# https://github.com/fluent/helm-charts/tree/main/charts/fluent-bit
fluent-bit:
enabled: false
kind: DaemonSet
serverHost: parseable-ingestor-service.parseable.svc.cluster.local
serverUsername: admin
serverPassword: admin
serverStream: $NAMESPACE
excludeNamespaces: kube-system, default
replicaCount: 1
image:
repository: parseable/fluent-bit
tag: "v2"
pullPolicy: Always
testFramework:
enabled: true
image:
repository: busybox
pullPolicy: Always
tag: latest
serviceAccount:
create: true
annotations: {}
name:
rbac:
create: true
nodeAccess: false
eventsAccess: true
dnsPolicy: ClusterFirst
service:
type: ClusterIP
port: 2020
loadBalancerClass:
loadBalancerSourceRanges: []
labels: {}
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /api/v1/health
port: http
flush: 1
metricsPort: 2020
## https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file
config:
service: |
[SERVICE]
Daemon Off
Flush {{ .Values.flush }}
Log_Level {{ .Values.logLevel }}
Parsers_File parsers.conf
Parsers_File custom_parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port {{ .Values.metricsPort }}
Health_Check On
## https://docs.fluentbit.io/manual/pipeline/inputs
inputs: |
[INPUT]
Name tail
Path /var/log/containers/*.log
multiline.parser docker, cri
Tag kube.*
Mem_Buf_Limit 5MB
Skip_Long_Lines On
# [INPUT]
# Name tail
# Path /var/log/containers/{NGINX_POD_NAME}-*.log
# Parser nginx_access
# Tag kube.*
# Mem_Buf_Limit 5MB
# Skip_Long_Lines On
# [INPUT]
# Name tail
# Path /var/log/containers/{NGINX_POD_NAME}-*.log
# Parser nginx_error
# Tag kube.*
# Mem_Buf_Limit 5MB
# Skip_Long_Lines On
[INPUT]
name kubernetes_events
tag k8s_events
[INPUT]
Name systemd
Tag host.*
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
Read_From_Tail On
## https://docs.fluentbit.io/manual/pipeline/filters
filters: |
[FILTER]
Name kubernetes
Match kube.*
Merge_Log On
Keep_Log Off
K8S-Logging.Parser On
K8S-Logging.Exclude On
## https://docs.fluentbit.io/manual/pipeline/outputs
outputs: |
[OUTPUT]
Name parseable
Match kube.*
Server_Host {{ .Values.serverHost }}
Username {{ .Values.serverUsername }}
Password {{ .Values.serverPassword }}
Server_Port 80
Stream {{ .Values.serverStream }}
Exclude_Namespaces {{ .Values.excludeNamespaces }}
[OUTPUT]
Name parseable
Match k8s_events
Server_Host {{ .Values.serverHost }}
Server_Port 80
Username {{ .Values.serverUsername }}
Password {{ .Values.serverPassword }}
Stream k8s-events
upstream: {}
customParsers: |
[PARSER]
Name docker_no_time
Format json
Time_Keep Off
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
# [PARSER]
# Name nginx_error
# Format regex
# Regex ^(?<timestamp>\S+Z) stderr F (?<error_timestamp>\S+ \S+) \[(?<log_level>\S+)\] (?<process_id>\d+#\d+): \*(?<request_id>\d+) (?<error_message>.*?) client: (?<client_ip>\S+), server: (?<server_name>\S+), request: "(?<request_method>\S+) (?<request_path>\S+) HTTP/\S+", upstream: "(?<upstream_url>[^"]+)", host: "(?<host>\S+)"$
# Time_Key timestamp
# Time_Format %Y/%m/%d %H:%M:%S
# [PARSER]
# Name nginx_access
# Format regex
# Regex (?<remote_addr>[^ ]*) - (?<remote_user>[^ ]*) \[(?<timestamp>[^\]]*)\] "(?<method>\S+)(?: +(?<request>[^\"]*?)(?: +\S*)?)?" (?<status>[^ ]*) (?<body_bytes_sent>[^ ]*) "(?<http_referer>[^\"]*)" "(?<http_user_agent>[^\"]*)" (?<request_length>[^ ]*) (?<request_time>[^ ]*) \[(?<proxy_upstream_name>[^ ]*)\] \[(?<proxy_alternative_upstream_name>[^ ]*)\] (?<upstream_addr>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<upstream_response_length>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<upstream_response_time>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<upstream_status>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<req_id>[^ ]*)
# Time_Key timestamp
# Time_Format %d/%b/%Y:%H:%M:%S %z
# The config volume is mounted by default, either to the existingConfigMap value, or the default of "fluent-bit.fullname"
volumeMounts:
- name: config
mountPath: /fluent-bit/etc/fluent-bit.conf
subPath: fluent-bit.conf
- name: config
mountPath: /fluent-bit/etc/custom_parsers.conf
subPath: custom_parsers.conf
daemonSetVolumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: etcmachineid
hostPath:
path: /etc/machine-id
type: File
daemonSetVolumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: etcmachineid
mountPath: /etc/machine-id
readOnly: true
logLevel: info