Skip to content

Commit 219f588

Browse files
committed
feat(cardano-node): support custom mithril image overrides
Adds support for specifying a dedicated image, tag, and pullPolicy for the mithril-snapshot initContainer. Sets default to unstable (0.13.19+) due to GCS closed-channel stream bug. Note: The built-in mithril-client v0.13.9 in ghcr.io/blinklabs-io/cardano-node:11.0.1-1 has a closed-channel stream race condition bug on GCS (Download: could not write 0 bytes to stream). Suggest using ghcr.io/input-output-hk/mithril-client:latest-unstable (or v2617.0+).
1 parent 5b02f8f commit 219f588

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

charts/cardano-node/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
name: cardano-node
33
description: Creates a Cardano node deployment with SOCAT sidecar
4-
version: 0.8.5
5-
appVersion: 10.5.3
4+
version: 0.8.6
5+
appVersion: 11.0.1
66
maintainers:
77
- name: aurora
88
email: aurora@blinklabs.io

charts/cardano-node/templates/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ spec:
3434
initContainers:
3535
# Download Cardano snapshot using mithril-client
3636
- name: mithril-snapshot
37-
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
38-
imagePullPolicy: {{ .Values.image.pullPolicy }}
37+
image: {{ .Values.mithril.image.repository }}:{{ .Values.mithril.image.tag }}
38+
imagePullPolicy: {{ .Values.mithril.image.pullPolicy }}
3939
command: ["/bin/sh", "-c"]
4040
args:
4141
- |

charts/cardano-node/values.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cardano_network: preview
55
# extraPodLabels: {}
66
image:
77
repository: ghcr.io/blinklabs-io/cardano-node
8-
tag: 10.5.3
8+
tag: 11.0.1-1
99
pullPolicy: IfNotPresent
1010
replicaCount: 1
1111
resources: {}
@@ -27,9 +27,11 @@ service:
2727

2828
# Mithril snapshot restoration via initContainer
2929
mithril:
30-
# Enable Mithril snapshot download via initContainer (recommended)
31-
# Runs mithril-client in initContainer before the main cardano-node container starts
3230
enabled: true
31+
image:
32+
repository: "ghcr.io/input-output-hk/mithril-client"
33+
tag: "latest-unstable"
34+
pullPolicy: "IfNotPresent"
3335
# Genesis and ancillary keys - read from image config files by default
3436
# These are fallbacks if /opt/cardano/config/{network}/*.vkey files don't exist
3537
genesisVerificationKey: "" # Optional: fallback if image doesn't have genesis.vkey

0 commit comments

Comments
 (0)