github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/pkg/cli/testing/testdata/resource-constraint-general-without-selector.yaml (about)

     1  apiVersion: apps.kubeblocks.io/v1alpha1
     2  kind: ComponentResourceConstraint
     3  metadata:
     4    name: kb-resource-constraint-general-without-selector
     5    labels:
     6      resourceconstraint.kubeblocks.io/provider: kubeblocks
     7  spec:
     8    rules:
     9    - name: c1
    10      cpu:
    11        min: 0.5
    12        max: 2
    13        step: 0.5
    14      memory:
    15        sizePerCPU: 1Gi
    16    - name: c2
    17      cpu:
    18        min: 2
    19        max: 2
    20      memory:
    21        sizePerCPU: 2Gi
    22    - name: c3
    23      cpu:
    24        slots: [2, 4, 8, 16, 24, 32, 48, 64, 96, 128]
    25      memory:
    26        sizePerCPU: 4Gi