Let's perform the following steps to deploy dynamically created persistent volumes using the OpenEBS storage provider:
- Clone the examples repository:
$ git clone https://github.com/k8sdevopscookbook/src.git
$ cd src/chapter5/openebs/
- Review minio.yaml and note that PVCs are using the openebs-stor-default storage class.
- Deploy Minio:
$ kubectl apply -f minio.yaml
deployment.apps/minio-deployment created
persistentvolumeclaim/minio-pv-claim created
service/minio-service created
- Get the Minio service load balancer's external IP:
$ kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.3.0.1 <none> 443/TCP 54m
minio-service LoadBalancer 10.3.0.29 adb3bdaa893984515b9527ca8f2f8ca6-1957771474.us-west-2.elb. amazonaws.com 9000:32701/TCP 3s
- Add port 9000 to the end of the address and open the external IP of the Minio service in your browser:
- Use the username minio, and the password minio123 to log in to the Minio deployment backed by persistent OpenEBS volumes:
You have now successfully deployed a stateful application that is deployed on the OpenEBS cStor storage engine.