-
Notifications
You must be signed in to change notification settings - Fork 2
/
helmfile.yaml.gotmpl
188 lines (184 loc) · 5.62 KB
/
helmfile.yaml.gotmpl
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
environments:
local:
values:
- namespace: yoma-dev
dev:
values:
- namespace: yoma-v3-dev
arch: amd64
tag: {{ env "TAG" | default "master" }}
ddInjectEnabled: false
ddProfilingEnabled: false
postgresEnabled: true
redisEnabled: true
stage:
values:
- namespace: yoma-v3-stage
arch: amd64
tag: {{ env "TAG" | default "master" }}
ddInjectEnabled: true
ddProfilingEnabled: false
postgresEnabled: false
redisEnabled: false
prod:
values:
- namespace: yoma-v3-prod
arch: amd64
tag: {{ env "TAG" | default "master" }}
ddInjectEnabled: true
ddProfilingEnabled: false
postgresEnabled: false
redisEnabled: false
---
repositories:
{{ if eq .Environment.Name "local" }}
- name: ingress-nginx
url: https://kubernetes.github.io/ingress-nginx
{{ end }}
- name: codecentric
url: https://codecentric.github.io/helm-charts
- name: didx-xyz-config-cli
url: git+https://github.com/didx-xyz/keycloak-config-cli@contrib/charts?ref=init-containers&sparse=0
- name: simcube
url: https://simcubeltd.github.io/simcube-helm-charts/
---
releases:
{{ if eq .Environment.Name "local" }}
- name: ingress-nginx
namespace: "ingress-nginx"
# https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx
chart: ingress-nginx/ingress-nginx
version: "4.10.0"
{{ end }}
- name: keycloak
labels:
app: keycloak
namespace: {{ .Values.namespace }}
chart: ./helm/keycloak
version: "0.3.2"
values:
- ./helm/keycloak/conf/{{ .Environment.Name }}/values.yaml
- keycloak:
statefulsetLabels:
tags.datadoghq.com/env: v3-{{ .Environment.Name }}
podLabels:
admission.datadoghq.com/enabled: {{ quote .Values.ddInjectEnabled }}
tags.datadoghq.com/env: v3-{{ .Environment.Name }}
secrets:
- ./helm/keycloak/conf/{{ .Environment.Name }}/secrets.yaml
- name: postgresql-keycloak
labels:
app: postgresql-keycloak
namespace: {{ .Values.namespace }}
# https://github.com/bitnami/charts/tree/main/bitnami/postgresql
chart: oci://registry-1.docker.io/bitnamicharts/postgresql
version: "15.2.5"
installed: {{ .Values.postgresEnabled }}
set:
- name: fullnameOverride
value: postgresql-keycloak
- name: auth.username
value: keycloak
- name: auth.database
value: keycloak
- name: primary.resourcesPreset
value: medium
secrets:
- ./helm/postgresql-keycloak/conf/{{ .Environment.Name }}/secrets.yaml
- name: postgresql
labels:
app: postgresql
namespace: {{ .Values.namespace }}
# https://github.com/bitnami/charts/tree/main/bitnami/postgresql
chart: oci://registry-1.docker.io/bitnamicharts/postgresql
version: "15.2.5"
installed: {{ .Values.postgresEnabled }}
set:
- name: fullnameOverride
value: postgres-yoma
- name: auth.username
value: yoma
- name: auth.database
value: yoma-dev
- name: primary.resourcesPreset
value: medium
# - name: primary.extendedConfiguration
# value: |
# log_statement = 'all'
# log_min_duration_statement = 0
secrets:
- ./helm/postgresql-yoma/conf/{{ .Environment.Name }}/secrets.yaml
- name: redis
labels:
app: redis
namespace: {{ .Values.namespace }}
# https://github.com/bitnami/charts/tree/main/bitnami/redis
chart: oci://registry-1.docker.io/bitnamicharts/redis
version: "19.1.3"
installed: {{ .Values.redisEnabled }}
values:
- fullnameOverride: redis
architecture: standalone
auth:
enabled: false
master:
count: 1
persistence:
enabled: false
replica:
replicaCount: 0
- name: yoma-api
labels:
app: yoma-api
namespace: {{ .Values.namespace }}
chart: ./helm/yoma-api
version: "0.1.0"
set:
- name: image.tag
value: {{ .Values.tag }}
values:
- ./helm/yoma-api/conf/base/values.yaml
- ./helm/yoma-api/conf/{{ .Environment.Name }}/values.yaml
- nodeSelector:
kubernetes.io/arch: {{ .Values.arch }}
- env:
DD_PROFILING_ENABLED: {{ .Values.ddProfilingEnabled }}
deploymentLabels:
tags.datadoghq.com/env: v3-{{ .Environment.Name }}
podLabels:
admission.datadoghq.com/enabled: {{ quote .Values.ddInjectEnabled }}
tags.datadoghq.com/env: v3-{{ .Environment.Name }}
secrets:
- ./helm/yoma-api/conf/base/secrets.yaml
- ./helm/yoma-api/conf/{{ .Environment.Name }}/secrets.yaml
- name: yoma-web
labels:
app: yoma-web
namespace: {{ .Values.namespace }}
chart: ./helm/yoma-web
version: "0.1.0"
set:
- name: image.tag
value: {{ .Values.tag }}
values:
- ./helm/yoma-web/conf/base/values.yaml
- ./helm/yoma-web/conf/{{ .Environment.Name }}/values.yaml
- nodeSelector:
kubernetes.io/arch: {{ .Values.arch }}
- env:
DD_PROFILING_ENABLED: {{ .Values.ddProfilingEnabled }}
deploymentLabels:
tags.datadoghq.com/env: v3-{{ .Environment.Name }}
podLabels:
admission.datadoghq.com/enabled: {{ quote .Values.ddInjectEnabled }}
tags.datadoghq.com/env: v3-{{ .Environment.Name }}
secrets:
- ./helm/yoma-web/conf/base/secrets.yaml
- ./helm/yoma-web/conf/{{ .Environment.Name }}/secrets.yaml
---
helmDefaults:
timeout: 300
wait: true
atomic: true
cleanupOnFail: true
createNamespace: false