-
Notifications
You must be signed in to change notification settings - Fork 0
Change Rook-Ceph Template from Kustomize to Helm Chart #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| apiVersion: source.toolkit.fluxcd.io/v1 | ||
| kind: HelmRepository | ||
| metadata: | ||
| name: rook-ceph | ||
| namespace: otterscale-system | ||
| spec: | ||
| interval: 24h | ||
| url: https://charts.rook.io/release |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| # ModuleTemplate — Rook-Ceph Cluster v__ROOK_CEPH_VERSION__ (Phase 2: CephCluster) | ||
| # | ||
| # Deploys CephCluster resources. Requires rook-ceph operator to be installed first. | ||
| # | ||
| # Apply order: rook-ceph → rook-ceph-cluster | ||
| apiVersion: module.otterscale.io/v1alpha1 | ||
| kind: ModuleTemplate | ||
| metadata: | ||
| name: rook-ceph-cluster | ||
| spec: | ||
| namespace: rook-ceph | ||
|
|
||
| description: >- | ||
| Rook-Ceph Cluster v__ROOK_CEPH_VERSION__ — CephCluster resources. Requires rook-ceph operator. | ||
|
|
||
| helmRelease: | ||
| interval: 30m | ||
|
|
||
| dependsOn: | ||
| - name: rook-ceph | ||
| namespace: rook-ceph | ||
|
|
||
| chart: | ||
| spec: | ||
| chart: rook-ceph-cluster | ||
| version: "__ROOK_CEPH_VERSION__" | ||
| sourceRef: | ||
| kind: HelmRepository | ||
| name: rook-ceph | ||
| namespace: otterscale-system | ||
| interval: 24h | ||
|
|
||
| install: | ||
| remediation: | ||
| retries: 3 | ||
|
|
||
| upgrade: | ||
| remediation: | ||
| retries: 3 | ||
| force: false | ||
|
|
||
| timeout: 30m | ||
|
|
||
| values: | ||
| operatorNamespace: rook-ceph | ||
|
|
||
| cephClusterSpec: | ||
| mon: | ||
| count: 1 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A count: 3 |
||
| allowMultiplePerNode: true | ||
| mgr: | ||
| count: 1 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| allowMultiplePerNode: true | ||
| network: | ||
| provider: host | ||
|
|
||
| cephObjectStores: | ||
| - name: ceph-objectstore | ||
| spec: | ||
| metadataPool: | ||
| failureDomain: host | ||
| replicated: | ||
| size: 3 | ||
| dataPool: | ||
| failureDomain: host | ||
| erasureCoded: | ||
| dataChunks: 2 | ||
| codingChunks: 1 | ||
| gateway: | ||
| port: 8080 | ||
| instances: 1 | ||
| priorityClassName: system-cluster-critical | ||
| storageClass: | ||
| enabled: true | ||
| name: ceph-bucket | ||
| reclaimPolicy: Delete | ||
| volumeBindingMode: Immediate | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| apiVersion: module.otterscale.io/v1alpha1 | ||
| kind: Module | ||
| metadata: | ||
| name: rook-ceph-cluster | ||
| spec: | ||
| templateRef: rook-ceph-cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
helmRelease.dependsOnis hard-coded toname: rook-cephinnamespace: rook-ceph. Because the controller names HelmReleases after the Module (not the ModuleTemplate) and allowsModule.spec.namespaceoverrides, this dependency will silently break if a user installs the operator Module under a different name and/or overrides its namespace. Consider (a) omittingdependsOn[].namespaceso the dependency follows the HelmRelease namespace, and (b) documenting that the operator Module must be namedrook-ceph(or otherwise make the naming/namespace coupling explicit).