Mongo on openebs #905
Closed
fanux
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using this CloudImage
This is a CloudImage.
Run already exist cluster:
Config storage Dir
storage-class.yaml:
Edit the BasePath value, then:
Using storage
Now the PVC not bind
Checkout the bound pvc
Clean up
link
Trace your data
We got the data selected-node is: iz2ze0qiwmjj4p5rncuhhoz
You use the storageClass is: local-hostpath
Show the storageClass detail:
So the data dir is
/data
.So your data is storage in: iz2ze0qiwmjj4p5rncuhhoz:/data/pvc-056c7781-c9b3-46f6-aa6e-a3a2d72456d6
Using openebs as mongo storage class
Config values (replicaset mod):
Change StorageClass:
Check your pod:
Check the pvc:
Using Client pod to test your cluster:
Run mongo cli:
Minio on openebs
Install minio plugin
Install minio operator
Create minio Cluster
You can using Console to create a cluster:
Or using helm chart:
Change values.pools.servers[].storageClassName = 'local-hostpath'
Then install the cluster:
Trouble shooting
Caused by dns error, make sure you cluster DNS is worked.
Edit you all host resolv.conf to:
Then restart coreDNS
This caused by log statefulset using the default storageClass, not the storageClass your specified when create tenants.
You need to set the default storage class:
Beta Was this translation helpful? Give feedback.
All reactions