Using an OpenEBS storage class to create dynamic PVs

Let's perform the following steps to deploy dynamically created persistent volumes using the OpenEBS storage provider:

  1. Clone the examples repository:
$ git clone https://github.com/k8sdevopscookbook/src.git
$ cd src/chapter5/openebs/
  1. Review minio.yaml and note that PVCs are using the openebs-stor-default storage class. 
  1. Deploy Minio:
$ kubectl apply -f minio.yaml
deployment.apps/minio-deployment created
persistentvolumeclaim/minio-pv-claim created
service/minio-service created
  1. 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
  1. Add port 9000 to the end of the address and open the external IP of the Minio service in your browser:
  2. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.204.0