Skip to content

Instantly share code, notes, and snippets.

@yankay
Last active July 21, 2022 10:34
Show Gist options
  • Select an option

  • Save yankay/4a262b84023fe157e53b833898c11f25 to your computer and use it in GitHub Desktop.

Select an option

Save yankay/4a262b84023fe157e53b833898c11f25 to your computer and use it in GitHub Desktop.
快速安装 spotahome redis-operator
helm repo add redis-operator https://spotahome.github.io/redis-operator
helm repo update redis-operator
helm install redis-operator -n redis-operator redis-operator/redis-operator --create-namespace \
--set image.repository=quay.m.daocloud.io/spotahome/redis-operator
kubectl apply -f https://gist.githubusercontent.com/yankay/4a262b84023fe157e53b833898c11f25/raw/de299a48db96fa1d46d40fbc62a0bf9afd032112/redis.yaml
apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
name: redis
spec:
sentinel:
replicas: 3
image: docker.m.daocloud.io/redis:6.2.6-alpine
redis:
replicas: 3
image: docker.m.daocloud.io/redis:6.2.6-alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment