helmfile.yaml
1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
bases:
- ../common/environments.yaml
---
releases:
- name: {{ .Values.namePrefix }}redis-server
namespace: {{ .Values.namespace }}
chart: charts/redis-server
values:
- set-common-values.yaml.gotmpl
jsonPatches:
{{- if not (empty (.Values.redisServer.jsonPatches)) }}
{{- .Values.redisServer.jsonPatches | toYaml | indent 6 }}
{{- end }}
strategicMergePatches:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.namePrefix }}redis-server
namespace: {{ .Values.namespace }}
spec:
selector:
matchLabels:
app: {{ .Values.namePrefix }}redis-server
template:
metadata:
labels:
app: {{ .Values.namePrefix }}redis-server
spec:
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: {{ .Values.namePrefix }}redis-data
- apiVersion: v1
kind: Service
metadata:
name: {{ .Values.namePrefix }}redis
namespace: {{ .Values.namespace }}
spec:
selector:
app: {{ .Values.namePrefix }}redis-server
{{- if not (empty (.Values.redisServer.strategicMergePatches)) }}
{{- .Values.redisServer.strategicMergePatches | toYaml | indent 6 }}
{{- end }}