Skip to content

Commit

Permalink
Merge pull request #67 from ucloud/feature/helm-chart-on-github
Browse files Browse the repository at this point in the history
host chart on github
  • Loading branch information
gaopenghigh authored Oct 21, 2020
2 parents 68cf8a6 + f4cdcea commit a01fa97
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ Table of Contents

* [redis-cluster-operator](#redis-cluster-operator)
* [Overview](#overview)
* [Table of Contents](#table-of-contents)
* [Prerequisites](#prerequisites)
* [Features](#features)
* [Quick Start](#quick-start)
* [Deploy redis cluster operator](#deploy-redis-cluster-operator)
* [Install Step by step](#install-step-by-step)
* [Install using helm chart](#install-using-helm-chart)
* [Usage](#usage)
* [Deploy a sample Redis Cluster](#deploy-a-sample-redis-cluster)
* [Scaling Up the Redis Cluster](#scaling-up-the-redis-cluster)
* [Scaling Down the Redis Cluster](#scaling-down-the-redis-cluster)
Expand Down Expand Up @@ -62,6 +66,8 @@ Table of Contents

### Deploy redis cluster operator

#### Install Step by step

Register the DistributedRedisCluster and RedisClusterBackup custom resource definition (CRD).
```
$ kubectl create -f deploy/crds/redis.kun_distributedredisclusters_crd.yaml
Expand All @@ -84,13 +90,27 @@ $ kubectl create -f deploy/namespace/role_binding.yaml
$ kubectl create -f deploy/namespace/operator.yaml
```

#### Install using helm chart

Add Helm repository
```
helm repo add ucloud-operator https://ucloud.github.io/redis-cluster-operator/
helm repo update
```

Install chart
```
helm install --generate-name ucloud-operator/redis-cluster-operator
```

Verify that the redis-cluster-operator is up and running:
```
$ kubectl get deployment
NAME READY UP-TO-DATE AVAILABLE AGE
redis-cluster-operator 1/1 1 1 1d
```

### Usage
#### Deploy a sample Redis Cluster

NOTE: **Only the redis cluster that use persistent storage(pvc) can recover after accidental deletion or rolling update.Even if you do not use persistence(like rdb or aof), you need to set pvc for redis.**
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a01fa97

Please sign in to comment.