forked from nixys/nxs-universal-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
209 lines (193 loc) · 4.43 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
#
## global - values that uses by all charts
#
global:
#
## generic - values that uses by all nxs-chart templates
#
generic:
defaultImage: privat.registry.com/some-cool-app
defaultImageTag: latest
domain: nixys.ru
labels:
general-label: lbl-value
annotations:
general-annotation: ant-value
# --set global.secretEnvs=$SECRET_ENVS
secretEnvs:
FOO: bar
BAR: foo
ingresses:
- 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:
- hostname:
paths:
- path: /
pathType:
servicePort:
- annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
hosts:
- hostname: nixys.org
paths:
- path: /api
servicePort: api
- hostname: nixys.com
paths:
- path: /api
servicePort: api
extraTls:
- hosts:
- nixys.com
- nixys.org
secretName: "{{ .Release.Name }}-domain-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
ports:
- name: http
containerPort: 8080
volumeMounts:
- templatedName: secret-file
mountPath: /var/lib/secret
- pvcName: app-pvc
mountPath: /var/www/html/files
templatedVolumes:
- name: secret-file
type: secret
services:
- name: nginx
ports:
- name: http
protocol: TCP
port: 8080
extraSelectorLabels:
app: app-extra-selector
secrets:
# --set secrets.test1.data.BAR=foo
test1:
data:
BAR: foo
# --set "secrets.secret-file.data.api\.key=$SOME_ENV"
secret-file:
data:
api.key: |-
JFczZwReBkJFczZwReBkJFczZwReBkJFczZwReBk
# --set "secrets.domain-tls.labels.blah=blah,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)"
domain-tls:
labels:
blah: blah
data:
tls.crt: |-
-----BEGIN CERTIFICATE-----
MIIC2DCCAcCgAwIBAgIBATANBgkqh
-----END CERTIFICATE-----
tls.key: |-
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA1//LmU7tdWt/fgbqh1Feh+JFczZwReBkkyW
-----END RSA PRIVATE KEY-----
type: kubernetes.io/tls
# --set "secrets.json-file.data.file\.json=$(printf %q $(cat file.json))"
json-file:
data:
file.json: {
"arg": "value"
}
configmaps:
- name: some-cm
labels:
kek: lol
data:
LOL: kek
# 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:
jobs:
- name: generate-data
schedule: "*/5 * * * *"
command: "php yii crontab/generate-data"
single_only: true
duration_alert: 600
max_duration: 800
templatedVolumes:
- name: secret-file
type: secret
- name: auto-sender
schedule: "*/5 * * * *"
command: "php yii crontab/auto-sender"
jobs:
jobs:
- name: refresh-cache
command: "php yii crontab/refresh-cache"
duration_alert: 30
max_duration: 60