Skip to content

Commit b547833

Browse files
committed
Update helm
1 parent 0e56935 commit b547833

File tree

3 files changed

+29
-60
lines changed

3 files changed

+29
-60
lines changed

pkg/helm/templates/svc-headless.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
spec:
1010
clusterIP: None
1111
ports:
12-
- port: 6379
12+
- port: {{ .Values.port | int }}
1313
targetPort: keydb
1414
protocol: TCP
1515
name: keydb

pkg/helm/templates/svc.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
{{- if .Values.loadBalancer.enabled }}
21
apiVersion: v1
32
kind: Service
43
metadata:
54
name: {{ include "keydb.fullname" . }}
6-
namespace: {{ .Release.Namespace }}
75
labels:
86
{{- include "keydb.labels" . | nindent 4 }}
9-
{{- with .Values.loadBalancer.annotations }}
107
annotations:
11-
{{- toYaml . | nindent 4 }}
12-
{{- end }}
8+
{{- toYaml .Values.service.annotations | nindent 4 }}
139
spec:
14-
type: LoadBalancer
10+
type: ClusterIP
1511
ports:
16-
- port: 6379
12+
- name: keydb
13+
port: {{ .Values.port | int }}
14+
protocol: TCP
1715
targetPort: keydb
16+
{{- if .Values.service.appProtocol.enabled }}
17+
appProtocol: redis
18+
{{- end }}
19+
- name: redis-exporter
20+
port: {{ .Values.exporter.port | int }}
1821
protocol: TCP
19-
name: keydb
22+
targetPort: redis-exporter
23+
{{- if .Values.service.appProtocol.enabled }}
24+
appProtocol: http
25+
{{- end }}
2026
selector:
2127
{{- include "keydb.selectorLabels" . | nindent 4 }}
22-
{{- end }}
23-
28+
sessionAffinity: ClientIP

pkg/helm/values.yaml

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ imageTag: 8.2.3
77
imagePullPolicy: IfNotPresent
88
imagePullSecrets: []
99

10-
nodes: 3
10+
nodes: 2
1111

1212
password: ""
1313
existingSecret: ""
@@ -35,9 +35,14 @@ extraContainers: []
3535
## Extra volumes
3636
extraVolumes: []
3737

38+
service:
39+
annotations: {}
40+
appProtocol:
41+
enabled: false
42+
3843
## LoadBalancer Service
3944
loadBalancer:
40-
enabled: true
45+
enabled: false
4146
annotations: {}
4247

4348
## Internal headless service
@@ -62,7 +67,7 @@ persistence:
6267
##
6368
# storageClass: "-"
6469
accessMode: ReadWriteOnce
65-
size: 1Gi
70+
size: 10Gi
6671

6772
## Configure resource requests
6873
resources:
@@ -120,7 +125,8 @@ configExtraArgs: []
120125
## Node labels for pod assignment
121126
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
122127
##
123-
nodeSelector: {}
128+
nodeSelector:
129+
kubernetes.io/arch: arm64
124130

125131
## Tolerations for pod assignment
126132
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
@@ -165,6 +171,8 @@ exporter:
165171
image: oliver006/redis_exporter
166172
tag: latest
167173
pullPolicy: IfNotPresent
174+
resources: {}
175+
extraArgs: {}
168176
port: 9121
169177
scrapePath: /metrics
170178
serviceMonitor:
@@ -187,48 +195,4 @@ serviceAccount:
187195
## RBAC
188196
## ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/
189197
rbac:
190-
create: false
191-
192-
## Prometheus Exporter / Metrics
193-
##
194-
exporter:
195-
enabled: false
196-
image: oliver006/redis_exporter
197-
imageTag: v1.48.0-alpine
198-
pullPolicy: IfNotPresent
199-
200-
## Prometheus exporter resource requests and limits
201-
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
202-
##
203-
resources: {}
204-
205-
## Extra args for redis exporter
206-
##
207-
extraArgs: {}
208-
209-
## Service Monitor for Prometheus Operator
210-
## ref: https://github.com/coreos/prometheus-operator
211-
##
212-
serviceMonitor:
213-
## If true, a ServiceMonitor CRD is created for a prometheus operator
214-
## https://github.com/coreos/prometheus-operator
215-
##
216-
enabled: false
217-
## The namespace the ServiceMonitor will be created in
218-
## If left empty, the ServiceMonitor will be created in the prometheus namespace
219-
# namespace: monitoring
220-
## The name of the label to use for the service
221-
selector:
222-
release: prometheus
223-
## ServiceMonitor scrape interval
224-
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
225-
##
226-
interval: 30s
227-
## ServiceMonitor scrape timeout
228-
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
229-
##
230-
scrapeTimeout: 10s
231-
## ServiceMonitor annotations
232-
##
233-
annotations: {}
234-
198+
create: false

0 commit comments

Comments
 (0)