diff --git a/longhorn/README.md b/longhorn/README.md index 76f5c96..0a9bdaa 100644 --- a/longhorn/README.md +++ b/longhorn/README.md @@ -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. diff --git a/longhorn/longhorn-mongodb-sc.yaml b/longhorn/longhorn-mongodb-sc.yaml new file mode 100644 index 0000000..624ae27 --- /dev/null +++ b/longhorn/longhorn-mongodb-sc.yaml @@ -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" diff --git a/longhorn/zarf.yaml b/longhorn/zarf.yaml index b28a26d..bb0392c 100644 --- a/longhorn/zarf.yaml +++ b/longhorn/zarf.yaml @@ -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 @@ -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: diff --git a/mongodb-kubernetes/README.md b/mongodb-kubernetes/README.md index 497b2e6..dac1cea 100644 --- a/mongodb-kubernetes/README.md +++ b/mongodb-kubernetes/README.md @@ -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 | @@ -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 ``` diff --git a/mongodb-kubernetes/zarf.yaml b/mongodb-kubernetes/zarf.yaml index db8fbb2..d45bb3a 100644 --- a/mongodb-kubernetes/zarf.yaml +++ b/mongodb-kubernetes/zarf.yaml @@ -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 @@ -49,7 +49,7 @@ variables: - name: DATABASE_STORAGECLASS_NAME description: "The StorageClass name" prompt: true - default: longhorn + default: longhorn-mongodb - name: DATABASE_MEMBERS description: "The size of replica set" prompt: true