Skip to content

Commit

Permalink
feat(helm): add config
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jan 3, 2024
1 parent 4604ffd commit a996d15
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helm/oteldb/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "oteldb.fullname" . }}
labels:
{{- include "oteldb.labels" . | nindent 4 }}
data:
oteldb.yaml: |-
{{ .Values.config | toYaml | nindent 4 }}
7 changes: 7 additions & 0 deletions helm/oteldb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
serviceAccountName: {{ include "oteldb.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
- name: config
configMap:
name: {{ include "oteldb.fullname" . }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand All @@ -45,6 +49,9 @@ spec:
httpGet:
path: /startup
port: health-check
volumeMounts:
- mountPath: /etc/otel/config.yaml
name: config
ports:
- containerPort: 19291
protocol: TCP
Expand Down
15 changes: 15 additions & 0 deletions helm/oteldb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ resources: {}
# cpu: 100m
# memory: 128Mi

config:
dsn: "tcp://localhost:9000?username=default&password=secret&database=default"
ttl: 0
tempo:
bind: 0.0.0.0:3200
prometheus:
bind: 0.0.0.0:9090
max_samples: 1_000_000
timeout: 1m
enable_negative_offset: true
loki:
bind: 0.0.0.0:3100
health_check:
bind: 0.0.0.0:13133

autoscaling:
enabled: false
minReplicas: 1
Expand Down

0 comments on commit a996d15

Please sign in to comment.