Skip to content

Commit

Permalink
fix(yaml): fixing mongo yaml
Browse files Browse the repository at this point in the history
As the selector is needed in the latest kubetnetes cluster
Also updated zfs volume custom resource and renamed few
fields of percona application.

Signed-off-by: Pawan <pawan@mayadata.io>
  • Loading branch information
pawanpraka1 authored and kmova committed Nov 25, 2019
1 parent 0b7229a commit e953af9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
7 changes: 5 additions & 2 deletions deploy/sample/mongo-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: mongo-pv-az
name: zfspv-mongo
parameters:
volblocksize: "4k"
poolname: "zfspv-pool"
Expand All @@ -32,6 +32,9 @@ kind: StatefulSet
metadata:
name: mongo
spec:
selector:
matchLabels:
role: mongo
serviceName: "mongo"
replicas: 3
template:
Expand Down Expand Up @@ -63,7 +66,7 @@ spec:
- metadata:
name: mongo-persistent-storage
spec:
storageClassName: mongo-pv-az
storageClassName: zfspv-mongo
accessModes:
- ReadWriteOnce
resources:
Expand Down
8 changes: 4 additions & 4 deletions deploy/sample/percona.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: openebs-zfspv
name: zfspv-percona
allowVolumeExpansion: true
parameters:
volblocksize: "4k"
Expand All @@ -14,9 +14,9 @@ provisioner: zfs.csi.openebs.io
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: csi-zfspv
name: zfspv-percona
spec:
storageClassName: openebs-zfspv
storageClassName: zfspv-percona
accessModes:
- ReadWriteOnce
resources:
Expand Down Expand Up @@ -102,7 +102,7 @@ spec:
volumes:
- name: demo-vol1
persistentVolumeClaim:
claimName: csi-zfspv
claimName: zfspv-percona
- name: sqltest-configmap
configMap:
name: sqltest
Expand Down
3 changes: 2 additions & 1 deletion deploy/sample/zfspvcr.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
apiVersion: openebs.io/v1alpha1
kind: ZFSVolume
metadata:
name: pvc-37b07ad6-db68-11e9-bbb6-000c296e38d9
name: pvc-34133838-0d0d-11ea-96e3-42010a800114
namespace: openebs
spec:
capacity: "4294967296"
compression: "off"
dedup: "off"
encryption: ""
fsType: "zfs"
keyformat: ""
keylocation: ""
ownerNodeID: zfspv-node1
Expand Down

0 comments on commit e953af9

Please sign in to comment.