Skip to content

Commit

Permalink
Add init container capability to initialize vmalert pod
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-von committed Sep 4, 2024
1 parent cc042ce commit afb2f49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
{{- with ($app.imagePullSecrets | default .Values.global.imagePullSecrets) }}
imagePullSecrets: {{ toYaml . | nindent 8 }}
{{- end }}
{{- with $app.initContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: vmalert
{{- if $app.securityContext.enabled }}
Expand Down
4 changes: 3 additions & 1 deletion charts/victoria-metrics-alert/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ global:
compatibility:
openshift:
adaptSecurityContext: "auto"

serviceAccount:
# -- Specifies whether a service account should be created
create: true
Expand Down Expand Up @@ -308,6 +308,8 @@ server:
# cpu: 1
# memory: 500Mi
# controlledResources: ["cpu", "memory"]
## Additional initContainers to initialize the pod
initContainers: []

serviceMonitor:
# -- Enable deployment of Service Monitor for server component. This is Prometheus operator object
Expand Down

0 comments on commit afb2f49

Please sign in to comment.