Skip to content

Install td redis operator via HELM

house edited this page Dec 15, 2022 · 10 revisions

Prerequisites

  • Kubernetes 1.16+
  • Helm 3+

Get Repo Info

helm repo add td-redis-operator https://tongdun.github.io/td-redis-operator/charts/td-redis-operator
helm repo update

View helm repo for command documentation.

Install Chart

$ kubectl create namespace redis # If you have already created it, please skip.
# Helm
$ helm install --namespace=redis [RELEASE_NAME] td-redis-operator/td-redis-operator
or
$ helm install [RELEASE_NAME] td-redis-operator/td-redis-operator # will be installed into the default namespace

$ helm install --namespace=redis [RELEASE_NAME] td-redis-operator/td-redis-operator --set type=cluster
# You can use --set type=cluster or type=standby to choice which kind of redis to be installed .
# use --set type=manager to install the dashboard of td-redis-manager
# By default. cluster/standby redis are installed, and the dashboard is installed at the same time

View RedisStandby and RedisCluster.

# kubectl  get pod
NAME                                   READY   STATUS    RESTARTS   AGE
predixy-redis-jerry-7bcdf8f474-q2rnh   1/1     Running   0          16s
predixy-redis-jerry-7bcdf8f474-tc7lp   1/1     Running   0          16s
redis-jerry-0-0                        2/2     Running   0          31s
redis-jerry-0-1                        2/2     Running   0          29s
redis-jerry-1-0                        2/2     Running   0          31s
redis-jerry-1-1                        2/2     Running   0          28s
redis-jerry-2-0                        2/2     Running   0          31s
redis-jerry-2-1                        2/2     Running   0          29s
redis-tom-0                            2/2     Running   0          31s
redis-tom-1                            1/2     Running   0          8s
sentinel-tom-0                         1/1     Running   0          31s
sentinel-tom-1                         1/1     Running   0          28s
sentinel-tom-2                         1/1     Running   0          23s
td-redis-operator-65bf6989bf-tdc6k     1/1     Running   0          32s

You can set parameters "--set type=manager" to install the web management platform.

$ helm install --namespace=redis [RELEASE_NAME] td-redis-operator/td-redis-operator --set type=manager

You can view more installation instructions about the web management platform.

View helm install for command documentation.

Uninstall Chart

# Helm
$ helm uninstall [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

View helm uninstall for command documentation.

CRDs created by this chart are not removed by default and should be manually cleaned up:

kubectl delete crd redisclusters.cache.tongdun.net
kubectl delete crd redisstandbies.cache.tongdun.net

Upgrading Chart

# Helm
$ helm upgrade [RELEASE_NAME] td-redis-operator/td-redis-operator

With Helm v3, CRDs created by this chart are not updated by default and should be manually updated. Consult also the Helm Documentation on CRDs.

View helm upgrade for command documentation.

Clone this wiki locally