├── .gitignore ├── .python-version ├── CHANGELOG.md ├── LICENSE ├── README.md ├── example ├── console.yaml ├── sentinel-service.yaml ├── sentinel.yaml ├── server-service.yaml └── server.yaml ├── images ├── console │ └── Dockerfile ├── sentinel │ ├── Dockerfile │ ├── k8s-redis-ha-sentinel │ ├── run.sh │ └── sentinel.template.conf ├── server │ ├── Dockerfile │ ├── k8s-redis-ha-server │ ├── redis.template.conf │ └── run.sh └── sword │ ├── Dockerfile │ └── run.sh └── test ├── requirements.txt ├── script ├── check-pod-status ├── get-sentinel-ip ├── get-slave-ip ├── kube-redis-cli-master └── kube-redis-cli-slave ├── setup.cfg └── test.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/.gitignore -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.5.2 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/README.md -------------------------------------------------------------------------------- /example/console.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/example/console.yaml -------------------------------------------------------------------------------- /example/sentinel-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/example/sentinel-service.yaml -------------------------------------------------------------------------------- /example/sentinel.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/example/sentinel.yaml -------------------------------------------------------------------------------- /example/server-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/example/server-service.yaml -------------------------------------------------------------------------------- /example/server.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/example/server.yaml -------------------------------------------------------------------------------- /images/console/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/console/Dockerfile -------------------------------------------------------------------------------- /images/sentinel/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/sentinel/Dockerfile -------------------------------------------------------------------------------- /images/sentinel/k8s-redis-ha-sentinel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/sentinel/k8s-redis-ha-sentinel -------------------------------------------------------------------------------- /images/sentinel/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/sentinel/run.sh -------------------------------------------------------------------------------- /images/sentinel/sentinel.template.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/sentinel/sentinel.template.conf -------------------------------------------------------------------------------- /images/server/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/server/Dockerfile -------------------------------------------------------------------------------- /images/server/k8s-redis-ha-server: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/server/k8s-redis-ha-server -------------------------------------------------------------------------------- /images/server/redis.template.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/server/redis.template.conf -------------------------------------------------------------------------------- /images/server/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/server/run.sh -------------------------------------------------------------------------------- /images/sword/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/sword/Dockerfile -------------------------------------------------------------------------------- /images/sword/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/images/sword/run.sh -------------------------------------------------------------------------------- /test/requirements.txt: -------------------------------------------------------------------------------- 1 | autopep8 2 | redis 3 | flake8 4 | ipython 5 | isort 6 | nose 7 | yapf 8 | -------------------------------------------------------------------------------- /test/script/check-pod-status: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/test/script/check-pod-status -------------------------------------------------------------------------------- /test/script/get-sentinel-ip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/test/script/get-sentinel-ip -------------------------------------------------------------------------------- /test/script/get-slave-ip: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | ./test/script/kube-redis-cli-master role | grep '[0-9]\{1,3\}\.' 6 | -------------------------------------------------------------------------------- /test/script/kube-redis-cli-master: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/test/script/kube-redis-cli-master -------------------------------------------------------------------------------- /test/script/kube-redis-cli-slave: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/test/script/kube-redis-cli-slave -------------------------------------------------------------------------------- /test/setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/test/setup.cfg -------------------------------------------------------------------------------- /test/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tarosky/k8s-redis-ha/HEAD/test/test.py --------------------------------------------------------------------------------