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 examples/longhorn/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This example shows you how to deploy [Longhorn](https://longhorn.io/) using Zarf.

Before deploying Longhorn make sure your nodes are configured with the [Longhorn Installation Requirements](https://longhorn.io/docs/latest/deploy/install/#installation-requirements).
Before deploying Longhorn, make sure your nodes are configured with the [Longhorn Installation Requirements](https://longhorn.io/docs/latest/deploy/install/#installation-requirements). Note that the automated `longhornctl` preflight environment checker is not included in this package to support multi-architecture compatibility, so node readiness must be verified manually.

You will need [open-iscsi](https://longhorn.io/docs/latest/deploy/install/#installing-open-iscsi) installed.

Expand Down
32 changes: 18 additions & 14 deletions examples/longhorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
global:
imageRegistry: "127.0.0.1:31999"
cattle:
systemDefaultRegistry: ""
windowsCluster:
Expand All @@ -25,44 +26,44 @@ image:
longhorn:
engine:
repository: longhornio/longhorn-engine
tag: v1.4.0
tag: v1.11.2
manager:
repository: longhornio/longhorn-manager
tag: v1.4.0
tag: v1.11.2
ui:
repository: longhornio/longhorn-ui
tag: v1.4.0
tag: v1.11.2
instanceManager:
repository: longhornio/longhorn-instance-manager
tag: v1.4.0
tag: v1.11.2
shareManager:
repository: longhornio/longhorn-share-manager
tag: v1.4.0
tag: v1.11.2
backingImageManager:
repository: longhornio/backing-image-manager
tag: v1.4.0
tag: v1.11.2
supportBundleKit:
repository: longhornio/support-bundle-kit
tag: v0.0.17
tag: v0.0.84
csi:
attacher:
repository: longhornio/csi-attacher
tag: v3.4.0
tag: v4.11.0-20260428
provisioner:
repository: longhornio/csi-provisioner
tag: v2.1.2
tag: v5.3.0-20260428
nodeDriverRegistrar:
repository: longhornio/csi-node-driver-registrar
tag: v2.5.0
tag: v2.16.0-20260428
resizer:
repository: longhornio/csi-resizer
tag: v1.3.0
tag: v2.1.0-20260428
snapshotter:
repository: longhornio/csi-snapshotter
tag: v5.0.1
tag: v8.5.0-20260428
livenessProbe:
repository: longhornio/livenessprobe
tag: v2.8.0
tag: v2.18.0-20260428
pullPolicy: IfNotPresent

service:
Expand Down Expand Up @@ -98,7 +99,7 @@ persistence:
removeSnapshotsDuringFilesystemTrim: ignored # "enabled" or "disabled" otherwise

csi:
kubeletRootDir: "/var/lib/kubelet"
kubeletRootDir: "/var/lib/rancher/k3s/agent/kubelet"
attacherReplicaCount: ~
provisionerReplicaCount: ~
resizerReplicaCount: ~
Expand Down Expand Up @@ -330,3 +331,6 @@ annotations: {}
serviceAccount:
# Annotations to add to the service account
annotations: {}

preUpgradeChecker:
upgradeVersionCheck: false
55 changes: 16 additions & 39 deletions examples/longhorn/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,8 @@ kind: ZarfPackageConfig
metadata:
name: longhorn
description: Example package for Longhorn cloud native distributed block storage for Kubernetes
version: 1.4.0
version: 1.11.2
components:
- name: longhorn-environment-check
required: true
files:
- source: https://raw.githubusercontent.com/longhorn/longhorn/v1.4.0/scripts/environment_check.sh
target: environment_check.sh
shasum: 4df400fa81e65e51d83db8ff8e4f513ddd32c124619bb36c94319e71ca4d0a4d
executable: true
- source: https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
target: jq
shasum: af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44
executable: true
actions:
# Run the Longhorn Environment Check on this cluster's nodes.
onDeploy:
after:
- cmd: |
export PATH=$PATH:./
awk '{gsub(/kubectl /, "./zarf tools kubectl ")} 1' ./environment_check.sh > tmp
mv tmp ./environment_check.sh
awk '{gsub(/"kubectl" /, "")} 1' ./environment_check.sh > tmp
mv tmp ./environment_check.sh
chmod +x ./environment_check.sh
./environment_check.sh
- name: longhorn
required: true
description: Deploy Longhorn into a Kubernetes cluster. https://longhorn.io
Expand All @@ -43,24 +20,24 @@ components:
charts:
- name: longhorn
url: https://charts.longhorn.io
version: 1.4.0
version: 1.11.2
namespace: longhorn-system
valuesFiles:
- values.yaml
images:
- longhornio/csi-attacher:v3.4.0
- longhornio/csi-provisioner:v2.1.2
- longhornio/csi-resizer:v1.3.0
- longhornio/csi-snapshotter:v5.0.1
- longhornio/csi-node-driver-registrar:v2.5.0
- longhornio/livenessprobe:v2.8.0
- longhornio/backing-image-manager:v1.4.0
- longhornio/longhorn-engine:v1.4.0
- longhornio/longhorn-instance-manager:v1.4.0
- longhornio/longhorn-manager:v1.4.0
- longhornio/longhorn-share-manager:v1.4.0
- longhornio/longhorn-ui:v1.4.0
- longhornio/support-bundle-kit:v0.0.17
- longhornio/csi-attacher:v4.11.0-20260428
- longhornio/csi-provisioner:v5.3.0-20260428
- longhornio/csi-resizer:v2.1.0-20260428
- longhornio/csi-snapshotter:v8.5.0-20260428
- longhornio/csi-node-driver-registrar:v2.16.0-20260428
- longhornio/livenessprobe:v2.18.0-20260428
- longhornio/backing-image-manager:v1.11.2
- longhornio/longhorn-engine:v1.11.2
- longhornio/longhorn-instance-manager:v1.11.2
- longhornio/longhorn-manager:v1.11.2
- longhornio/longhorn-share-manager:v1.11.2
- longhornio/longhorn-ui:v1.11.2
- longhornio/support-bundle-kit:v0.0.84

documentation:
readme: readme.md
readme: readme.md