forked from nixys/nxs-universal-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
265 lines (246 loc) · 5.8 KB
/
values.yaml
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# generic - values that uses by all nxs-chart templates
generic:
labels: {}
# general-label: general-label-value
annotations: {}
# general-annotation: general-annotation-value
extraSelectorLabels: {}
# label: special
podLabels: {}
# pod-label: some
podAnnotations: {}
# pod-annotation: true
extraVolumes: []
#- name: cache
# emptyDir: {}
# --set "envs.FOO=bar,envs.TEST=true"
envs: {}
# BAR: foo
# TEST: true
# --set "envsString=$ENVS_STRING"
envsString: ""
#envsString: |
# BAR2: foo2
# --set "secretEnvs.FOO=bar"
secretEnvs: {}
# FOO: bar
# --set "secretEnvsString=$SECRET_ENVS_STRING"
secretEnvsString: ""
#secretEnvsString: |
# FOO: BAR
imagePullSecrets: {}
# registry.org: |
# {"auths":{"registry.org":{"auth":"cnd1c2VyOnNlY3VyZVBANXM="}}}
# registry.org-rw: b64:eyJhdXRocyI6eyJyZWdpc3RyeS5vcmciOnsiYXV0aCI6ImNuZDFjMlZ5T25ObFkzVnlaVkJBTlhNPSJ9fX0=
defaultImage: your.registry.com/some-cool-app
defaultImageTag: latest
ingresses:
nixys.ru:
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "128m"
tls: true
certManager:
issuerType: cluster-issuer
issuerName: letsencrypt
hosts:
- paths:
- path: /
pathType: Prefix
servicePort: api
nixys.org:
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
hosts:
- paths:
- path: /api
servicePort: api
- hostname: nixys.com
paths:
- path: /api
servicePort: api
extraTls:
- hosts:
- nixys.com
- nixys.org
secretName: "nixys-tls"
deployments:
- name:
labels:
podLabels:
replicas: 2
extraSelectorLabels:
app: app-extra-selector
serviceAccountName: deployer
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: noderole/pay-dev
# operator: In
# values:
# - "true"
containers:
- name: nginx
image: nginx
imageTag: 1.19
imagePullPolicy: Always
env:
MY_ENV: "1234"
QTE: safn8
envsFromSecret:
webadmin:
- JAVA_OPTS: JVM_OPTS
- QWE
envSecrets:
- secret-envs
envsFromConfigmap:
some-cm:
- LEL: LOL
envConfigmaps:
- envs
ports:
- name: http
containerPort: 8080
volumeMounts:
- name: secret-file
mountPath: /var/lib/secret
- name: app-pvc
mountPath: /var/www/html/files
volumes:
- name: secret-file
type: secret
- name: app-pvc
type: pvc
services:
- name: nginx
ports:
- name: http
protocol: TCP
port: 8080
extraSelectorLabels:
app: app-extra-selector
secrets:
webadmin:
data:
QWE: rty
JVM_OPTS: |
"-Xmx${XMX}" \
"-Dlog4j.configurationFile=/etc/ntk-myhome-auth/log4j2.xml" \
"-Dnetworkaddress.cache.ttl=5s" \
"-javaagent:/jmx_prometheus_javaagent.jar=7039:/prometheus.yaml" \
"-javaagent:/elastic-apm-agent.jar"
## --set "secrets.test1.labels.blah=blah,secrets.test1.data.BAR=foo"
#test1:
# labels:
# blah: blah
# data:
# BAR: foo
## --set "secrets.secret-file.data.api\.key=$SOME_ENV"
#secret-file:
# data:
# api.key: |-
# JFczZwReBkJFczZwReBkJFczZwReBkJFczZwReBk
## --set "secrets.domain-tls.type=kubernetes.io\/tls,secrets.domain-tls.data.tls\.crt=$(cat tls.crt),secrets.domain-tls.data.tls\.key=$(cat tls.key)"
#nixys-tls:
# type: kubernetes.io/tls
# data:
# tls.crt: |-
# -----BEGIN CERTIFICATE-----
# MIIC2DCCAcCgAwIBAgIBATANBgkqh
# -----END CERTIFICATE-----
# tls.key: |-
# -----BEGIN RSA PRIVATE KEY-----
# MIIEowIBAAKCAQEA1//LmU7tdWt/fgbqh1Feh+JFczZwReBkkyW
# -----END RSA PRIVATE KEY-----
## --set "secrets.json-file.data.file\.json=$(printf %q $(cat file.json))"
#json-file:
# data:
# file.json: {
# "arg": "value"
# }
configMaps: {}
#some-cm:
# labels:
# kek: lol
# data:
# LOL: kek
#json-file:
# data:
# file.json: {
# "arg": "value"
# }
# All PVSs will be added to `volumes` block in each workload excluding hooks
pvcs:
- name: app-pvc
accessModes:
- ReadWriteOnce
- ReadWriteMany
size: 8Gi
servicemonitors:
- endpoints:
- interval: 30s
port: exporter
path: /metrics
extraSelectorLabels:
app: nginx
labels:
foo: foo
## Pod affinity preset
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
## Allowed values: soft, hard, nil
##
podAffinityPreset: soft
## Pod anti-affinity preset
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
## Allowed values: soft, hard, nil
##
podAntiAffinityPreset: soft
## Node affinity preset
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
## Allowed values: soft, hard
##
nodeAffinityPreset:
## Node affinity type
## Allowed values: soft, hard
##
type: ""
## Node label key to match
## E.g.
## key: "kubernetes.io/e2e-az-name"
##
key: ""
## Node label values to match
## E.g.
## values:
## - e2e-az1
## - e2e-az2
##
values: []
cronJobs:
- name: generate-data
schedule: "*/5 * * * *"
command: "php yii crontab/generate-data"
single_only: true
duration_alert: 600
max_duration: 800
volumeMounts:
- name: secret-file
mountPath: /etc/app
readOnly: true
volumes:
- name: secret-file
type: secret
items:
- key: app.conf
mode: 0600
path: app.conf
- name: auto-sender
schedule: "*/5 * * * *"
command: "php yii crontab/auto-sender"
jobs:
- name: refresh-cache
command: "php yii crontab/refresh-cache"
duration_alert: 30
max_duration: 60