Skip to content

Commit 74fabcc

Browse files
guilloadtbavelier
andauthored
Update CloudPrem Helm chart (#1804)
Co-authored-by: Timothée Bavelier <[email protected]>
1 parent d097e54 commit 74fabcc

9 files changed

+150
-119
lines changed

charts/cloudprem/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## 0.1.1
4+
5+
* Load index config from file instead of inline definition
6+
* Switch to gRPC health check for public ALB
7+
* Upgrade image to v0.1.1
8+
9+
## 0.1.0
10+
11+
* Initial version

charts/cloudprem/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: cloudprem
33
description: Datadog CloudPrem
44
type: application
5-
version: v0.1.0
6-
appVersion: v0.1.0
5+
version: v0.1.1
6+
appVersion: v0.1.1
77
home: https://www.datadoghq.com/
88
icon: https://datadog-live.imgix.net/img/dd_logo_70x75.png
99
maintainers:

charts/cloudprem/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CloudPrem
22

3-
![Version: v0.1.0](https://img.shields.io/badge/Version-v0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: v0.1.1](https://img.shields.io/badge/Version-v0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.1](https://img.shields.io/badge/AppVersion-v0.1.1-informational?style=flat-square)
44

55
## Using the Datadog Helm repository
66

charts/cloudprem/datadog.yaml

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
version: 0.9
2+
index_id: datadog
3+
indexing_settings:
4+
commit_timeout_secs: 30
5+
search_settings:
6+
default_search_fields: []
7+
doc_mapping:
8+
mode: dynamic
9+
field_mappings:
10+
- name: timestamp
11+
type: datetime
12+
fast: true
13+
input_formats:
14+
- rfc3339
15+
- iso8601
16+
- unix_timestamp
17+
- name: discovery_timestamp
18+
type: datetime
19+
fast: false
20+
indexed: false
21+
input_formats:
22+
- unix_timestamp
23+
- rfc3339
24+
- iso8601
25+
- name: ingest_size_in_bytes
26+
type: u64
27+
fast: true
28+
indexed: false
29+
stored: false
30+
- name: tiebreaker
31+
type: i64
32+
fast: true
33+
indexed: false
34+
stored: true
35+
- name: message
36+
type: text
37+
tokenizer: default
38+
record: position
39+
fast: true
40+
- name: id
41+
type: text
42+
tokenizer: raw
43+
- name: custom
44+
type: json
45+
tokenizer: default
46+
record: position
47+
fast: true
48+
- name: tag
49+
type: json
50+
tokenizer: default
51+
fast: true
52+
- name: tags
53+
type: 'array<text>'
54+
stored: true
55+
indexed: false
56+
fast: false
57+
- name: error
58+
type: json
59+
tokenizer: default
60+
record: position
61+
fast: false
62+
stored: false
63+
- name: service
64+
type: text
65+
tokenizer: raw
66+
fast: true
67+
- name: source
68+
type: text
69+
tokenizer: raw
70+
fast: true
71+
- name: service_type
72+
type: text
73+
tokenizer: raw
74+
fast: true
75+
- name: status
76+
type: text
77+
tokenizer: raw
78+
fast: true
79+
- name: host
80+
type: text
81+
tokenizer: raw
82+
fast: true
83+
- name: trace_id
84+
type: text
85+
tokenizer: raw
86+
fast: true
87+
- name: span_id
88+
type: text
89+
tokenizer: raw
90+
- name: default
91+
type: concatenate
92+
concatenate_fields:
93+
- message
94+
- error
95+
tokenizer: default
96+
record: position
97+
- name: all
98+
type: concatenate
99+
concatenate_fields:
100+
- message
101+
- error
102+
- source
103+
- service
104+
- service_type
105+
- status
106+
- host
107+
- trace_id
108+
- span_id
109+
- custom
110+
tokenizer: default
111+
record: position
112+
tag_fields: []
113+
timestamp_field: timestamp
114+
index_field_presence: true

charts/cloudprem/templates/configmap-bootstrap.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ metadata:
77
{{- include "quickwit.labels" . | nindent 4 }}
88
data:
99
{{- range .Values.seed.indexes }}
10-
{{ .index_id }}.yaml: |-
11-
{{- toYaml . | nindent 4 }}
10+
{{- $config := $.Files.Get . | fromYaml }}
11+
{{ . }}: |-
12+
{{- toYaml $config | nindent 4 }}
1213
{{- end }}
1314
{{- range .Values.seed.sources }}
14-
{{ .source.source_id }}.yaml: |-
15-
{{- toYaml .source | nindent 4 }}
15+
{{- $config := $.Files.Get . | fromYaml }}
16+
{{ . }}: |-
17+
{{- toYaml $config | nindent 4 }}
1618
{{- end }}
1719
{{- end }}

charts/cloudprem/templates/indexer-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ spec:
151151
storageClassName: "{{ .Values.indexer.persistentVolume.storageClass }}"
152152
{{- end }}
153153
{{- end }}
154-
{{- end }}
154+
{{- end }}

charts/cloudprem/templates/ingress/public-alb.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $labels := include "quickwit.labels" . }}
33
{{- $ingress := .Values.ingress.public }}
44

5-
{{- if $ingress.enabled -}}
5+
{{- if $ingress.enabled }}
66
apiVersion: networking.k8s.io/v1
77
kind: Ingress
88
metadata:
@@ -15,6 +15,8 @@ metadata:
1515
alb.ingress.kubernetes.io/scheme: internet-facing
1616
alb.ingress.kubernetes.io/ssl-redirect: "443"
1717
alb.ingress.kubernetes.io/target-type: ip
18+
alb.ingress.kubernetes.io/healthcheck-path: /grpc.health.v1.Health/Check
19+
alb.ingress.kubernetes.io/success-codes: '0'
1820
{{- with $ingress.extraAnnotations }}
1921
{{- toYaml . | nindent 4 }}
2022
{{- end }}
@@ -34,7 +36,7 @@ spec:
3436
name: {{ $fullname }}-searcher
3537
port:
3638
name: grpc
37-
{{- with $ingress.host }}
39+
{{- with $ingress.host }}
3840
host: {{ . }}
3941
{{- end }}
4042
{{- end }}

charts/cloudprem/templates/job-create-indices.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{{- if .Values.bootstrap.enabled -}}
22
{{- range .Values.seed.indexes }}
3+
4+
{{- $config := $.Files.Get . | fromYaml }}
5+
{{- $index_id := $config.index_id }}
36
---
47
apiVersion: batch/v1
58
kind: Job
69
metadata:
7-
name: {{ printf "%s-index-%s" (include "quickwit.fullname" $ | trunc 47) .index_id | trunc 63 | trimSuffix "-" }}
10+
name: {{ printf "%s-index-%s" (include "quickwit.fullname" $ | trunc 47) $index_id | trunc 63 | trimSuffix "-" }}
811
labels:
912
{{- include "quickwit.labels" $ | nindent 4 }}
1013
annotations:
@@ -41,7 +44,7 @@ spec:
4144
{{- if $.Values.bootstrap.indexes.command }}
4245
command: {{- toYaml $.Values.bootstrap.sources.command | nindent 8 }}
4346
{{- else }}
44-
command: ["/bin/bash","-c","quickwit index describe --index {{ .index_id }} --endpoint ${QW_CLUSTER_ENDPOINT} || quickwit index create --index-config {{ .index_id }}.yaml --endpoint ${QW_CLUSTER_ENDPOINT}"]
47+
command: ["/bin/bash","-c","quickwit index describe --index {{ $index_id }} --endpoint ${QW_CLUSTER_ENDPOINT} || quickwit index create --index-config {{ . }} --endpoint ${QW_CLUSTER_ENDPOINT}"]
4548
{{- end }}
4649
env:
4750
{{- include "quickwit.environment" $ | nindent 10 }}
@@ -63,8 +66,8 @@ spec:
6366
mountPath: /quickwit/node.yaml
6467
subPath: node.yaml
6568
- name: index
66-
mountPath: /quickwit/{{ .index_id }}.yaml
67-
subPath: {{ .index_id }}.yaml
69+
mountPath: /quickwit/{{ . }}
70+
subPath: {{ . }}
6871
{{- with $.Values.bootstrap.indexes.extraVolumeMounts }}
6972
{{- toYaml . | nindent 10 }}
7073
{{- end }}
@@ -81,8 +84,8 @@ spec:
8184
configMap:
8285
name: {{ template "quickwit.fullname" $ }}-bootstrap
8386
items:
84-
- key: {{ .index_id }}.yaml
85-
path: {{ .index_id }}.yaml
87+
- key: {{ . }}
88+
path: {{ . }}
8689
{{- with $.Values.bootstrap.indexes.extraVolumes }}
8790
{{- toYaml . | nindent 8 }}
8891
{{- end }}

charts/cloudprem/values.yaml

+2-103
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image:
88
# The CloudPrem image is also available on DockerHub:
99
# https://hub.docker.com/r/datadog/cloudprem
1010
repository: public.ecr.aws/datadog/cloudprem
11-
tag: v0.1.0
11+
tag: v0.1.1
1212
pullPolicy: IfNotPresent
1313

1414
imagePullSecrets: []
@@ -567,108 +567,7 @@ config:
567567
# Seed configuration
568568
seed:
569569
indexes:
570-
- version: 0.9
571-
index_id: datadog
572-
573-
indexing_settings:
574-
commit_timeout_secs: 30
575-
search_settings:
576-
default_search_fields: []
577-
578-
doc_mapping:
579-
mode: dynamic
580-
tag_fields: []
581-
timestamp_field: timestamp
582-
index_field_presence: true
583-
584-
field_mappings:
585-
- name: timestamp
586-
type: datetime
587-
fast: true
588-
input_formats:
589-
- rfc3339
590-
- iso8601
591-
- unix_timestamp
592-
593-
- name: message
594-
type: text
595-
record: position
596-
fast: true
597-
598-
- name: id
599-
type: text
600-
tokenizer: raw
601-
602-
- name: custom
603-
type: json
604-
record: position
605-
fast: true
606-
607-
- name: tag
608-
type: json
609-
tokenizer: raw
610-
fast: true
611-
612-
- name: tags
613-
type: 'array<text>'
614-
stored: true
615-
indexed: false
616-
fast: false
617-
618-
- name: error
619-
type: json
620-
record: position
621-
fast: true
622-
623-
- name: service
624-
type: text
625-
tokenizer: raw
626-
fast: true
627-
628-
- name: service_type
629-
type: text
630-
tokenizer: raw
631-
fast: true
632-
633-
- name: status
634-
type: text
635-
tokenizer: raw
636-
fast: true
637-
638-
- name: host
639-
type: text
640-
tokenizer: raw
641-
fast: true
642-
643-
- name: trace_id
644-
type: text
645-
tokenizer: raw
646-
fast: true
647-
648-
- name: span_id
649-
type: text
650-
tokenizer: raw
651-
652-
- name: default
653-
type: concatenate
654-
concatenate_fields:
655-
- error
656-
- message
657-
record: position
658-
659-
- name: all
660-
type: concatenate
661-
concatenate_fields:
662-
- custom
663-
- error
664-
- host
665-
- message
666-
- service
667-
- service_type
668-
- span_id
669-
- status
670-
- trace_id
671-
record: position
570+
- datadog.yaml
672571

673572
sources: []
674573
# - index: my-index

0 commit comments

Comments
 (0)