Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High availability for Redis, Solr and Postgres #36

Open
wants to merge 1 commit into
base: release/4.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/sddi-ckan/charts/redis/templates/redis-statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
app.kubernetes.io/component: {{ .Values.component }}
spec:
serviceName: {{ include "redis.fullname" . }}-hl
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "redis.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/sddi-ckan/charts/redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ persistence:
# helm.sh/resource-policy: keep

# -- Number of replicas. Only used if `autoscaling.enabled = false`.
# **Note:** Running multiple replicas requires to enable persistent data storage (`persistence.enabled = true`) and,
# if Pods run on different nodes, a storage that supports RWX.
replicaCount: 1
autoscaling:
# -- Enable/disable pod autoscaling, if disabled `replicaCount` is used to set number of pods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ metadata:
app.kubernetes.io/component: {{ .Values.component }}
spec:
serviceName: {{ include "solr.fullname" . }}-hl
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "solr.selectorLabels" . | nindent 6 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/sddi-ckan/charts/solr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ persistence:
annotations:
# helm.sh/resource-policy: keep

# -- Number of replicas.
# **Note:** Running multiple replicas requires to enable persistent data storage (`persistence.enabled = true`) and,
# if Pods run on different nodes, a storage that supports RWX.
replicaCount: 1

# initContainers --------------------------------------------------------------
# -- Sets [`initContainers`](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/).
# Set to `[]` to disable the default initContainers.
Expand Down