forked from aquasecurity/aqua-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
488 lines (458 loc) · 15.5 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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
# Specifies the secret data for imagePullSecrets needed to fetch the private docker images
imageCredentials:
create: true
name: aqua-registry-secret # example
repositoryUriPrefix: "registry.aquasec.com" # for dockerhub - "docker.io"
registry: "registry.aquasec.com" #REQUIRED only if create is true, for dockerhub - "index.docker.io/v1/"
username: ""
password: ""
rbac:
enabled: true
privileged: true
roleRef:
#Please specify k8s platform acronym. Allowed values are aks, eks, gke, openshift, tkg, tkgi, k8s
# aks = Azure Kubernetes Service
# gke = Google kubernetes Engine
# openshift = RedHat Openshift/OCP
# tkg = VMware Tanzu kubernetes Grid
# tkgi = VMware Tanzu kubernetes Grid Integrated Edition
# k8s = Plain/on-prem Vanilla Kubernetes
# gs = GaintSwarm platform
# k3s = k3s kubernetes platform
platform: ""
openshift_route:
create: false #Enable if required openshift route for web and gateway
serviceaccount:
annotations: {}
# enable only one of the modes
clustermode:
activeactive:
admin:
token:
password:
dockerSock:
mount: # put true for mount docker socket.
path: /var/run/docker.sock # pks - /var/vcap/data/sys/run/docker/docker.sock
db:
external:
enabled: false
name:
host:
port:
user:
password:
auditName:
auditHost:
auditPort:
auditUser:
auditPassword:
pubsubName:
pubsubHost:
pubsubPort:
pubsubUser:
pubsubPassword:
passwordFromSecret:
enabled: false #Enable if loading passwords for db and audit-db from secret
dbPasswordName: #Specify the Password Secret name used for db password
dbPasswordKey: #Specify the db password key name stored in the #dbPasswordName secret
dbAuditPasswordName: #Specify the Password Secret name used for audit db password
dbAuditPasswordKey: #Specify the audit db password key name stored in the #dbAuditPasswordName secret
dbPubsubPasswordName: #Specify the Password Secret name used for pubsub db password
dbPubsubPasswordKey: #Specify the pubsub db password key name stored in the #PubsubPasswordName secret
ssl: false
auditssl: false
pubsubssl: false
securityContext:
runAsUser: 70
runAsGroup: 70
fsGroup: 11433
container_securityContext:
privileged: false
image:
repository: database
tag: "5.3"
pullPolicy: IfNotPresent
service:
type: ClusterIP
persistence:
enabled: true
storageClass:
size: 30Gi
accessMode: ReadWriteOnce
livenessProbe:
exec:
command:
- sh
- -c
- exec pg_isready --host $POD_IP
initialDelaySeconds: 60
timeoutSeconds: 5
failureThreshold: 6
readinessProbe:
exec:
command:
- sh
- -c
- exec pg_isready --host $POD_IP
initialDelaySeconds: 5
timeoutSeconds: 3
periodSeconds: 5
resources: {}
# Note: For recommendations please check the official sizing guide.
# requests:
# cpu: 3000m
# memory: 6Gi
# limits:
# cpu: 12000m
# memory: 20Gi
nodeSelector: {}
tolerations: []
affinity: {}
# extraEnvironmentVars is a list of extra environment variables to set in the database deployments.
extraEnvironmentVars: {}
# ENV_NAME: value
# extraSecretEnvironmentVars is a list of extra environment variables to set in the database deployments.
# These variables take value from existing Secret objects.
extraSecretEnvironmentVars: []
# - envName: ENV_NAME
# secretName: name
# secretKey: key
gate:
replicaCount: 1
logLevel:
image:
repository: gateway
tag: "5.3"
pullPolicy: IfNotPresent
service:
type: ClusterIP # you can enable gateway to external by changing type to "LoadBalancer"
loadbalancerIP: "" # Specify loadBalancerIP address for aqua-web in AKS platform
annotations: {}
ports:
- name: aqua-gate
port: 3622
targetPort: 3622
nodePort:
protocol: TCP
- name: aqua-gate-ssl
port: 8443
targetPort: 8443
nodePort:
protocol: TCP
- name: aqua-health
port: 8082
protocol: TCP
targetPort: 8082
nodePort:
publicIP:
livenessProbe:
httpGet:
path: /
port: 8082
initialDelaySeconds: 60
periodSeconds: 30
readinessProbe:
tcpSocket:
port: 8443
initialDelaySeconds: 60
periodSeconds: 60
resources: {}
# Note: For recommendations please check the official sizing guide.
# requests:
# cpu: 1500m
# memory: 7Gi
# limits:
# cpu: 6000m
# memory: 10Gi
nodeSelector: {}
tolerations: []
affinity: {}
securityContext:
runAsUser: 11431
runAsGroup: 11433
fsGroup: 11433
container_securityContext: {}
# TLS is for enabling mTLS/TLS establishment between gateway <-> server and gateway <-> enforcers
TLS:
enabled: false # enable to true for secure communication (mTLS/TLS)
secretName: "" # provide certificates secret name created to enable tls/mtls communication between enforcer and gateway/envoy
publicKey_fileName: "" #provide filename of the public key eg: aqua_gateway.crt
privateKey_fileName: "" #provide filename of the private key eg: aqua_gateway.key
rootCA_fileName: "" #provide filename of the rootCA, if using self-signed certificates eg: rootCA.crt
aqua_verify_enforcer: "0" # change it to "1" for enabling mTLS between enforcer and gateway/envoy
# extraEnvironmentVars is a list of extra environment variables to set in the gateway deployments.
# https://docs.aquasec.com/docs/gateway-optional-variables
extraEnvironmentVars: {}
# ENV_NAME: value
# extraSecretEnvironmentVars is a list of extra environment variables to set in the gateway deployments.
# These variables take value from existing Secret objects.
extraSecretEnvironmentVars: []
# - envName: ENV_NAME
# secretName: name
# secretKey: key
web:
replicaCount: 1
logLevel:
image:
repository: console
tag: "5.3"
pullPolicy: IfNotPresent
service:
type: LoadBalancer
loadbalancerIP: "" # Specify loadBalancerIP address for aqua-gateway in AKS platform
annotations: {}
ports:
- name: aqua-web
port: 8080
targetPort: 8080
nodePort:
protocol: TCP
- name: aqua-web-ssl
port: 443
targetPort: 8443
nodePort:
protocol: TCP
#As 443, 8443 already occupied in k3s kubernetes by traefik ingress. below are the console ports
k3sPorts:
- name: aqua-web
port: 8080
targetPort: 8080
nodePort:
protocol: TCP
- name: aqua-web-ssl
port: 444
targetPort: 8443
nodePort:
protocol: TCP
ingress:
enabled: false
externalPort:
annotations: {}
# kubernetes.io/ingress.class: nginx
hosts: #REQUIRED
#- aquasec-test.example.com
path: /
tls: []
# - secretName: aquasec-tls
# hosts:
# - aquasec.domain.com
# Note: Please change the ports according to the requirement.
# default liveness and readiness probe
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 60
periodSeconds: 30
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 60
periodSeconds: 30
resources: {}
# Note: For recommendations please check the official sizing guide.
# requests:
# cpu: 2000m
# memory: 3Gi
# limits:
# cpu: 6000m
# memory: 10Gi
nodeSelector: {}
tolerations: []
affinity: {}
securityContext:
runAsUser: 11431
runAsGroup: 11433
fsGroup: 11433
container_securityContext: {}
# TLS is for enabling mTLS/TLS establishment between server <-> gateway and https for aqua console
TLS:
enabled: false # enable to true for secure communication
secretName: "" # provide certificates secret name created to enable tls/mtls communication between enforcer and gateway/envoy
publicKey_fileName: "" #provide filename of the public key eg: aqua_web.crt
privateKey_fileName: "" #provide filename of the private key eg: aqua_web.key
rootCA_fileName: "" #provide filename of the rootCA, if using self-signed certificates eg: rootCA.crt
maintenance_db:
name: "" #specify the AQUA_MAINTENANCE_DB name if enabled
# extraEnvironmentVars is a list of extra environment variables to set in the web deployments.
# https://docs.aquasec.com/docs/server-optional-variables
extraEnvironmentVars: {}
# ENV_NAME: value
# extraSecretEnvironmentVars is a list of extra environment variables to set in the web deployments.
# These variables take value from existing Secret objects.
extraSecretEnvironmentVars: []
# - envName: ENV_NAME
# secretName: name
# secretKey: key
envoy:
enabled: false
replicaCount: 1
image:
repository: envoy
tag: "5.3"
pullPolicy: IfNotPresent
service:
type: LoadBalancer
loadbalancerIP: "" # Specify loadBalancerIP address for envoy in AKS platform
annotations: {}
# service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
# service.beta.kubernetes.io/aws-load-balancer-internal: "false"
# service.beta.kubernetes.io/aws-load-balancer-type: nlb
ports:
- name: https
port: 443
targetPort: 8443
nodePort:
protocol: TCP
#As 443, 8443 already occupied in k3s kubernetes by traefik ingress. below are the envoy service ports
k3sPorts:
- name: https
port: 445
targetPort: 8443
nodePort:
protocol: TCP
# Enabling Envoy requires the use of TLS certificates for the listener section, while the cluster TLS section is optional and to be enabled if TLS is in use for gate and web.
# Find the instructions in the readme for help with generating the required certificates.
TLS:
listener:
enabled: false # true to enable loading custom self-signed or CA certs, by default envoy uses packaged self-signed certs.
secretName: "aqua-lb-tls" # provide secret name containing the certificates
publicKey_fileName: "" # provide filename of the public key in the secret eg: aqua-lb.fqdn.crt
privateKey_fileName: "" # provide filename of the private key in the secret eg: aqua-lb.fqdn.key
rootCA_fileName: "" # optional: use this field if using a custom CA or chain
cluster:
enabled: false # true to enable secure communication between Aqua Envoy and Gateways
secretName: "aqua-lb-tls-custer" # provide secret name containing the certificates
publicKey_fileName: "" # provide filename of the public key in the secret eg: aqua-lb.crt
privateKey_fileName: "" # provide filename of the private key in the secret eg: aqua-lb.key
rootCA_fileName: "" # optional: use this field if using a custom CA or chain
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
- name: x-envoy-livenessprobe
value: healthz
path: /healthz
port: 8443
scheme: HTTPS
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
- name: x-envoy-livenessprobe
value: healthz
path: /healthz
port: 8443
scheme: HTTPS
initialDelaySeconds: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
# Note: For recommendations please check the official sizing guide.
# requests:
# cpu: 2000m
# memory: 4Gi
# limits:
# cpu: 4000m
# memory: 10Gi
nodeSelector: {}
tolerations: []
affinity: {}
securityContext: {}
## Enabling this will replace any templated envoy configuration with the list of files passed below
custom_envoy_files: {}
# envoy.yaml: |
# static_resources:
# listeners:
# - address:
# socket_address:
# address: 0.0.0.0
# port_value: 8443
# filter_chains:
# - filters:
# - name: envoy.filters.network.http_connection_manager
# typed_config:
# "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
# stream_idle_timeout: 0s
# drain_timeout: 20s
# access_log:
# - name: envoy.access_loggers.file
# typed_config:
# "@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
# path: "/dev/stdout"
# codec_type: AUTO
# stat_prefix: ingress_https
# route_config:
# name: local_route
# virtual_hosts:
# - name: https
# domains:
# - "*"
# routes:
# - match:
# prefix: "/"
# route:
# cluster: aqua-gateway-svc
# timeout: 0s
# http_filters:
# - name: envoy.filters.http.health_check
# typed_config:
# "@type": type.googleapis.com/envoy.config.filter.http.health_check.v2.HealthCheck
# pass_through_mode: false
# headers:
# - name: ":path"
# exact_match: "/healthz"
# - name: "x-envoy-livenessprobe"
# exact_match: "healthz"
# - name: envoy.filters.http.router
# typed_config: {}
# transport_socket:
# name: envoy.transport_sockets.tls
# typed_config:
# "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext
# common_tls_context:
# alpn_protocols: "h2,http/1.1"
# tls_certificates:
# - certificate_chain:
# filename: "/etc/ssl/envoy/tls.crt"
# private_key:
# filename: "/etc/ssl/envoy/tls.key"
# clusters:
# - name: aqua-gateway-svc
# connect_timeout: 180s
# type: STRICT_DNS
# dns_lookup_family: V4_ONLY
# lb_policy: ROUND_ROBIN
# http2_protocol_options:
# hpack_table_size: 4294967
# max_concurrent_streams: 2147483647
# circuit_breakers:
# thresholds:
# max_pending_requests: 2147483647
# max_requests: 2147483647
# load_assignment:
# cluster_name: aqua-gateway-svc
# endpoints:
# - lb_endpoints:
# - endpoint:
# address:
# socket_address:
# address: {{ .Release.Name }}-gateway-headless-svc.{{ .Release.Namespace }}.svc.cluster.local
# port_value: 8443
# transport_socket:
# name: envoy.transport_sockets.tls
# typed_config:
# "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
# sni: aqua-gateway-svc
# admin:
# access_log_path: "/dev/stdout"
# address:
# socket_address:
# address: 127.0.0.1
# port_value: 8090