github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/e2e/testdata/smoketest/starrocks/00_starrocksbcluster.yaml (about)

     1  ---
     2  # Source: starrocks-cluster/templates/cluster.yaml
     3  apiVersion: apps.kubeblocks.io/v1alpha1
     4  kind: Cluster
     5  metadata:
     6    name: starrocks-cluster
     7    labels: 
     8      helm.sh/chart: starrocks-cluster-0.1.0
     9      app.kubernetes.io/name: starrocks-cluster
    10      app.kubernetes.io/instance: starrocks-cluster
    11      app.kubernetes.io/version: "3.1.1"
    12      app.kubernetes.io/managed-by: Helm
    13  spec:
    14    clusterDefinitionRef: starrocks
    15    clusterVersionRef: starrocks-3.1.1 # ref clusterversion.name
    16    terminationPolicy: Delete
    17    affinity:
    18      topologyKeys: 
    19        - kubernetes.io/hostname
    20    componentSpecs:
    21      - name: fe
    22        componentDefRef: fe
    23        replicas: 1
    24      - name: be
    25        componentDefRef: be
    26        replicas: 1
    27        volumeClaimTemplates:
    28          - name: be-storage # ref clusterdefinition components.containers.volumeMounts.name
    29            spec:
    30              storageClassName: 
    31              accessModes:
    32                - ReadWriteOnce
    33              resources:
    34                requests:
    35                  storage: 10Gi