Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/core/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: core
description: This chart will deploy Stellar Core node
version: 0.7.0
version: 0.8.0
appVersion: "26.0.1-3109.e78c97ed0.jammy"
maintainers:
- name: Stellar Development Foundation
Expand Down
24 changes: 24 additions & 0 deletions charts/core/templates/core-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ spec:
name: {{ template "common.fullname" . }}-var-lib-stellar
- mountPath: /init-scripts
name: init-scripts
{{- if (.Values.core).existingSecret }}
- mountPath: {{ .Values.core.existingSecret.mountPath | default "/secret" }}
name: existing-secret
readOnly: true
{{- end }}
{{- if (.Values.core).extraVolumeMounts }}
{{ toYaml .Values.core.extraVolumeMounts | indent 8 }}
{{- end }}
containers:
- name: core
image: {{ include "common.coreImage" . | quote }}
Expand Down Expand Up @@ -91,6 +99,14 @@ spec:
name: core-config
- mountPath: /var/lib/stellar
name: {{ template "common.fullname" . }}-var-lib-stellar
{{- if (.Values.core).existingSecret }}
- mountPath: {{ .Values.core.existingSecret.mountPath | default "/secret" }}
name: existing-secret
readOnly: true
{{- end }}
{{- if (.Values.core).extraVolumeMounts }}
{{ toYaml .Values.core.extraVolumeMounts | indent 8 }}
{{- end }}
{{- if (.Values.core.coreExporter).enabled }}
- name: stellar-core-prometheus-exporter
image: "{{ .Values.global.image.coreExporter.registry }}/{{ .Values.global.image.coreExporter.repository }}:{{ .Values.global.image.coreExporter.tag }}"
Expand Down Expand Up @@ -137,6 +153,14 @@ spec:
configMap:
name: {{ template "common.fullname" . }}-nginx
{{- end }}
{{- if (.Values.core).existingSecret }}
- name: existing-secret
secret:
secretName: {{ required "core.existingSecret.name is required when core.existingSecret is set" .Values.core.existingSecret.name }}
{{- end }}
{{- if (.Values.core).extraVolumes }}
{{ toYaml .Values.core.extraVolumes | indent 6 }}
{{- end }}
affinity: {{- toYaml .Values.core.affinity | nindent 8 }}
{{- if .Values.core.persistence.enabled }}
volumeClaimTemplates:
Expand Down
17 changes: 17 additions & 0 deletions charts/core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,23 @@ core:
## Uncomment to use custom service account
# serviceAccountName: default

## Mount a pre-existing Kubernetes secret into the core containers.
## Useful for providing sensitive config such as validator seed.
# existingSecret:
# name: my-core-secret
# mountPath: /secret

## Extra volumes to add to the pod.
# extraVolumes:
# - name: my-extra-volume
# emptyDir: {}

## Extra volume mounts for the init and core containers only.
## Not mounted in the prometheus exporter or history proxy containers.
# extraVolumeMounts:
# - name: my-extra-volume
# mountPath: /extra

## Additional annotations or labels to add the Deployment template
# annotations:
# prometheus.io/scrape: "true"
Expand Down