Skip to content

Commit

Permalink
Allow to mount extra volumes for agent & deployment (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Jan 2, 2025
1 parent cd1edcb commit 1911336
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/k8s-infra/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: k8s-infra
description: Helm chart for collecting metrics and logs in K8s
type: application
version: 0.11.19
version: 0.11.20
appVersion: "0.109.0"
home: https://signoz.io
icon: https://signoz.io/img/SigNozLogo-orange.svg
Expand Down
6 changes: 6 additions & 0 deletions charts/k8s-infra/templates/otel-agent/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ spec:
- key: key.pem
path: key.pem
{{- end }}
{{- with .Values.otelAgent.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ include "otelAgent.fullname" . }}
image: {{ include "otelAgent.image" . }}
Expand Down Expand Up @@ -133,6 +136,9 @@ spec:
- name: {{ include "k8s-infra.fullname" . }}-agent-secrets-vol
mountPath: {{ default "/secrets" .Values.otelTlsSecrets.path }}
{{- end }}
{{- with .Values.otelAgent.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.otelAgent.livenessProbe.enabled }}
livenessProbe:
{{- with .Values.otelAgent.livenessProbe }}
Expand Down
6 changes: 6 additions & 0 deletions charts/k8s-infra/templates/otel-deployment/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spec:
- key: key.pem
path: key.pem
{{- end }}
{{- with .Values.otelDeployment.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ template "otelDeployment.fullname" . }}
image: {{ template "otelDeployment.image" . }}
Expand Down Expand Up @@ -105,6 +108,9 @@ spec:
- name: {{ include "k8s-infra.fullname" . }}-deployment-secrets-vol
mountPath: {{ default "/secrets" .Values.otelTlsSecrets.path }}
{{- end }}
{{- with .Values.otelDeployment.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.otelDeployment.livenessProbe.enabled }}
livenessProbe:
{{- with .Values.otelDeployment.livenessProbe }}
Expand Down
34 changes: 34 additions & 0 deletions charts/k8s-infra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,23 @@ otelAgent:
processors: [batch]
exporters: []

# -- Additional volumes for otelAgent
extraVolumes: []
# - name: config-volume
# configMap:
# name: special-config
# - name: secret-volume
# secret:
# secretName: special-secret

# -- Additional volume mounts for otelAgent
extraVolumeMounts: []
# - name: config-volume
# mountPath: /etc/config
# - name: secret-volume
# mountPath: /etc/secret
# readOnly: true

# Default values for OtelDeployment
otelDeployment:
enabled: true
Expand Down Expand Up @@ -957,3 +974,20 @@ otelDeployment:
receivers: []
processors: [batch]
exporters: []

# -- Additional volumes for otelDeployment
extraVolumes: []
# - name: config-volume
# configMap:
# name: special-config
# - name: secret-volume
# secret:
# secretName: special-secret

# -- Additional volume mounts for otelDeployment
extraVolumeMounts: []
# - name: config-volume
# mountPath: /etc/config
# - name: secret-volume
# mountPath: /etc/secret
# readOnly: true

0 comments on commit 1911336

Please sign in to comment.