-
Notifications
You must be signed in to change notification settings - Fork 164
/
values.yaml
1654 lines (1390 loc) · 46.7 KB
/
values.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
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
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
image:
repository: quay.io/cortexproject/cortex
# -- Allows you to override the cortex version in this chart. Use at your own risk.
tag: ""
pullPolicy: IfNotPresent
# -- Optionally specify an array of imagePullSecrets.
# Secrets must be manually created in the namespace.
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
pullSecrets: []
# -- Kubernetes cluster DNS domain
clusterDomain: cluster.local
ingress:
enabled: false
ingressClass:
enabled: false
name: "nginx"
annotations: {}
hosts:
- host: chart-example.local
paths:
- /
tls: []
serviceAccount:
create: true
name:
annotations: {}
automountServiceAccountToken: true
useConfigMap: false
useExternalConfig: false
externalConfigSecretName: 'secret-with-config.yaml'
externalConfigVersion: '0'
config:
auth_enabled: false
api:
prometheus_http_prefix: '/prometheus'
# -- Use GZIP compression for API responses. Some endpoints serve large YAML or JSON blobs
# which can benefit from compression.
response_compression_enabled: true
ingester:
lifecycler:
# -- We don't want to join immediately, but wait a bit to see other ingesters and their tokens first.
# It can take a while to have the full picture when using gossip
join_after: 10s
# -- To avoid generating same tokens by multiple ingesters, they can "observe" the ring for a while,
# after putting their own tokens into it. This is only useful when using gossip, since multiple
# ingesters joining at the same time can have conflicting tokens if they don't see each other yet.
observe_period: 10s
# -- Duration to sleep for before exiting, to ensure metrics are scraped.
final_sleep: 30s
num_tokens: 512
ring:
# -- Ingester replication factor per default is 3
replication_factor: 3
kvstore:
store: "memberlist"
limits:
# -- Enforce that every sample has a metric name
enforce_metric_name: true
reject_old_samples: true
reject_old_samples_max_age: 168h
max_query_lookback: 0s
server:
http_listen_port: 8080
grpc_listen_port: 9095
grpc_server_max_recv_msg_size: 10485760
grpc_server_max_send_msg_size: 10485760
grpc_server_max_concurrent_streams: 10000
ingester_client:
grpc_client_config:
max_recv_msg_size: 10485760
max_send_msg_size: 10485760
blocks_storage:
tsdb:
dir: /data/tsdb
bucket_store:
sync_dir: /data/tsdb-sync
bucket_index:
enabled: true
# -- https://cortexmetrics.io/docs/configuration/configuration-file/#store_gateway_config
store_gateway:
sharding_enabled: false
distributor:
# -- Distribute samples based on all labels, as opposed to solely by user and
# metric name.
shard_by_all_labels: true
pool:
health_check_ingesters: true
memberlist:
bind_port: 7946
# -- the service name of the memberlist
# if using memberlist discovery
join_members:
- '{{ include "cortex.fullname" $ }}-memberlist'
querier:
active_query_tracker_dir: /data/active-query-tracker
# -- Comma separated list of store-gateway addresses in DNS Service Discovery
# format. This option should is set automatically when using the blocks storage and the
# store-gateway sharding is disabled (when enabled, the store-gateway instances
# form a ring and addresses are picked from the ring).
# @default -- automatic
store_gateway_addresses: |-
{{ if not .Values.config.store_gateway.sharding_enabled -}}
dns+{{ include "cortex.storeGatewayFullname" $ }}-headless:9095
{{- end }}
query_range:
split_queries_by_interval: 24h
align_queries_with_step: true
cache_results: true
results_cache:
cache:
memcached:
expiration: 1h
memcached_client:
timeout: 1s
ruler:
enable_alertmanager_discovery: false
# -- Enable the experimental ruler config api.
enable_api: true
runtime_config:
file: /etc/cortex-runtime-config/runtime_config.yaml
alertmanager:
# -- Enable alertmanager gossip cluster
# -- Disable alertmanager gossip cluster by setting empty listen_address to empty string
cluster:
listen_address: '0.0.0.0:9094'
# -- Enable the experimental alertmanager config api.
enable_api: false
external_url: '/api/prom/alertmanager'
frontend:
log_queries_longer_than: 10s
runtimeconfigmap:
# -- If true, a configmap for the `runtime_config` will be created.
# If false, the configmap _must_ exist already on the cluster or pods will fail to create.
create: true
annotations: {}
# -- https://cortexmetrics.io/docs/configuration/arguments/#runtime-configuration-file
runtime_config: {}
alertmanager:
enabled: true
replicas: 1
statefulSet:
# -- If true, use a statefulset instead of a deployment for pod management.
# This is useful for using a persistent volume for storing silences between restarts.
enabled: false
service:
annotations: {}
labels: {}
serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
name: ""
serviceMonitor:
enabled: false
additionalLabels: {}
relabelings: []
metricRelabelings: []
# -- Additional endpoint configuration https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#endpoint
extraEndpointSpec: {}
podTargetLabels: []
resources: {}
# -- Additional Cortex container arguments, e.g. log level (debug, info, warn, error)
extraArgs: {}
# -- Pod Labels
podLabels: {}
# -- Pod Annotations
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
nodeSelector: {}
topologySpreadConstraints: []
affinity: {}
annotations: {}
persistentVolume:
# -- If true and alertmanager.statefulSet.enabled is true,
# Alertmanager will create/use a Persistent Volume Claim
# If false, use emptyDir
enabled: true
# -- Alertmanager data Persistent Volume Claim annotations
annotations: {}
# -- Alertmanager data Persistent Volume access modes
# Must match those of existing PV or dynamic provisioner
# Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
accessModes:
- ReadWriteOnce
# -- Alertmanager data Persistent Volume size
size: 2Gi
# -- Subdirectory of Alertmanager data Persistent Volume to mount
# Useful if the volume's root directory is not empty
subPath: ''
# -- Alertmanager data Persistent Volume Storage Class
# If defined, storageClassName: <storageClass>
# If set to "-", storageClassName: "", which disables dynamic provisioning
# If undefined (the default) or set to null, no storageClassName spec is
# set, choosing the default provisioner.
storageClass: null
startupProbe:
httpGet:
path: /ready
port: http-metrics
failureThreshold: 10
livenessProbe:
httpGet:
path: /ready
port: http-metrics
readinessProbe:
httpGet:
path: /ready
port: http-metrics
securityContext: {}
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
# -- Tolerations for pod assignment
# ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
# -- If not set then a PodDisruptionBudget will not be created
podDisruptionBudget:
maxUnavailable: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
statefulStrategy:
type: RollingUpdate
terminationGracePeriodSeconds: 60
# -- Init containers to be added to the cortex pod.
initContainers: []
# -- Additional containers to be added to the cortex pod.
extraContainers: []
# -- Additional volumes to the cortex pod.
extraVolumes: []
# -- Extra volume mounts that will be added to the cortex container
extraVolumeMounts: []
# -- Additional ports to the cortex services. Useful to expose extra container ports.
extraPorts: []
# -- Extra env variables to pass to the cortex container
env: []
sidecar:
# -- Enable sidecar that collect the configmaps with specified label and stores the included files them into the respective folders
enabled: false
image:
repository: kiwigrid/k8s-sidecar
tag: 1.19.5
sha: ""
imagePullPolicy: IfNotPresent
resources: {}
# -- Set to true to skip tls verification for kube api calls
skipTlsVerify: false
# -- A value of true will produce unique filenames to avoid issues when duplicate data keys exist between ConfigMaps
# and/or Secrets within the same or multiple Namespaces.
enableUniqueFilenames: false
# -- Label that should be used for filtering
label: cortex_alertmanager
# -- Determines how kopf-k8s-sidecar will run. If WATCH it will run like a normal operator forever.
# If LIST it will gather the matching configmaps and secrets currently present,
# write those files to the destination directory and die
watchMethod: ""
# -- The value for the label you want to filter your resources on.
# Don't set a value to filter by any value
labelValue: ""
# -- Folder where the files should be placed.
folder: /data
# -- The default folder name, it will create a subfolder under the `folder` and put rules in there instead
defaultFolderName: ""
# -- The Namespace(s) from which resources will be watched.
# For multiple namespaces, use a comma-separated string like "default,test".
# If not set or set to ALL, it will watch all Namespaces.
searchNamespace: ""
# -- The annotation the sidecar will look for in ConfigMaps and/or Secrets to override the destination folder for files.
# If the value is a relative path, it will be relative to FOLDER
folderAnnotation: "k8s-sidecar-target-directory"
# -- The resource type that the operator will filter for. Can be configmap, secret or both
resource: "both"
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
distributor:
enabled: true
replicas: 2
service:
annotations: {}
labels: {}
serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
name: ""
serviceMonitor:
enabled: false
additionalLabels: {}
relabelings: []
metricRelabelings: []
# -- Additional endpoint configuration https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#endpoint
extraEndpointSpec: {}
podTargetLabels: []
resources: {}
# -- Additional Cortex container arguments, e.g. log.level (debug, info, warn, error)
extraArgs: {}
# -- Pod Labels
podLabels: {}
# -- Pod Annotations
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
nodeSelector: {}
topologySpreadConstraints: []
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- distributor
topologyKey: 'kubernetes.io/hostname'
annotations: {}
autoscaling:
# -- Creates a HorizontalPodAutoscaler for the distributor pods.
enabled: false
minReplicas: 2
maxReplicas: 30
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 0 # 80
# -- Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior
behavior: {}
# -- Optional custom and external metrics for the distributor pods to scale on
# In order to use this option , define a list of of specific following https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics and https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects
extraMetrics: []
persistentVolume:
subPath:
startupProbe:
httpGet:
path: /ready
port: http-metrics
failureThreshold: 10
livenessProbe:
httpGet:
path: /ready
port: http-metrics
readinessProbe:
httpGet:
path: /ready
port: http-metrics
securityContext: {}
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 60
tolerations: []
podDisruptionBudget:
maxUnavailable: 1
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
lifecycle: {}
ingester:
enabled: true
replicas: 3
statefulSet:
# -- If true, use a statefulset instead of a deployment for pod management.
# This is useful when using WAL
enabled: false
# -- ref: https://cortexmetrics.io/docs/guides/ingesters-scaling-up-and-down/#scaling-down and https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies for scaledown details
podManagementPolicy: OrderedReady
service:
annotations: {}
labels: {}
serviceAccount:
name:
serviceMonitor:
enabled: false
additionalLabels: {}
relabelings: []
metricRelabelings: []
# -- Additional endpoint configuration https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#endpoint
extraEndpointSpec: {}
podTargetLabels: []
resources: {}
# -- Additional Cortex container arguments, e.g. log.level (debug, info, warn, error)
extraArgs: {}
# -- Pod Labels
podLabels: {}
# -- Pod Annotations
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
nodeSelector: {}
topologySpreadConstraints: []
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- ingester
topologyKey: 'kubernetes.io/hostname'
annotations: {}
autoscaling:
enabled: false
minReplicas: 3
maxReplicas: 30
targetMemoryUtilizationPercentage: 80
behavior:
scaleDown:
# -- see https://cortexmetrics.io/docs/guides/ingesters-scaling-up-and-down/#scaling-down for scaledown details
policies:
- type: Pods
value: 1
# set to no less than 2x the maximum between -blocks-storage.bucket-store.sync-interval and -compactor.cleanup-interval
periodSeconds: 1800
# -- uses metrics from the past 1h to make scaleDown decisions
stabilizationWindowSeconds: 3600
scaleUp:
# -- This default scaleup policy allows adding 1 pod every 30 minutes.
# Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior
policies:
- type: Pods
value: 1
periodSeconds: 1800
# -- Optional custom and external metrics for the ingester pods to scale on
# In order to use this option , define a list of of specific following https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics and https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects
extraMetrics: []
lifecycle:
# -- The /shutdown preStop hook is recommended as part of the ingester
# scaledown process, but can be removed to optimize rolling restarts in
# instances that will never be scaled down.
# https://cortexmetrics.io/docs/guides/ingesters-scaling-up-and-down/#scaling-down
preStop:
httpGet:
path: "/ingester/shutdown"
port: http-metrics
persistentVolume:
# -- If true and ingester.statefulSet.enabled is true,
# Ingester will create/use a Persistent Volume Claim
# If false, use emptyDir
enabled: true
# -- Ingester data Persistent Volume Claim annotations
annotations: {}
# -- Ingester data Persistent Volume access modes
# Must match those of existing PV or dynamic provisioner
# Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
accessModes:
- ReadWriteOnce
# -- Ingester data Persistent Volume size
size: 2Gi
# -- Subdirectory of Ingester data Persistent Volume to mount
# Useful if the volume's root directory is not empty
subPath: ''
# -- Ingester data Persistent Volume Storage Class
# If defined, storageClassName: <storageClass>
# If set to "-", storageClassName: "", which disables dynamic provisioning
# If undefined (the default) or set to null, no storageClassName spec is
# set, choosing the default provisioner.
storageClass: null
# -- Startup/liveness probes for ingesters are not recommended.
# Ref: https://cortexmetrics.io/docs/guides/running-cortex-on-kubernetes/#take-extra-care-with-ingesters
startupProbe: {}
# -- Startup/liveness probes for ingesters are not recommended.
# Ref: https://cortexmetrics.io/docs/guides/running-cortex-on-kubernetes/#take-extra-care-with-ingesters
livenessProbe: {}
readinessProbe:
httpGet:
path: /ready
port: http-metrics
securityContext: {}
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
statefulStrategy:
type: RollingUpdate
terminationGracePeriodSeconds: 240
tolerations: []
podDisruptionBudget:
maxUnavailable: 1
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
ruler:
enabled: true
replicas: 1
service:
annotations: {}
labels: {}
serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
name: ""
serviceMonitor:
enabled: false
additionalLabels: {}
relabelings: []
metricRelabelings: []
# -- Additional endpoint configuration https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#endpoint
extraEndpointSpec: {}
podTargetLabels: []
resources: {}
# -- Additional Cortex container arguments, e.g. log.level (debug, info, warn, error)
extraArgs: {}
# -- Pod Labels
podLabels: {}
# -- Pod Annotations
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
nodeSelector: {}
topologySpreadConstraints: []
affinity: {}
annotations: {}
autoscaling:
# -- Creates a HorizontalPodAutoscaler for the ruler.
enabled: false
minReplicas: 2
maxReplicas: 30
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
# -- Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior
behavior: {}
# -- Optional custom and external metrics for the ruler pods to scale on
# In order to use this option , define a list of of specific following https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics and https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects
extraMetrics: []
validation:
# -- Checks that the ruler is compatible with horizontal scaling,
# as documented in https://cortexmetrics.io/docs/guides/ruler-sharding/.
# You may need to disable this if your config is compatible, but not understood by the validator.
enabled: true
startupProbe:
httpGet:
path: /ready
port: http-metrics
failureThreshold: 10
livenessProbe:
httpGet:
path: /ready
port: http-metrics
readinessProbe:
httpGet:
path: /ready
port: http-metrics
securityContext: {}
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget:
maxUnavailable: 1
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
# -- allow configuring rules via configmap. ref: https://cortexproject.github.io/cortex-helm-chart/guides/configure_rules_via_configmap.html
directories: {}
sidecar:
# -- Enable sidecar that collect the configmaps with specified label and stores the included files them into the respective folders
enabled: false
image:
repository: kiwigrid/k8s-sidecar
tag: 1.19.5
sha: ""
imagePullPolicy: IfNotPresent
resources: {}
# -- Set to true to skip tls verification for kube api calls
skipTlsVerify: false
# -- A value of true will produce unique filenames to avoid issues when duplicate data keys exist between ConfigMaps
# and/or Secrets within the same or multiple Namespaces.
enableUniqueFilenames: false
# -- label that the configmaps with rules are marked with
label: cortex_rules
# -- Determines how kopf-k8s-sidecar will run. If WATCH it will run like a normal operator forever.
# If LIST it will gather the matching configmaps and secrets currently present,
# write those files to the destination directory and die
watchMethod: ""
# -- The value for the label you want to filter your resources on.
# Don't set a value to filter by any value
labelValue: ""
# -- Folder where the files should be placed.
folder: /data/rules
# -- The default folder name, it will create a subfolder under the `folder` and put rules in there instead
defaultFolderName: ""
# -- The Namespace(s) from which resources will be watched.
# For multiple namespaces, use a comma-separated string like "default,test".
# If not set or set to ALL, it will watch all Namespaces.
searchNamespace: ""
# -- The annotation the sidecar will look for in ConfigMaps and/or Secrets to override the destination folder for files.
# If the value is a relative path, it will be relative to FOLDER
folderAnnotation: "k8s-sidecar-target-directory"
# -- The resource type that the operator will filter for. Can be configmap, secret or both
resource: "both"
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
querier:
enabled: true
replicas: 2
service:
annotations: {}
labels: {}
serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
name: ""
serviceMonitor:
enabled: false
additionalLabels: {}
relabelings: []
metricRelabelings: []
# -- Additional endpoint configuration https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#endpoint
extraEndpointSpec: {}
podTargetLabels: []
resources: {}
# -- Additional Cortex container arguments, e.g. log.level (debug, info, warn, error)
extraArgs: {}
# -- Pod Labels
podLabels: {}
# -- Pod Annotations
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
nodeSelector: {}
topologySpreadConstraints: []
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- querier
topologyKey: 'kubernetes.io/hostname'
annotations: {}
autoscaling:
# -- Creates a HorizontalPodAutoscaler for the querier pods.
enabled: false
minReplicas: 2
maxReplicas: 30
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 0 # 80
# -- Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior
behavior: {}
# -- Optional custom and external metrics for the querier pods to scale on
# In order to use this option , define a list of of specific following https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics and https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects
extraMetrics: []
persistentVolume:
subPath:
startupProbe:
httpGet:
path: /ready
port: http-metrics
failureThreshold: 10
livenessProbe:
httpGet:
path: /ready
port: http-metrics
readinessProbe:
httpGet:
path: /ready
port: http-metrics
securityContext: {}
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget:
maxUnavailable: 1
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
lifecycle: {}
query_frontend:
enabled: true
replicas: 2
service:
annotations: {}
labels: {}
serviceAccount:
# -- "" disables the individual serviceAccount and uses the global serviceAccount for that component
name: ""
serviceMonitor:
enabled: false
additionalLabels: {}
relabelings: []
metricRelabelings: []
# -- Additional endpoint configuration https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#endpoint
extraEndpointSpec: {}
podTargetLabels: []
resources: {}
# -- Additional Cortex container arguments, e.g. log.level (debug, info, warn, error)
extraArgs: {}
# -- Pod Labels
podLabels: {}
# -- Pod Annotations
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
nodeSelector: {}
topologySpreadConstraints: []
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- query-frontend
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistentVolume:
subPath:
startupProbe:
httpGet:
path: /ready
port: http-metrics
failureThreshold: 10
livenessProbe:
httpGet:
path: /ready
port: http-metrics
readinessProbe:
httpGet:
path: /ready
port: http-metrics
securityContext: {}
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
terminationGracePeriodSeconds: 180
tolerations: []
podDisruptionBudget:
maxUnavailable: 1
initContainers: []
extraContainers: []
extraVolumes: []
extraVolumeMounts: []
extraPorts: []
env: []
lifecycle: {}
query_scheduler:
# -- If true, querier and query-frontend will connect to it (requires Cortex v1.6.0+)
# https://cortexmetrics.io/docs/operations/scaling-query-frontend/#query-scheduler
enabled: false
replicas: 2
service:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
additionalLabels: {}
relabelings: []
metricRelabelings: []
# -- Additional endpoint configuration https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#endpoint
extraEndpointSpec: {}
podTargetLabels: []
resources: {}
# -- Additional Cortex container arguments, e.g. log.level (debug, info, warn, error)
extraArgs: {}
# -- Pod Labels
podLabels: {}
# -- Pod Annotations
podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: 'http-metrics'
nodeSelector: {}
topologySpreadConstraints: []
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- query-scheduler
topologyKey: 'kubernetes.io/hostname'
annotations: {}
persistentVolume:
subPath:
startupProbe:
httpGet:
path: /ready
port: http-metrics
failureThreshold: 10
livenessProbe:
httpGet:
path: /ready
port: http-metrics
readinessProbe:
httpGet:
path: /ready
port: http-metrics
securityContext: {}
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0