-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
325 lines (303 loc) · 10.1 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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
## @section Challenge parameters
##
challenge:
## @param challenge.name Challenge name
## @param challenge.image.registry [default: REGISTRY_NAME] Challenge image registry
## @param challenge.image.repository [default: REPOSITORY_NAME] Challenge image repository
## @param challenge.image.pullPolicy Challenge image pull policy
## @param challenge.image.pullSecrets Challenge image pull secrets
## @param challenge.image.tag Challenge image tag
## @param challenge.image.digest Challenge image digest in the way sha256:aaa. It will override the tag
##
name: "challenge"
image:
registry: ""
repository: ""
pullPolicy: IfNotPresent
pullSecrets: []
## Specify a imagePullSecrets. Must be manually created in the namespace.
## e.g.:
## pullSecrets:
## - name: registry-credentials
##
tag: latest
digest: ""
## @param challenge.containerPorts Challenge image listenning port(s)
##
containerPorts: []
## List of container ports. Name must be set to tcp for Netcat challenge, or http for Web.
## e.g.:
## containerPorts:
## - name: tcp for netcat, http for web
## port: 4000
## @param challenge.livenessProbe.enabled Enable liveness probe
## @param challenge.livenessProbe.httpGetPath Path to access on the HTTP server
## @param challenge.livenessProbe.port Port for livenessProbe
## @param challenge.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param challenge.livenessProbe.periodSeconds Period seconds for livenessProbe
## @param challenge.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
## @param challenge.livenessProbe.failureThreshold Failure threshold for livenessProbe
## @param challenge.livenessProbe.successThreshold Success threshold for livenessProbe
##
livenessProbe:
enabled: true
httpGetPath:
port: 4000
initialDelaySeconds: 1
periodSeconds: 5
timeoutSeconds: 10
failureThreshold: 5
## Must be set to 1
##
successThreshold: 1
## @param challenge.readinessProbe.enabled Enable readiness probe
## @param challenge.readinessProbe.httpGetPath Path to access on the HTTP server
## @param challenge.readinessProbe.port Port for readinessProbe
## @param challenge.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
## @param challenge.readinessProbe.periodSeconds Period seconds for readinessProbe
## @param challenge.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
## @param challenge.readinessProbe.failureThreshold Failure threshold for readinessProbe
## @param challenge.readinessProbe.successThreshold Success threshold for readinessProbe
##
readinessProbe:
enabled: true
httpGetPath:
port: 4000
initialDelaySeconds: 1
periodSeconds: 5
timeoutSeconds: 10
failureThreshold: 5
## Must be set to 1
##
successThreshold: 1
## @param challenge.replicaCount Set number of replicas. Override by autoscaling
##
replicaCount: 1
## @section Autoscaling parameters
##
## @param challenge.autoscaling.enabled Enable autoscaling with HPA
## @param challenge.autoscaling.minReplicas Set minimum number of replicas
## @param challenge.autoscaling.maxReplicas Set maximum numer of replicas
## @param challenge.autoscaling.targetCPUUtilizationPercentage Percentage of CPU to reach
## @param challenge.autoscaling.targetMemoryUtilizationPercentage Percentage of memory to reach
##
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
## @section Database parameters (optional)
##
database:
## @param database.enabled Enable database deployment
##
enabled: false
## @param database.name Database name
##
name: "db"
## @param database.image.registry [default: REGISTRY_NAME] Database image registry
## @param database.image.repository [default: REPOSITORY_NAME] Database image repository
## @param database.image.tag Database image tag
## @param database.image.pullPolicy Database image pull policy
## @param database.image.pullSecrets Database image pull secrets
## @param database.image.digest Database image digest in the way sha256:aa. It will override tag
##
image:
registry: ""
repository: ""
tag: ""
pullPolicy: IfNotPresent
pullSecrets: []
## List of secrets. Must be manually created in namespace.
## e.g.:
## pullSecrets:
## - name: registry-credentials
##
digest:
## @param database.containerPorts[0].name Container port name
## @param database.containerPorts[0].port Container port number
##
containerPorts:
- name: db
port: 3306
## @param database.livenessProbe.enabled Enable liveness probe
## @param database.livenessProbe.httpGetPath Path to access on the HTTP server
## @param database.livenessProbe.port Port for livenessProbe
## @param database.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param database.livenessProbe.periodSeconds Period seconds for livenessProbe
## @param database.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
## @param database.livenessProbe.failureThreshold Failure threshold for livenessProbe
## @param database.livenessProbe.successThreshold Success threshold for livenessProbe
##
livenessProbe:
enabled:
httpGetPath:
port: 3306
initialDelaySeconds: 1
periodSeconds: 5
timeoutSeconds: 10
failureThreshold: 5
successThreshold: 5
## @param database.readinessProbe.enabled Enable readiness probe
## @param database.readinessProbe.httpGetPath Path to access on the HTTP server
## @param database.readinessProbe.port Port for readinessProbe
## @param database.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
## @param database.readinessProbe.periodSeconds Period seconds for readinessProbe
## @param database.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
## @param database.readinessProbe.failureThreshold Failure threshold for readinessProbe
## @param database.readinessProbe.successThreshold Success threshold for readinessProbe
##
readinessProbe:
enabled:
httpGetPath:
port: 3306
initialDelaySeconds: 1
periodSeconds: 5
timeoutSeconds: 10
failureThreshold: 5
successThreshold: 5
## @param database.ingress.enabled Enable ingress for database
## @param database.ingress.className Ingress class for database
## @param database.ingress.annotations Annotations for database
## @param database.ingress.hosts Host to access database
## @param database.ingress.tls Enable TLS configuration
##
ingress:
enabled: true
className: ""
annotations: {}
## Custom annotations
## e.g.:
## annotations:
## kubernetes.io/ingress.class: nginx
## kubernetes.io/tls-acme: "true"
##
hosts:
## - host: db.host.fr
## paths:
## - path: /
## pathType: Prefix
## serviceName: db
## servicePort: 3306
##
tls: []
## @param database.volumeMounts Volume to mount for database
##
volumeMounts: []
## @param database.resources Custom ressources for database
##
resources: {}
## @section Service account parameters
##
serviceAccount:
## @param serviceAccount.create Create SA for the challenge
##
create: true
## @param serviceAccount.automount Mount SA API credentials
##
automount: true
## @param serviceAccount.annotations Annotations for SA
##
annotations: {}
## @param serviceAccount.name Name for SA. `default` is SA by default in Kubernetes namespace
##
name: "controlplane"
## @section Security Context parameters
##
## @param podSecurityContext Enabled pod security context
##
podSecurityContext: {}
## @param securityContext.capabilities.drop Drop all or specific capabilities
## @param securityContext.readOnlyRootFilesystem Set root filesystem in read only - RO
## @param securityContext.runAsNonRoot Run challenge container as non root
## @param securityContext.runAsUser Set UUID of user
## @param securityContext.privileged Set to true for privileged challenge container
##
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
## In case of NSJail container, privileged must be set to True
##
privileged: false
## @section Service parameters
##
service:
## @param service.type Service type. `NodePort` for classic TCP, `ClusterIP` for Web
##
type: NodePort
## @param service.ports[0].port Port number
## @param service.ports[0].name Service name
## @param service.ports[0].targetPort Target port
## @param service.ports[0].nodePort specific NodePort
##
ports:
- port: 4000
name: tcp
targetPort: tcp
nodePort: 30005
## @section Ingress parameters
##
ingress:
## @param ingress.enabled Enable ingress for Web challenges
##
enabled: false
## @param ingress.className Class name
##
className: ""
## @param ingress.annotations Custom annotations for ingress
##
annotations: {}
## e.g.:
## annotations:
## kubernetes.io/ingress.class: nginx
## kubernetes.io/tls-acme: "true"
##
## @param ingress.hosts[0].host Hostname of Web challenge
## @param ingress.hosts[0].paths[0].path Path of Web challenge
## @param ingress.hosts[0].paths[0].pathType Path type
## @param ingress.hosts[0].paths[0].serviceName Name of service linked to deployment
## @param ingress.hosts[0].paths[0].servicePort Service port
##
hosts:
- host: web.host.fr
paths:
- path: /
pathType: Prefix
serviceName:
servicePort: 8000
## @param ingress.tls Enable TLS configuration
##
tls: []
## @section Other parameters
##
## @param resources Custom ressources
##
resources: {}
## @param volumes Add volume to challenge
##
volumes: []
## - name: volume
## emptyDir:
## sizeLimit: 500Mi
##
## @param volumeMounts How to mount the volume
##
volumeMounts: []
## - name: app
## mountPath: "/app"
## readOnly: false
##
## @param nodeSelector Node to select
##
nodeSelector: {}
## @param tolerations Tolerations for pod assignment
##
tolerations: []
## @param affinity Affinity for pod assignment
##
affinity: {}