diff --git a/charts/redis-stack-server/Chart.yaml b/charts/redis-stack-server/Chart.yaml index df4d8c6..5445d7e 100644 --- a/charts/redis-stack-server/Chart.yaml +++ b/charts/redis-stack-server/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.4.11 +version: 0.4.12 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/redis-stack-server/templates/redis-stack-server.yaml b/charts/redis-stack-server/templates/redis-stack-server.yaml index 8e6fa66..5ce22d3 100644 --- a/charts/redis-stack-server/templates/redis-stack-server.yaml +++ b/charts/redis-stack-server/templates/redis-stack-server.yaml @@ -20,13 +20,13 @@ metadata: spec: selector: matchLabels: - app: "{{ .Values.name }}" + app: "{{ .Values.name }}" serviceName: "{{ .Values.name }}" replicas: {{ .Values.redis_stack_server.replicas }} template: metadata: labels: - app: "{{ .Values.name }}" + app: "{{ .Values.name }}" spec: terminationGracePeriodSeconds: 10 containers: @@ -48,3 +48,7 @@ spec: resources: requests: storage: {{ .Values.redis_stack_server.storage }} +{{- if .Values.redis_stack_server.affinity }} + affinity: +{{ toYaml .Values.redis_stack_server.affinity | indent 8 }} +{{- end }} diff --git a/charts/redis-stack-server/values.yaml b/charts/redis-stack-server/values.yaml index 1a76c1f..b461b5b 100644 --- a/charts/redis-stack-server/values.yaml +++ b/charts/redis-stack-server/values.yaml @@ -6,3 +6,4 @@ redis_stack_server: replicas: 1 storage_class: standard storage: 1Gi + affinity: {} diff --git a/charts/redis-stack/Chart.yaml b/charts/redis-stack/Chart.yaml index 207ab7b..7e9f831 100644 --- a/charts/redis-stack/Chart.yaml +++ b/charts/redis-stack/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.4.11 +version: 0.4.12 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/redis-stack/templates/deployment.yaml b/charts/redis-stack/templates/deployment.yaml index bed1a0d..f67de1c 100644 --- a/charts/redis-stack/templates/deployment.yaml +++ b/charts/redis-stack/templates/deployment.yaml @@ -36,3 +36,7 @@ spec: cpu: "{{ .Values.redis_stack.cpu }}" {{- end}} {{- end}} +{{- if .Values.redis_stack.affinity }} + affinity: +{{ toYaml .Values.redis_stack.affinity | indent 8 }} +{{- end }} diff --git a/charts/redis-stack/values.yaml b/charts/redis-stack/values.yaml index 9cd966a..4c870fc 100644 --- a/charts/redis-stack/values.yaml +++ b/charts/redis-stack/values.yaml @@ -8,3 +8,4 @@ redis_stack: replicas: 1 memory: 1Gi cpu: 100m + affinity: {}