Thursday, July 23, 2020

Deployment

Deploying Pravega manually on Kubernetes:
 
1) Install Bookkeeper
 
helm install bookkeeper-operator charts/bookkeeper-operator
Verify that the Bookkeeper Operator is running.
 
$ kubectl get deploy
NAME                          DESIRED   CURRENT   UP-TO-DATE   AVAILABLE     AGE
bookkeeper-operator              1         1         1            1          17s
Install the Operator in Test Mode
The Operator can be run in test mode if we want to deploy the Bookkeeper Cluster on minikube or on a cluster with very limited resources by setting testmode: true in values.yaml file. Operator running in test mode skips the minimum replica requirement checks. Test mode provides a bare minimum setup and is not recommended to be used in production environments.
 
2) Install the zookeeper:
 
helm install zookeeper-operator charts/zookkeeper-operator
Verify that the zookeeper Operator is running.
 
$ kubectl get deploy
NAME                 DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
zookeeper-operator   1         1         1            1           12s
 
3) Install Pravega
 
Install the Operator
 
Deploying in Test Mode
The Operator can be run in a "test" mode if we want to create pravega on minikube or on a cluster with very limited resources by enabling testmode: true in values.yaml file. Operator running in test mode skips minimum replica requirement checks on Pravega components. "Test" mode ensures a bare minimum setup of pravega and is not recommended to be used in production environments.
 Using the testmode we can even specify a custom pravega version that can be skipped from the validations of the webhook.
 
Install a sample Pravega cluster
Set up Tier 2 Storage
Pravega requires a long term storage provider known as longtermStorage.
 
Check out the available options for long term storage and how to configure it.
 
For demo purposes, an NFS server can be installed. 
 
$ helm install stable/nfs-server-provisioner --generate-name
 
helm install pravega-operator charts/pravega-operator
Verify that the pravega Operator is running.
 
$ kubectl get deploy
NAME                 DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
pravega-operator   1         1         1            1           13s

Please note that the Kubernetes mode differs from the manual steps for VM mode installation in the provisioning of K8s services 

No comments:

Post a Comment