Skip to content

Commit

Permalink
Refact(cstor-pool,spare): Update SPC type to blockdevice
Browse files Browse the repository at this point in the history
With latest changes, to create StoragePoolClaim we have to
use spc type blockdevice as common type instead of sparse/disk
for creating sparse or disk based cstor pools

```
apiVersion: openebs.io/v1alpha1
kind: StoragePoolClaim
metadata:
  name: sparse-claim-auto
spec:
  name: sparse-claim-auto
  type: blockdevice
  maxPools: 1
  minPools: 1
  poolSpec:
    poolType: striped
    cacheFile: /var/openebs/sparse/sparse-claim-auto.cache
    overProvisioning: false
```

Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 committed Jun 7, 2019
1 parent df079dc commit e07be28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/install/v1alpha1/cstor_sparse_pool_claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ metadata:
name: cstor-sparse-pool
annotations:
cas.openebs.io/config: |
#For default sparse pool set the limit at 2Gi to safegaurd
# cstor pool from consuming more memory and causing the node
# to get into memory pressure condition. By default K8s will set the
#For default sparse pool set the limit at 2Gi to safegaurd
# cstor pool from consuming more memory and causing the node
# to get into memory pressure condition. By default K8s will set the
# Requests to the same value as Limits. For example, when Limit is
# set to 2Gi, the pool could get stuck in pending schedule state,
# if node doesn't have Requested (2Gi) memory.
# Hence setting the Requests to a minimum (0.5Gi).
# if node doesn't have Requested (2Gi) memory.
# Hence setting the Requests to a minimum (0.5Gi).
- name: PoolResourceRequests
value: |-
memory: 0.5Gi
Expand All @@ -74,7 +74,7 @@ metadata:
# cpu: 100m
spec:
name: cstor-sparse-pool
type: sparse
type: blockdevice
maxPools: 3
poolSpec:
poolType: striped
Expand Down

0 comments on commit e07be28

Please sign in to comment.