Installs the td-redis-operator
- Kubernetes 1.16+
- Helm 3+
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.
$ 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
# enable arguments
$ helm install --namespace=redis [RELEASE_NAME] td-redis-operator/td-redis-operator --set type=cluster
- use --set type=cluster or type=standby to choice which kind of redis to be installed.
- --set type=manager. Install the web management dashboard of td-redis-operator
- with
type: all
defined in values.yaml. No type to be set will install all of them - use --set type=none. only install redis operator
See 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
See helm install for command documentation.
# 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
# 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.