Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated operator.yaml and Readme.md file #377

Merged
merged 8 commits into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ The project is currently alpha. While no breaking API changes are currently plan
* [Upgrade a Pravega Cluster](#upgrade-a-pravega-cluster)
* [Uninstall the Pravega Cluster](#uninstall-the-pravega-cluster)
* [Uninstall the Operator](#uninstall-the-operator)
* [Upgrade the Operator](#upgrade-the-operator)
* [Manual installation](#manual-installation)
* [Configuration](#configuration)
* [Development](#development)
Expand Down Expand Up @@ -49,7 +48,11 @@ The Pravega Operator manages Pravega clusters deployed to Kubernetes and automat

> Note: If you are running on Google Kubernetes Engine (GKE), please [check this first](doc/development.md#installation-on-google-kubernetes-engine).

Use Helm to quickly deploy a Pravega operator with the release name `foo`.
In case you dont have a cert-manager, Install the cert-manager from the following link:-
pbelgundi marked this conversation as resolved.
Show resolved Hide resolved

https://cert-manager.io/docs/installation/kubernetes/

Then use Helm to quickly deploy a Pravega operator with the release name `foo`.

```
$ helm install charts/pravega-operator --name foo
Expand All @@ -67,28 +70,25 @@ foo-pravega-operator 1 1 1 1 17s
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.

### Upgrade the Operator
Pravega operator can be upgraded by modifying the image tag using
```
$ kubectl edit <operator deployment name>
```
Currently, the minor version upgrade is supported, e.g. 0.4.0 -> 0.4.1. However, the major version upgrade
has not been supported yet, e.g. 0.4.0 -> 0.5.0.

For upgrading the pravega operator refer this link
https://github.com/pravega/pravega-operator/wiki/Operator-Upgrades

### Install a sample Pravega cluster

#### Set up Tier 2 Storage

Pravega requires a long term storage provider known as Tier 2 storage.
Pravega requires a long term storage provider known as longtermStorage.

Check out the available [options for Tier 2](doc/tier2.md) and how to configure it.
Check out the available [options for long term storage](doc/longtermstorage.md) and how to configure it.

For demo purposes, you can quickly install a toy NFS server.

```
$ helm install stable/nfs-server-provisioner
```

And create a PVC for Tier 2 that utilizes it.
And create a PVC for longtermStorage that utilizes it.

```
$ kubectl create -f ./example/pvc-tier2.yaml
Expand All @@ -99,14 +99,14 @@ $ kubectl create -f ./example/pvc-tier2.yaml
Use Helm to install a sample Pravega cluster with release name `bar`.

```
$ helm install charts/pravega --name bar --set zookeeperUri=[ZOOKEEPER_HOST] --set bookkeeperUri=[BOOKKEEPER_SVC] --set pravega.tier2=[TIER2_NAME]
$ helm install charts/pravega --name bar --set zookeeperUri=[ZOOKEEPER_HOST] --set bookkeeperUri=[BOOKKEEPER_SVC] --set pravega.longtermStorage=[TIER2_NAME]
```

where:

- **[ZOOKEEPER_HOST]** is the host or IP address of your Zookeeper deployment (e.g. `zk-client:2181`). Multiple Zookeeper URIs can be specified, use a comma-separated list and DO NOT leave any spaces in between (e.g. `zk-0:2181,zk-1:2181,zk-2:2181`).
- **[BOOKKEEPER_SVC]** is the is the name of the headless service of your Bookkeeper deployment (e.g. `pravega-bk-bookie-0.pravega-bk-bookie-headless.default.svc.cluster.local:3181,pravega-bk-bookie-1.pravega-bk-bookie-headless.default.svc.cluster.local:3181,pravega-bk-bookie-2.pravega-bk-bookie-headless.default.svc.cluster.local:3181`).
- **[TIER2_NAME]** is the Tier 2 `PersistentVolumeClaim` name. `pravega-tier2` if you created the PVC above.
- **[TIER2_NAME]** is the longtermStorage `PersistentVolumeClaim` name. `pravega-tier2` if you created the PVC above.


Check out the [Pravega Helm Chart](charts/pravega) for more a complete list of installation parameters.
Expand Down
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
serviceAccountName: pravega-operator
containers:
- name: pravega-operator
image: pbelgundi/pravega-operator:m67
image: pravega/pravega-operator:0.5.0-rc1
pbelgundi marked this conversation as resolved.
Show resolved Hide resolved
imagePullPolicy: Always
ports:
- containerPort: 6000
pbelgundi marked this conversation as resolved.
Show resolved Hide resolved
Expand Down