Helm Deploy(recommend) - tongdun/td-redis-operator GitHub Wiki
td-redis-operator
Installs the td-redis-operator
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
See 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
# 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
See 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.
See 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.
See helm upgrade for command documentation.