helmfile.yaml
1.53 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
47
48
49
50
51
52
53
54
environments:
default:
values:
- namespace: redis
namePrefix: "test-"
redisServer:
jsonPatches: []
strategicMergePatches: []
images:
redis: "redis:6.2.6"
---
releases:
- name: {{ .Values.namePrefix }}redis-server
namespace: {{ .Values.namespace }}
chart: .
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 }}