Last active
July 21, 2022 10:34
-
-
Save yankay/4a262b84023fe157e53b833898c11f25 to your computer and use it in GitHub Desktop.
快速安装 spotahome redis-operator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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