Port Redis HA from Helm
This commit is contained in:
parent
bb924a1307
commit
f9e8f9f6ce
5
kubernetes-templates/redis/0/README.md
Normal file
5
kubernetes-templates/redis/0/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Redis
|
||||||
|
|
||||||
|
Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
|
||||||
|
|
||||||
|
This is a high-availability deployment of Redis. The Redis master is used for bootstrapping and may be deleted once the cluster is stable.
|
15
kubernetes-templates/redis/0/rancher-compose.yml
Normal file
15
kubernetes-templates/redis/0/rancher-compose.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
.catalog:
|
||||||
|
name: Redis
|
||||||
|
version: 2.8.23-rancher1
|
||||||
|
description: A highly-available in-memory data structure store
|
||||||
|
questions:
|
||||||
|
- variable: "REDIS_REPLICAS"
|
||||||
|
label: "Initial number of Redis nodes"
|
||||||
|
required: true
|
||||||
|
type: "int"
|
||||||
|
default: 3
|
||||||
|
- variable: "SENTINEL_REPLICAS"
|
||||||
|
label: "Initial number of Redis Sentinel nodes"
|
||||||
|
required: true
|
||||||
|
type: "int"
|
||||||
|
default: 3
|
39
kubernetes-templates/redis/0/redis-master.yaml
Normal file
39
kubernetes-templates/redis/0/redis-master.yaml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
heritage: helm
|
||||||
|
name: redis
|
||||||
|
redis-sentinel: "true"
|
||||||
|
role: master
|
||||||
|
bootstrap: "true"
|
||||||
|
name: redis-master
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: master
|
||||||
|
image: "deis/redis:v0.0.5"
|
||||||
|
env:
|
||||||
|
- name: MASTER
|
||||||
|
value: "true"
|
||||||
|
- name: DEBUG
|
||||||
|
value: "1"
|
||||||
|
ports:
|
||||||
|
- containerPort: 6379
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "0.1"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /redis-master-data
|
||||||
|
name: data
|
||||||
|
- name: sentinel
|
||||||
|
image: "deis/redis:v0.0.5"
|
||||||
|
env:
|
||||||
|
- name: SENTINEL
|
||||||
|
value: "true"
|
||||||
|
- name: DEBUG
|
||||||
|
value: "1"
|
||||||
|
ports:
|
||||||
|
- containerPort: 26379
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
emptyDir: {}
|
30
kubernetes-templates/redis/0/redis-rc.yaml
Normal file
30
kubernetes-templates/redis/0/redis-rc.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ReplicationController
|
||||||
|
metadata:
|
||||||
|
name: redis
|
||||||
|
labels:
|
||||||
|
heritage: helm
|
||||||
|
spec:
|
||||||
|
replicas: ${REDIS_REPLICAS}
|
||||||
|
selector:
|
||||||
|
name: redis
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: redis-cluster
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: redis
|
||||||
|
image: "deis/redis:v0.0.5"
|
||||||
|
ports:
|
||||||
|
- containerPort: 6379
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "0.1"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /redis-master-data
|
||||||
|
name: data
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
emptyDir: {}
|
26
kubernetes-templates/redis/0/redis-sentinel-rc.yaml
Normal file
26
kubernetes-templates/redis/0/redis-sentinel-rc.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ReplicationController
|
||||||
|
metadata:
|
||||||
|
name: redis-sentinel
|
||||||
|
labels:
|
||||||
|
heritage: helm
|
||||||
|
spec:
|
||||||
|
replicas: ${SENTINEL_REPLICAS}
|
||||||
|
selector:
|
||||||
|
redis-sentinel: "true"
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
name: redis-sentinel
|
||||||
|
redis-sentinel: "true"
|
||||||
|
role: sentinel
|
||||||
|
provider: redis
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: sentinel
|
||||||
|
image: "deis/redis:v0.0.5"
|
||||||
|
env:
|
||||||
|
- name: SENTINEL
|
||||||
|
value: "true"
|
||||||
|
ports:
|
||||||
|
- containerPort: 26379
|
13
kubernetes-templates/redis/0/redis-sentinel-service.yaml
Normal file
13
kubernetes-templates/redis/0/redis-sentinel-service.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
heritage: helm
|
||||||
|
name: sentinel
|
||||||
|
role: service
|
||||||
|
name: redis-sentinel
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 26379
|
||||||
|
selector:
|
||||||
|
redis-sentinel: "true"
|
16
kubernetes-templates/redis/catalogIcon-redis.svg
Normal file
16
kubernetes-templates/redis/catalogIcon-redis.svg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||||
|
<svg width="256px" height="220px" viewBox="0 0 256 220" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin meet">
|
||||||
|
<g>
|
||||||
|
<path d="M245.969687,168.943256 C232.308259,176.064479 161.536048,205.163388 146.468577,213.017633 C131.402107,220.873879 123.031844,220.797876 111.129473,215.107699 C99.2271007,209.417521 23.9127473,178.99557 10.3463234,172.511368 C3.56511141,169.270267 0,166.535181 0,163.9511 L0,138.075292 C0,138.075292 98.0490639,116.729625 113.878559,111.051447 C129.707053,105.372269 135.199225,105.167264 148.669646,110.101418 C162.141067,115.036572 242.686583,129.569026 256,134.445178 C256,134.445178 255.993999,157.5559 255.993999,159.954975 C255.996,162.513055 252.923904,165.319143 245.969687,168.943256" fill="#912626"></path>
|
||||||
|
<path d="M245.964922,143.220067 C232.303935,150.33806 161.534003,179.438032 146.467017,187.292024 C131.401031,195.149018 123.031039,195.072017 111.12905,189.382023 C99.2260618,183.696028 23.9151336,153.269057 10.3491466,146.788063 C-3.21684053,140.303069 -3.50184026,135.840074 9.82514705,130.622079 C23.1511343,125.402084 98.0490629,96.0171117 113.880047,90.3381172 C129.708033,84.6611226 135.199028,84.4541228 148.669014,89.3901181 C162.140002,94.3241134 232.487935,122.325087 245.799922,127.200082 C259.11491,132.081078 259.625908,136.099073 245.964922,143.220067" fill="#C6302B"></path>
|
||||||
|
<path d="M245.969687,127.074354 C232.308259,134.195577 161.536048,163.294486 146.468577,171.151732 C131.402107,179.004977 123.031844,178.928975 111.129473,173.238797 C99.2261007,167.551619 23.9127473,137.126668 10.3463234,130.642465 C3.56511141,127.401364 0,124.669279 0,122.085199 L0,96.2063895 C0,96.2063895 98.0490639,74.8617226 113.878559,69.182545 C129.707053,63.5043676 135.199225,63.2983612 148.669646,68.2325154 C162.141067,73.1676697 242.686583,87.6971237 256,92.5742761 C256,92.5742761 255.993999,115.684998 255.993999,118.087073 C255.996,120.644153 252.923904,123.450241 245.969687,127.074354" fill="#912626"></path>
|
||||||
|
<path d="M245.964922,101.351164 C232.303935,108.471157 161.534003,137.569129 146.467017,145.426122 C131.401031,153.280114 123.031039,153.203114 111.12905,147.51312 C99.2260618,141.827125 23.9151336,111.401154 10.3491466,104.91916 C-3.21684053,98.4361664 -3.50184026,93.9721706 9.82514705,88.7521756 C23.1511343,83.5351806 98.0490629,54.1482087 113.880047,48.4702141 C129.708033,42.7922195 135.199028,42.5862197 148.669014,47.521215 C162.140002,52.4552102 232.487935,80.4541835 245.799922,85.3311789 C259.11491,90.2101742 259.625908,94.2301704 245.964922,101.350163 L245.964922,101.351164" fill="#C6302B"></path>
|
||||||
|
<path d="M245.969687,83.6525661 C232.308259,90.7737887 161.536048,119.873698 146.468577,127.730944 C131.402107,135.585189 123.031844,135.508187 111.129473,129.818008 C99.2261007,124.130831 23.9127473,93.7048802 10.3463234,87.2226777 C3.56511141,83.9805764 0,81.2474909 0,78.6654102 L0,52.7856015 C0,52.7856015 98.0490639,31.4419345 113.878559,25.7637571 C129.707053,20.0845797 135.199225,19.8795733 148.669646,24.8137275 C162.141067,29.7488817 242.686583,44.2783357 256,49.1554881 C256,49.1554881 255.993999,72.2662103 255.993999,74.6672853 C255.996,77.2223652 252.923904,80.0284528 245.969687,83.6525661" fill="#912626"></path>
|
||||||
|
<path d="M245.964922,57.929387 C232.303935,65.0493802 161.534003,94.1493524 146.467017,102.004345 C131.401031,109.858338 123.031039,109.781338 111.12905,104.093343 C99.2270617,98.4053484 23.9151336,67.9813773 10.3491466,61.4983836 C-3.21684053,55.0153898 -3.50184026,50.550394 9.82514705,45.331399 C23.1511343,40.113404 98.0490629,10.729432 113.880047,5.04943744 C129.708033,-0.629557148 135.199028,-0.833556953 148.669014,4.10143834 C162.140002,9.03643363 232.487935,37.0354069 245.799922,41.9124022 C259.11491,46.7883976 259.625908,50.8093938 245.964922,57.929387" fill="#C6302B"></path>
|
||||||
|
<path d="M159.282977,32.7570853 L137.273922,35.0422326 L132.346419,46.8976124 L124.387597,33.667969 L98.973147,31.383814 L117.936992,24.5452403 L112.247442,14.0472558 L130.001736,20.9910078 L146.739969,15.5108217 L142.21631,26.3660155 L159.282977,32.7570853" fill="#FFFFFF"></path>
|
||||||
|
<path d="M131.03169,90.2747287 L89.9546047,73.2378295 L148.815752,64.2034109 L131.03169,90.2747287" fill="#FFFFFF"></path>
|
||||||
|
<path d="M74.0816124,39.3466047 C91.4568682,39.3466047 105.541829,44.8069457 105.541829,51.5413333 C105.541829,58.2767132 91.4568682,63.736062 74.0816124,63.736062 C56.7073488,63.736062 42.6213953,58.2767132 42.6213953,51.5413333 C42.6213953,44.8069457 56.7073488,39.3466047 74.0816124,39.3466047" fill="#FFFFFF"></path>
|
||||||
|
<path d="M185.29476,35.9977674 L220.130605,49.7642171 L185.324527,63.5167752 L185.29476,35.9977674" fill="#621B1C"></path>
|
||||||
|
<path d="M146.754853,51.2426667 L185.29476,35.9977674 L185.324527,63.5167752 L181.546047,64.9952248 L146.754853,51.2426667" fill="#9A2928"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 4.9 KiB |
4
kubernetes-templates/redis/config.yml
Normal file
4
kubernetes-templates/redis/config.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: Redis
|
||||||
|
description: A highly-available in-memory data structure store
|
||||||
|
version: 2.8.23-rancher1
|
||||||
|
category: Databases
|
Loading…
x
Reference in New Issue
Block a user