Skip to content

Commit 1380cfe

Browse files
committed
chore(addons): add redis cluster plans
1 parent ce395a4 commit 1380cfe

37 files changed

Lines changed: 640 additions & 1 deletion
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
credential:
2+
- name: HOST
3+
valueFrom:
4+
serviceRef:
5+
name: {{ template "common.names.fullname" . }}
6+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
7+
8+
- name: PORT
9+
valueFrom:
10+
serviceRef:
11+
name: {{ template "common.names.fullname" . }}
12+
jsonpath: '{ .spec.ports[?(@.name=="tcp-redis")].port }'
13+
14+
{{- if and .Values.usePassword (not .Values.existingSecret) }}
15+
- name: REDIS_PASSWORD
16+
valueFrom:
17+
secretKeyRef:
18+
name: {{ template "common.names.fullname" . }}
19+
jsonpath: '{ .data.redis-password }'
20+
{{- end }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"imagePullPolicy": {
6+
"type": "string",
7+
"enum": ["Always", "IfNotPresent", "Never"],
8+
"default": "IfNotPresent",
9+
"title": "Image pull policy"
10+
}
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-1024"
2+
id: 02f33c73-1ccb-4911-a6e6-287aef0085e0
3+
description: "Redis cluster standard-1024 plan which limit resources memory size 1024Mi."
4+
displayName: "standard-1024"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## @param fullnameOverride String to fully override common.names.fullname template
2+
##
3+
fullnameOverride: "hb-redis-cluster-standard-1024"
4+
5+
## Enable persistence using Persistent Volume Claims
6+
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
7+
##
8+
persistence:
9+
## @param persistence.path Path to mount the volume at, to use other images Redis® images.
10+
##
11+
path: /drycc/redis/data
12+
accessModes:
13+
- ReadWriteOnce
14+
## @param persistence.size Size of data volume
15+
##
16+
size: 2Gi
17+
18+
## @section Redis® statefulset parameters
19+
##
20+
21+
redis:
22+
## Redis® resource requests and limits
23+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
24+
## @param redis.resources.limits The resources limits for the container
25+
## @param redis.resources.requests The requested resources for the container
26+
##
27+
resources:
28+
limits:
29+
cpu: 200m
30+
memory: 1024Mi
31+
requests:
32+
cpu: 20m
33+
memory: 512Mi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "standard-128"
22
id: c3bf5ca6-76d1-49ad-ad3c-887f1250f0ba
3-
description: "Redis standard-128 plan which limit resources memory size 128Mi."
3+
description: "Redis cluster standard-128 plan which limit resources memory size 128Mi."
44
displayName: "standard-128"
55
bindable: true
66
maximum_polling_duration: 1800
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
credential:
2+
- name: HOST
3+
valueFrom:
4+
serviceRef:
5+
name: {{ template "common.names.fullname" . }}
6+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
7+
8+
- name: PORT
9+
valueFrom:
10+
serviceRef:
11+
name: {{ template "common.names.fullname" . }}
12+
jsonpath: '{ .spec.ports[?(@.name=="tcp-redis")].port }'
13+
14+
{{- if and .Values.usePassword (not .Values.existingSecret) }}
15+
- name: REDIS_PASSWORD
16+
valueFrom:
17+
secretKeyRef:
18+
name: {{ template "common.names.fullname" . }}
19+
jsonpath: '{ .data.redis-password }'
20+
{{- end }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"imagePullPolicy": {
6+
"type": "string",
7+
"enum": ["Always", "IfNotPresent", "Never"],
8+
"default": "IfNotPresent",
9+
"title": "Image pull policy"
10+
}
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-16384"
2+
id: ad5e239d-ba4e-4eca-b432-079b5b0a207c
3+
description: "Redis cluster standard-16384 plan which limit resources memory size 16384Mi."
4+
displayName: "standard-16384"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## @param fullnameOverride String to fully override common.names.fullname template
2+
##
3+
fullnameOverride: "hb-redis-cluster-standard-16384"
4+
5+
## Enable persistence using Persistent Volume Claims
6+
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
7+
##
8+
persistence:
9+
## @param persistence.path Path to mount the volume at, to use other images Redis® images.
10+
##
11+
path: /drycc/redis/data
12+
accessModes:
13+
- ReadWriteOnce
14+
## @param persistence.size Size of data volume
15+
##
16+
size: 32Gi
17+
18+
## @section Redis® statefulset parameters
19+
##
20+
21+
redis:
22+
## Redis® resource requests and limits
23+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
24+
## @param redis.resources.limits The resources limits for the container
25+
## @param redis.resources.requests The requested resources for the container
26+
##
27+
resources:
28+
limits:
29+
cpu: 1000m
30+
memory: 16Gi
31+
requests:
32+
cpu: 100m
33+
memory: 8Gi
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
credential:
2+
- name: HOST
3+
valueFrom:
4+
serviceRef:
5+
name: {{ template "common.names.fullname" . }}
6+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
7+
8+
- name: PORT
9+
valueFrom:
10+
serviceRef:
11+
name: {{ template "common.names.fullname" . }}
12+
jsonpath: '{ .spec.ports[?(@.name=="tcp-redis")].port }'
13+
14+
{{- if and .Values.usePassword (not .Values.existingSecret) }}
15+
- name: REDIS_PASSWORD
16+
valueFrom:
17+
secretKeyRef:
18+
name: {{ template "common.names.fullname" . }}
19+
jsonpath: '{ .data.redis-password }'
20+
{{- end }}

0 commit comments

Comments
 (0)