Skip to content
Merged
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 longhorn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Provides a manager for persistent storage.

* **Description:** [Longhorn](https://longhorn.io/docs/1.10.1/what-is-longhorn/)
* **Version:** `1.10.1-z1`
* **Version:** `1.10.1-z2`
* **Installation requirements (all nodes)**: https://longhorn.io/docs/1.10.1/deploy/install/#installing-open-iscsi

#### IMPORTANT: this package contains a migrate-registry component which can be used to ensure longhorn is the single default class and re-init Zarf cluster with a registry volume managed by longhorn. You *must* re-deploy this package to push longhorn images once again to the new volume.
Expand Down
10 changes: 10 additions & 0 deletions longhorn/longhorn-mongodb-sc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: longhorn-mongodb
provisioner: driver.longhorn.io
allowVolumeExpansion: true
parameters:
fsType: "xfs"
dataLocality: "best-effort"
numberOfReplicas: "2"
10 changes: 9 additions & 1 deletion longhorn/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: ZarfPackageConfig
metadata:
name: rocketchat-longhorn
description: "Provides Longhorn and a migrate-registry component which 're-init' Zarf cluster with it"
version: 1.10.1-z1
version: 1.10.1-z2

components:
- name: longhorn
Expand Down Expand Up @@ -62,6 +62,14 @@ components:
kind: StorageClass
name: longhorn

- name: mongodb-storage-class
required: true

manifests:
- name: longhorn-mongodb
files:
- longhorn-mongodb-sc.yaml

- name: migrate-registry
actions:
onDeploy:
Expand Down
7 changes: 5 additions & 2 deletions mongodb-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Deploy the MongoDB Community Operator and the underlying database clusters used by Rocket.Chat.

* **Description:** MongoDB Controllers for Kubernetes (MCK) and workspaces CE cluster.
* **Version:** `1.6.1-z1`
* **Version:** `1.6.1-z2`

| Variable | Description | Default | Prompt |
| --- | --- | --- | --- |
| `DATABASE_STORAGECLASS_NAME` | The StorageClass name | `longhorn` | Yes |
| `DATABASE_STORAGECLASS_NAME` | The storage class name | `longhorn-mongodb` | Yes |
| `DATABASE_MEMBERS` | The size of replica set | `3` | Yes |
| `DATABASE_MONGOD_CPU_LIMITS` | Mongod resource CPU limits | `1500m` | No |
| `DATABASE_MONGOD_MEMORY_LIMITS` | Mongod resource memory limits | `6Gi` | No |
Expand All @@ -20,6 +20,9 @@ Deploy the MongoDB Community Operator and the underlying database clusters used

**Deployment Example:**

The default [longhorn-mongodb](https://github.com/RocketChat/zarf-packages/blob/develop/longhorn/longhorn-mongodb-sc.yaml)
storage class refers to one installed with our longhorn package. Please adjust accordingly if that's not your case.

```bash
zarf package deploy zarf-package-rocketchat-mongodb-*.tar.zst --set DATABASE_DATA_STORAGE_SIZE=2G --confirm
```
4 changes: 2 additions & 2 deletions mongodb-kubernetes/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: ZarfPackageConfig
metadata:
name: rocketchat-mongodb
description: MongoDB Controllers for Kubernetes (MCK) and workspaces CE cluster
version: 1.6.1-z1
version: 1.6.1-z2

components:
- name: mongodb-operator
Expand Down Expand Up @@ -49,7 +49,7 @@ variables:
- name: DATABASE_STORAGECLASS_NAME
description: "The StorageClass name"
prompt: true
default: longhorn
default: longhorn-mongodb
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to default this? Cause this means all that use will use this storage class?

Copy link
Copy Markdown
Member Author

@jcbrtl jcbrtl Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nop. Default changed there so it makes convenient for our packages together to work with defaults mostly (no need to type, just "enter" or --confirm to assume defaults, but you can --set DATABASE_STORAGECLASS_NAME=<sc> if needed) 👍

- name: DATABASE_MEMBERS
description: "The size of replica set"
prompt: true
Expand Down