openshift-data-foundation

by tjungbauer

Helm chartv1.0.37Apache-2.0Verified publisher

Deploys and configures the OpenShift Data Foundation Operator.

About this chart

openshift-data-foundation

Description

Deploys and configures the OpenShift Data Foundation Operator.

This Helm Chart is installing and configuring OpenShift Data Foundation, using the following workflow:

  1. Create required Namespace
  2. Installing the ODF operator by applying the Subscription and OperatorGroup object. (In addition, the InstallPlan can be approved if required)
  3. Verifying if the operator is ready to use Install and configure the compliance operator.
  4. Apply the required storage configuration.

Two options are possible. You can either configure the full ODF feature set including block, file and S3 storage based on Ceph or you deploy the MultiCloudGateway only, which provides just object storage. This is the easiest option to quickly provide S3 storage for example for Quay, Logging etc.

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/helper-operator~1.0.36
https://charts.stderr.at/helper-status-checker~4.0.0
https://charts.stderr.at/tpl~1.0.27

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops (folder: clusters/management-cluster/setup-openshift-data-foundation)

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/openshift-data-foundation

Parameters

Verify the subcharts for additional settings:

Values

KeyTypeDefaultDescription
helper-operator.operators.odf-operator.enabledboolfalse
helper-operator.operators.odf-operator.namespace.createboolfalse
helper-operator.operators.odf-operator.namespace.namestring"openshift-storage"
helper-operator.operators.odf-operator.operatorgroup.createbooltrue
helper-operator.operators.odf-operator.subscription.approvalstring"Automatic"
helper-operator.operators.odf-operator.subscription.channelstring"stable-4.14"
helper-operator.operators.odf-operator.subscription.operatorNamestring"odf-operator"
helper-operator.operators.odf-operator.subscription.sourcestring"redhat-operators"
helper-operator.operators.odf-operator.subscription.sourceNamespacestring"openshift-marketplace"
helper-operator.operators.odf-operator.syncwavestring"0"
helper-status-checker.checks[0].namespace.namestring"openshift-storage"
helper-status-checker.checks[0].operatorNamestring"odf-operator"
helper-status-checker.checks[0].serviceAccount.namestring"status-checker-odf"
helper-status-checker.checks[0].syncwaveint3
helper-status-checker.enabledboolfalse
storagecluster.enabledboolfalseEnable or disable StorageCluster
storagecluster.full_deploymentobject{"default_node_label":"cluster.ocs.openshift.io/openshift-storage","enabled":false,"nfs":"enabled","resourceProfile":"balanced","storageDeviceSets":[{"count":1,"dataPVCTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"512Gi"}},"storageClassName":"gp3-csi","volumeMode":"Block"}},"name":"ocs-deviceset","replica":3,"resources":{}}]}Second option is a full deployment, which will provide Block, File and Object Storage
storagecluster.full_deployment.default_node_labelstringcluster.ocs.openshift.io/openshift-storageThe label the nodes should have to allow hosting of ODF services
storagecluster.full_deployment.enabledboolfalseEnable full deployment of ODF (incl. Ceph, S3 etc.)
storagecluster.full_deployment.nfsstringfalseEnable NFS or not
storagecluster.full_deployment.resourceProfilestringbalancedIn the Configure performance. The following profiles are available: lean (24 CPU, 72GiB): Use this in a resource constrained environment with minimum resources that are lower than the recommended. This profile minimizes resource consumption by allocating fewer CPUs and less memory. balanced (30 CPU, 72 GiB, default): Use this when recommended resources are available. This profile provides a balance between resource consumption and performance for diverse workloads. performance (45 CPU, 96 GiB): Use this in an environment with sufficient resources to get the best performance. This profile is tailored for high performance by allocating ample memory and CPUs to ensure optimal execution of demanding workloads.
storagecluster.full_deployment.storageDeviceSetslist[{"count":1,"dataPVCTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"512Gi"}},"storageClassName":"gp3-csi","volumeMode":"Block"}},"name":"ocs-deviceset","replica":3,"resources":{}}]Define the storage deviceSets
storagecluster.full_deployment.storageDeviceSets[0]object{"count":1,"dataPVCTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"512Gi"}},"storageClassName":"gp3-csi","volumeMode":"Block"}},"name":"ocs-deviceset","replica":3,"resources":{}}Name of the DeviceSet
storagecluster.full_deployment.storageDeviceSets[0].countint1Count is the number of devices in each StorageClassDeviceSet
storagecluster.full_deployment.storageDeviceSets[0].dataPVCTemplateobject{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"512Gi"}},"storageClassName":"gp3-csi","volumeMode":"Block"}}Definitions of the PVC Template
storagecluster.full_deployment.storageDeviceSets[0].dataPVCTemplate.spec.accessModeslist["ReadWriteOnce"]Default AccessModes @efault -- ReadWriteOnce
storagecluster.full_deployment.storageDeviceSets[0].dataPVCTemplate.spec.resourcesobject512GiSize of the Storage. Might be 512Gi, 2Ti, 4Ti
storagecluster.full_deployment.storageDeviceSets[0].dataPVCTemplate.spec.storageClassNamestring"gp3-csi"Name of the stroageclass The class must exist upfront and is currently not created by this chart.
storagecluster.full_deployment.storageDeviceSets[0].dataPVCTemplate.spec.volumeModestringBlockvolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
storagecluster.full_deployment.storageDeviceSets[0].replicaint3Replicas
storagecluster.full_deployment.storageDeviceSets[0].resourcesobject''Resources for the DeviceSets Pods. Limits and Requests can be defined Usually not required to define, only set when you know what you are doing.
storagecluster.multigateway_onlyobject{"enabled":false,"storageclass":"gp3-csi"}There are two options: Either install the MultiCloudGateway only. This is useful if you just need S3 for Quay registry for example or do a full deployment.
storagecluster.multigateway_only.enabledboolfalseEnable MultiCloudGateway only. This will only install S3 but not the full Ceph storage.
storagecluster.multigateway_only.storageclassstring"gp3-csi"Name of the storageclass The class must exist upfront and is currently not created by this chart.
storagecluster.syncwaveint3Syncwave for the StorageCluster object.

Example #1 - MultiCloudGateway only

---
###########################
# Enable and configura ODF
###########################
storagecluster:
  enabled: false
  multigateway_only:
    enabled: false
    storageclass: gp3-csi

# Install Operator Compliance Operator
# Deploys Operator --> Subscription and Operatorgroup
# Syncwave: 0
helper-operator:
  operators:
    odf-operator:
      enabled: true
      syncwave: '0'
      namespace:
        name: openshift-storage
        create: true
      subscription:
        channel: stable-4.14
        approval: Automatic
        operatorName: odf-operator
        source: redhat-operators
        sourceNamespace: openshift-marketplace
      operatorgroup:
        create: true

helper-status-checker:
  enabled: true

  checks:

    - operatorName: odf-operator
      namespace:
        name: openshift-storage
      syncwave: 3

      serviceAccount:
        name: "status-checker-odf"

Example #2 - Full deployment

---
---
###########################
# Enable and configura ODF
###########################
storagecluster:
  enabled: false

  full_deployment:

    enabled: false
    nfs: enabled
    default_node_label: cluster.ocs.openshift.io/openshift-storage

    storageDeviceSets:
      - name: ocs-deviceset
        dataPVCTemplate:
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 512Gi
            storageClassName: gp3-csi
        replica: 3

    # Resource settings for the different components.
    # ONLY set this if you know what you are doing.
    # For every component Limits and Requests can be set.

    # For testing request settings might be reduced.
    # compontent_resources:
      # MDS Defaults
      #   Limits: cpu 3, memory: 8Gi
      #   Requests: cpu: 1, memory: 8Gi
      # mds:
      #   requests:
      #     cpu: '1'
      #     memory: 8Gi

      # RGW Defaults
      #   Limits: cpu 2, memory: 4Gi
      #   Requests: cpu: 1, memory: 4Gi
      # rgw: ...
      # rgw:
      #   requests:
      #     cpu: '1'
      #     memory: 4Gi

      # MON Defaults
      #   Limits: cpu 2, memory: 4Gi
      #   Requests: cpu: 1, memory: 4Gi
      # mon: ...

      # MGR Defaults
      #   Limits: cpu 2, memory: 4Gi
      #   Requests: cpu: 1, memory: 4Gi
      # mgr: ...

      # NOOBAA-CORE Defaults
      #   Limits: cpu 2, memory: 4Gi
      #   Requests: cpu: 1, memory: 4Gi
      # moobaa-core: ...

      # NOOBAA-DB Defaults
      #   Limits: cpu 2, memory: 4Gi
      #   Requests: cpu: 1, memory: 4Gi
      # moobaa-DB: ...

# Install Operator Compliance Operator
# Deploys Operator --> Subscription and Operatorgroup
# Syncwave: 0
helper-operator:
  operators:
    odf-operator:
      enabled: false
      syncwave: '0'
      namespace:
        name: openshift-storage
        create: false
      subscription:
        channel: stable-4.14
        approval: Automatic
        operatorName: odf-operator
        source: redhat-operators
        sourceNamespace: openshift-marketplace
      operatorgroup:
        create: true

helper-status-checker:
  enabled: false

  checks:

    - operatorName: odf-operator
      namespace:
        name: openshift-storage
      syncwave: 3

      serviceAccount:
        name: "status-checker-odf"

Installing the Chart

To install the chart with the release name my-release:

helm install my-release tjungbauer/<chart-name>>

The command deploys the chart on the Kubernetes cluster in the default configuration.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy openshift-data-foundation with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openshift-data-foundation on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopenshift-data-foundation is pinned at v1.0.37 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply