Skip to content

Commit

Permalink
fix rebalance cronjob (#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem authored Mar 26, 2024
1 parent 516091a commit 8f62d99
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion charts/nucliadb_ingest/templates/rebalance.cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,39 @@ spec:
name: nucliadb-config
- configMapRef:
name: {{ .Release.Name }}-config
env:
- name: VERSION
valueFrom:
fieldRef:
fieldPath: metadata.labels['version']
{{- range $key, $value := .Values.env }}
- name: "{{ $key }}"
value: {{ tpl $value $ | toJson }}
{{- end }}
imagePullPolicy: Always
command: ["nucliadb-rebalance"]
command: ["nucliadb-rebalance"]
ports:
- name: metrics
containerPort: {{ .Values.serving.metricsPort }}
{{- if .Values.nats.secretName }}
volumeMounts:
- name: nats-creds
readOnly: true
mountPath: /appsecrets
{{- end }}
{{- if .Values.nats.regionalSecretName }}
- name: regional-nats-creds
readOnly: true
mountPath: /regioncreds
{{- end }}
{{- if .Values.nats.secretName }}
volumes:
- name: nats-creds
secret:
secretName: {{ .Values.nats.secretName }}
{{- end }}
{{- if .Values.nats.regionalSecretName }}
- name: regional-nats-creds
secret:
secretName: {{ .Values.nats.regionalSecretName }}
{{- end }}

0 comments on commit 8f62d99

Please sign in to comment.