forked from openebs/openebs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cstor-upgrade): add upgrade runtask for cStor pool and volume fr…
…om 0.8.2 to 0.9.0 (openebs#2569) Signed-off-by: Ashutosh Kumar <ashutosh.kumar@openebs.io>
- Loading branch information
Ashutosh Kumar
authored and
Amit Kumar Das
committed
May 17, 2019
1 parent
a66add7
commit a12d0ef
Showing
10 changed files
with
1,845 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: openebs.io/v1alpha1 | ||
kind: CStorPoolCluster | ||
metadata: | ||
name: sparse-cluster-auto | ||
spec: | ||
name: sparse-cluster-auto | ||
type: sparse | ||
maxPools: 1 | ||
poolSpec: | ||
poolType: striped | ||
cacheFile: /var/openebs/sparse/sparse-claim-auto.cache | ||
overProvisioning: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: openebs-cstor-sparse-auto | ||
annotations: | ||
openebs.io/cas-type: cstor | ||
cas.openebs.io/config: | | ||
- name: CStorPoolCluster | ||
value: "sparse-cluster-auto" | ||
- name: ReplicaCount | ||
value: "1" | ||
#- name: TargetResourceLimits | ||
# value: |- | ||
# memory: 1Gi | ||
# cpu: 200m | ||
#- name: AuxResourceLimits | ||
# value: |- | ||
# memory: 0.5Gi | ||
# cpu: 50m | ||
provisioner: openebs.io/provisioner-iscsi | ||
--- | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: cstor-vol1-1r-claim | ||
spec: | ||
storageClassName: openebs-cstor-sparse-auto | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 4G | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
{ "op": "remove", "path": "/spec/strategy/rollingUpdate" }, | ||
{ "op": "replace", "path": "/spec/strategy/type", "value": "Recreate" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: upgraderesults.openebs.io | ||
spec: | ||
group: openebs.io | ||
names: | ||
kind: UpgradeResult | ||
plural: upgraderesults | ||
shortNames: | ||
- uresult | ||
singular: upgraderesult | ||
scope: Namespaced | ||
version: v1alpha1 |
Oops, something went wrong.