forked from jfrog/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
1420 lines (1291 loc) · 43.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
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
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Default values for Xray HA.
# This is a YAML-formatted file.
# Beware when changing values here. You should know what you are doing!
# Access the values with {{ .Values.key.subkey }}
global:
# imageRegistry: releases-docker.jfrog.io
# imagePullSecrets:
# - myRegistryKeySecretName
## Chart.AppVersion can be overidden using global.versions.xray, common.xrayVersion or image tags
## Note: Order of preference is 1) global.versions 2) common.xrayVersion 3) image tags 4) Chart.AppVersion
versions: {}
# xray:
# router:
# joinKey:
# masterKey:
# joinKeySecretName:
# masterKeySecretName:
# executionServiceAesKey:
# executionServiceAesKeySecretName:
## Note: tags customInitContainersBegin,customInitContainers,customVolumes,customVolumeMounts,customSidecarContainers can be used both from global and application level simultaneously
# customInitContainersBegin: |
# customInitContainers: |
# customVolumes: |
# customVolumeMounts: |
# customSidecarContainers: |
## certificates added to this secret will be copied to $JFROG_HOME/xray/var/etc/security/keys/trusted directory
customCertificates:
enabled: false
# certificateSecretName:
## Applies to xray pods
nodeSelector: {}
## Applies to platform charts.
rabbitmq:
auth:
tls:
enabled:
autoGenerated:
## String to partially override xray.fullname template (will maintain the release name)
##
# nameOverride:
## String to fully override xray.fullname template
##
# fullnameOverride:
initContainerImage: releases-docker.jfrog.io/ubi9/ubi-minimal:9.2.717
imagePullPolicy: IfNotPresent
# Init containers
initContainers:
resources:
requests:
memory: "50Mi"
cpu: "10m"
limits:
memory: "1Gi"
cpu: "1"
# For supporting pulling from private registries
imagePullSecrets:
# - myRegistryKeySecretName
## Xray systemYaml override
## This is for advanced usecases where users wants to provide their own systemYaml for configuring xray
## Refer - https://www.jfrog.com/confluence/display/JFROG/Xray+System+YAML
## Note: This will override existing (default) .Values.xray.systemYaml in values.yaml
## Alternatively, systemYaml can be overidden via customInitContainers using external sources like vaults, external repositories etc. Please refer customInitContainer section below for an example.
## Note: Order of preference is 1) customInitContainers 2) systemYamlOverride existingSecret 3) default systemYaml in values.yaml
systemYamlOverride:
## You can use a pre-existing secret by specifying existingSecret
existingSecret:
## The dataKey should be the name of the secret data key created.
dataKey:
replicaCount: 1
## Database configurations
## Use the wait-for-db init container. Set to false to skip
waitForDatabase: true
xray:
name: xray
labels: {}
persistence:
mountPath: /var/opt/jfrog/xray
# adding minAvailable for Xray Pod Disruption Budget
# minAvailable: 1
# unifiedSecretInstallation flag enables single unified secret holding all xray secrets
unifiedSecretInstallation: false
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
schedulerName:
# Create a priority class for the Xray pod or use an existing one
# NOTE - Maximum allowed value of a user defined priority is 1000000000
priorityClass:
create: false
value: 1000000000
## Override default name
# name:
## Use an existing priority class
# existingPriorityClass:
## certificates added to this secret will be copied to $JFROG_HOME/xray/var/etc/security/keys/trusted directory
customCertificates:
enabled: false
# certificateSecretName:
## Add custom annotations for xray pods
annotations: {}
## Xray requires a unique master key
## You can generate one with the command:
## 'openssl rand -hex 32'
## Pass it to helm with '--set xray.masterKey=${MASTER_KEY}'
## IMPORTANT: You should NOT use the example masterKey for a production deployment!
masterKey: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
## Alternatively, you can use a pre-existing secret with a key called master-key by specifying masterKeySecretName
# masterKeySecretName:
## Join Key to connect to main Artifactory. Mandatory
joinKey: EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
## Xray AES key used by execution server to the xray server and analysis containers.
## You can generate one with the command:
## 'openssl rand -hex 16'
# executionServiceAesKey:
## Alternatively, you can use a pre-existing secret with a key called execution-service-aes-key by specifying executionServiceAesKeySecretName
# executionServiceAesKeySecretName:
## Alternatively, you can use a pre-existing secret with a key called join-key by specifying joinKeySecretName
# joinKeySecretName:
## If false, all service console logs will not redirect to a common console.log
consoleLog: false
## Artifactory URL . Mandatory
jfrogUrl:
## Mongo details are used only for Manual migration of data from Mongo to Postgres in Xray 2.x to 3.x
# mongoUrl:
# mongoUsername:
# mongoPassword:
## Only used if "affinity" is empty
podAntiAffinity:
## Valid values are "soft" or "hard"; any other value indicates no anti-affinity
type: "soft"
topologyKey: "kubernetes.io/hostname"
# To enable set `.Values.xray.openMetrics.enabled` to `true`
# Refer - https://www.jfrog.com/confluence/display/JFROG/Open+Metrics
openMetrics:
enabled: false
## Settings for pushing metrics to Insight - enable filebeat to true
filebeat:
enabled: false
log:
enabled: false
## Log level for filebeat. Possible values: debug, info, warning, or error.
level: "info"
## Elasticsearch details for filebeat to connect
elasticsearch:
url: "Elasticsearch url where JFrog Insight is installed For example, http://<ip_address>:8082"
username: ""
password: ""
systemYaml: |
configVersion: 1
router:
serviceRegistry:
insecure: {{ .Values.router.serviceRegistry.insecure }}
shared:
{{- if .Values.xray.openMetrics.enabled }}
metrics:
enabled: true
{{- if .Values.xray.openMetrics.filebeat.enabled }}
filebeat: {{ toYaml .Values.xray.openMetrics.filebeat | nindent 6 }}
{{- end }}
{{- end }}
logging:
consoleLog:
enabled: {{ .Values.xray.consoleLog }}
jfrogUrl: "{{ tpl (required "\n\nxray.jfrogUrl or global.jfrogUrl is required! This allows to connect to Artifactory.\nYou can copy the JFrog URL from Administration > User Management > Settings > Connection details" (include "xray.jfrogUrl" .)) . }}"
database:
{{- if .Values.postgresql.enabled }}
type: "postgresql"
driver: "org.postgresql.Driver"
username: "{{ .Values.postgresql.postgresqlUsername }}"
url: "postgres://{{ .Release.Name }}-postgresql:{{ .Values.postgresql.service.port }}/{{ .Values.postgresql.postgresqlDatabase }}?sslmode=disable"
{{- else }}
type: {{ .Values.database.type }}
driver: {{ .Values.database.driver }}
{{- end }}
{{- if and (not .Values.rabbitmq.enabled) (not .Values.common.rabbitmq.connectionConfigFromEnvironment) }}
rabbitMq:
erlangCookie:
value: "{{ .Values.rabbitmq.external.erlangCookie }}"
{{- if not .Values.rabbitmq.external.secrets }}
url: "{{ tpl .Values.rabbitmq.external.url . }}"
username: "{{ .Values.rabbitmq.external.username }}"
password: "{{ .Values.rabbitmq.external.password }}"
{{- end }}
{{- end }}
{{- if .Values.xray.mongoUrl }}
mongo:
url: "{{ .Values.xray.mongoUrl }}"
username: "{{ .Values.xray.mongoUsername }}"
password: "{{ .Values.xray.mongoPassword }}"
{{- end }}
{{- if or .Values.server.mailServer .Values.server.indexAllBuilds }}
server:
{{- if .Values.server.mailServer }}
mailServer: "{{ .Values.server.mailServer }}"
{{- end }}
{{- if .Values.server.indexAllBuilds }}
indexAllBuilds: {{ .Values.server.indexAllBuilds }}
{{- end }}
{{- end }}
{{- if (include "xray.imagePullSecretsStrList" .) }}
executionService:
pullSecret:
{{- include "xray.imagePullSecretsStrList" . | indent 2 }}
{{- end }}
contextualAnalysis:
registry: {{ include "xray.getRegistryByService" (list . "contextualAnalysis") }}
image: {{ .Values.contextualAnalysis.image.repository }}
exposures:
container:
registry: {{ include "xray.getRegistryByService" (list . "exposures") }}
image: {{ .Values.exposures.image.repository }}
# Sidecar containers for tailing Xray logs
loggers: []
# - router-request.log
# - router-service.log
# - router-traefik.log
# - xray-request.log
# - xray-analysis-service.log
# - xray-analysis-metrics.log
# - xray-server-service.log
# - xray-server-metrics.log
# - xray-indexer-service.log
# - xray-indexer-metrics.log
# - xray-analysis-stack.log
# - xray-indexer-stack.log
# - xray-persist-stack.log
# - xray-persist-metrics.log
# - xray-server-stack.log
# - observability-metrics.log
# - observability-request.log
# - observability-service.log
# Loggers containers resources
loggersResources: {}
# requests:
# memory: "64Mi"
# cpu: "25m"
# limits:
# memory: "128Mi"
# cpu: "50m"
## Role Based Access
## Ref: https://kubernetes.io/docs/admin/authorization/rbac/
rbac:
create: false
role:
## Rules to create. It follows the role specification
rules:
- apiGroups:
- ''
resources:
- services
- endpoints
- pods
- pods/log
- events
verbs:
- get
- watch
- list
- apiGroups:
- 'batch'
resources:
- jobs
verbs:
- get
- watch
- list
- create
- delete
networkpolicy: []
# Allows all ingress and egress
# - name: xray
# podSelector:
# matchLabels:
# app: xray
# egress:
# - {}
# ingress:
# - {}
# Uncomment to allow only xray pods to communicate with postgresql (if postgresql.enabled is true)
# - name: postgres
# podSelector:
# matchLabels:
# app.kubernetes.io/name: postgresql
# ingress:
# - from:
# - podSelector:
# matchLabels:
# app: xray
# Uncomment to allow only xray pods to communicate with rabbitmq (if rabbitmq.enabled is true)
# - name: rabbitmq
# podSelector:
# matchLabels:
# app.kubernetes.io/name: rabbitmq
# ingress:
# - from:
# - podSelector:
# matchLabels:
# app: xray
## Affinity rules
nodeSelector: {}
affinity: {}
tolerations: []
## Apply horizontal pod auto scaling on Xray pods
## Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 70
targetMemoryUtilizationPercentage: 90
## Specify if using the keda hpa or regular basic hpa
## Note: keda should be installed on the target cluster
## Ref: https://keda.sh/docs/2.10/deploy/
keda:
enabled: false
scaleUp:
stabilizationWindowSeconds: 90
policies:
- type: Pods
value: 3
periodSeconds: 30
scaleDown:
stabilizationWindowSeconds: 90
policies:
- type: Pods
value: 1
periodSeconds: 30
pollingInterval: 10
cooldownPeriod: 10
queues:
- name: analysis
value: "100"
- name: index
value: "100"
- name: persist
value: "100"
- name: alert
value: "100"
- name: impactAnalysis
value: "100"
logger:
image:
registry: releases-docker.jfrog.io
repository: ubi9/ubi-minimal
tag: 9.2.717
## Service Account
## Ref: https://kubernetes.io/docs/admin/service-accounts-admin/
##
serviceAccount:
create: false
## The name of the ServiceAccount to use.
## If not set and create is true, a name is generated using the fullname template
name:
## Service Account annotations
annotations: {}
## Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: true
## By default, the Xray StatefulSet is created with a securityContext that sets the `runAsUser` and the `fsGroup` to the `common.xrayUserId` value.
## If you want to disable the pod securityContext for the Xray StatefulSet, set this tag to false
podSecurityContext:
enabled: true
## @param containerSecurityContext.enabled enable the container's Security Context
containerSecurityContext:
enabled: true
runAsNonRoot: true
allowPrivilegeEscalation: false
capabilities:
drop:
- NET_RAW
# PostgreSQL
## Configuration values for the postgresql dependency
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
##
postgresql:
enabled: true
image:
registry: releases-docker.jfrog.io
repository: bitnami/postgresql
tag: 13.10.0-debian-11-r14
postgresqlUsername: xray
postgresqlPassword: ""
postgresqlDatabase: xraydb
postgresqlExtendedConf:
listenAddresses: "*"
maxConnections: "1500"
service:
port: 5432
persistence:
enabled: true
size: 300Gi
# existingClaim:
primary:
nodeSelector: {}
affinity: {}
tolerations: []
readReplicas:
nodeSelector: {}
affinity: {}
tolerations: []
resources: {}
# requests:
# memory: "1Gi"
# cpu: "250m"
# limits:
# memory: "2Gi"
# cpu: "1"
## If NOT using the PostgreSQL in this chart (postgresql.enabled=false),
database:
type: "postgresql"
driver: "org.postgresql.Driver"
## If you would like this chart to create the secret containing the database url, user, password - use these below values
url:
user:
password:
## When working with Azure managed PG you have to provide the actualUsername. The application will pick actualUsername and will use it in some cases where it is needed
actualUsername:
## If you have existing Kubernetes secrets containing db credentials, use
## these values
secrets: {}
# user:
# name: "xray-database-creds"
# key: "db-user"
# password:
# name: "xray-database-creds"
# key: "db-password"
# url:
# name: "xray-database-creds"
# key: "db-url"
# actualUsername:
# name: "xray-database-creds"
# key: "db-actualUsername"
# RabbitMQ
## Configuration values for the rabbitmq dependency
## ref: https://github.com/bitnami/charts/blob/master/bitnami/rabbitmq/README.md
##
rabbitmq:
enabled: true
## Enable the flag if the feature flags in rabbitmq is enabled manually
rabbitmqUpgradeReady: false
replicaCount: 1
rbac:
create: true
image:
registry: releases-docker.jfrog.io
repository: bitnami/rabbitmq
tag: 3.11.10-debian-11-r5
extraPlugins: "rabbitmq_management"
auth:
## Enable encryption to rabbitmq
## ref: https://www.rabbitmq.com/ssl.html
## @param auth.tls.enabled Enable TLS support on RabbitMQ
## @param auth.tls.autoGenerated Generate automatically self-signed TLS certificates
## @param auth.tls.failIfNoPeerCert When set to true, TLS connection will be rejected if client fails to provide a certificate
## @param auth.tls.sslOptionsVerify Should [peer verification](https://www.rabbitmq.com/ssl.html#peer-verification) be enabled?
## @param auth.tls.sslOptionsPassword.enabled Enable usage of password for private Key
## @param auth.tls.sslOptionsPassword.existingSecret Name of existing Secret containing the sslOptionsPassword
## @param auth.tls.sslOptionsPassword.key Enable Key referring to sslOptionsPassword in Secret specified in auth.tls.sslOptionsPassword.existingSecret
## @param auth.tls.sslOptionsPassword.password Use this string as Password. If set, auth.tls.sslOptionsPassword.existingSecret and auth.tls.sslOptionsPassword.key are ignored
## @param auth.tls.caCertificate Certificate Authority (CA) bundle content
## @param auth.tls.serverCertificate Server certificate content
## @param auth.tls.serverKey Server private key content
## @param auth.tls.existingSecret Existing secret with certificate content to RabbitMQ credentials
## @param auth.tls.existingSecretFullChain Whether or not the existing secret contains the full chain in the certificate (`tls.crt`). Will be used in place of `ca.cert` if `true`.
## @param auth.tls.overrideCaCertificate Existing secret with certificate content be mounted instead of the `ca.crt` coming from caCertificate or existingSecret/existingSecretFullChain.
##
tls:
enabled: false
# By default TLS certs are autogenerated, if you wish to add your own certs, please set this to false.
autoGenerated: true
failIfNoPeerCert: false
sslOptionsVerify: verify_peer
failIfNoCert: false
sslOptionsPassword:
enabled: false
existingSecret: ""
key: ""
password: ""
caCertificate:
serverCertificate:
serverKey:
# Rabbitmq tls-certs secret name, as by default it will have {{ .Release.Name }}-rabbitmq-certs.
existingSecret:
existingSecretFullChain: false
overrideCaCertificate: ""
username: guest
password: password
## @param auth.securePassword Whether to set the RabbitMQ password securely. This is incompatible with loading external RabbitMQ definitions and 'true' when not setting the auth.password parameter.
## ref: https://github.com/bitnami/containers/tree/main/bitnami/rabbitmq#environment-variables
securePassword: false
## Alternatively, you can use a pre-existing secret with a key called rabbitmq-password by specifying existingPasswordSecret
# existingPasswordSecret: <name-of-existing-secret>
erlangCookie: XRAYRABBITMQCLUSTER
# existingErlangSecret: <name-of-existing-secret>
# memoryHighWatermark:
# ## @param memoryHighWatermark.enabled Enable configuring Memory high watermark on RabbitMQ
# ##
# enabled: false
# ## @param memoryHighWatermark.type Memory high watermark type. Either `absolute` or `relative`
# ##
# type: "absolute"
# ## Memory high watermark value.
# ## @param memoryHighWatermark.value Memory high watermark value
# ## The default value of 0.4 stands for 40% of available RAM
# ## Note: the memory relative limit is applied to the resource.limits.memory to calculate the memory threshold
# ## You can also use an absolute value, e.g.: 256MB
# ##
# value: 700MB
# resources:
# requests:
# memory: "512Mi"
# cpu: "500m"
# limits:
# memory: "1Gi"
# cpu: "1"
## RabbitMQ maximum available scheduler threads and online scheduler threads. By default it will create a thread per CPU detected, with the following parameters you can tune it manually.
maxAvailableSchedulers: null
onlineSchedulers: null
## To support upgrade from 3.8.x to 3.11.x , featureFlags are needed
## ref: https://blog.rabbitmq.com/posts/2022/07/required-feature-flags-in-rabbitmq-3.11/
featureFlags: drop_unroutable_metric,empty_basic_get_metric,implicit_default_bindings,maintenance_mode_status,quorum_queue,stream_queue,user_limits,virtual_host_metadata
## Additional environment variables to set
## ref: https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq#adding-extra-environment-variables
extraEnvVars:
- name: RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS
value: "+S 2:2 +sbwt none +sbwtdcpu none +sbwtdio none"
service:
ports:
amqp: 5672
amqpTls: 5671
manager: 15672
external:
username:
password:
url:
erlangCookie:
secrets: {}
# username:
# name: "xray-rabbitmq-creds"
# key: "username"
# password:
# name: "xray-rabbitmq-creds"
# key: "password"
# url:
# name: "xray-rabbitmq-creds"
# key: "url"
persistence:
enabled: true
accessMode: ReadWriteOnce
size: 20Gi
## Load Definitions - https://www.rabbitmq.com/management.html#load-definitions
# ref : https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq#load-definitions
extraSecretsPrependReleaseName: true
extraSecrets:
load-definition:
load_definition.json: |
{
"permissions": [
{
"user": "{{ .Values.auth.username }}",
"vhost": "/",
"configure": ".*",
"write": ".*",
"read": ".*"
}
],
"users": [
{
"name": "{{ .Values.auth.username }}",
"password": "{{ .Values.auth.password }}",
"tags": "administrator"
}
],
"vhosts": [
{
"name": "/"
}
],
"policies": [
{
"name": "ha-all",
"apply-to": "all",
"pattern": ".*",
"vhost": "/",
"definition": {
"ha-mode": "all",
"ha-sync-mode": "automatic"
}
}
]
}
loadDefinition:
enabled: true
existingSecret: '{{ .Release.Name }}-load-definition'
nodeSelector: {}
tolerations: []
affinity: {}
## Upgrade of rabbitmq from 3.8.x to 3.11.x needs the feature flags to be enabled.
## Ref: (https://blog.rabbitmq.com/posts/2022/07/required-feature-flags-in-rabbitmq-3.11/
## migration enable will perform `rabbitmqctl enable_feature_flag all` command on the existing rabbitmq before starting the upgrade
migration:
## Migration is required to be performed only once hence this option can be disabled once the feature flags are enabled in rabbitmq.
enabled: true
image:
registry: releases-docker.jfrog.io
repository: bitnami/kubectl
tag: 1.24.12
## Service account for the pre-upgrade hook to perform rabbitmq migration
serviceAccount:
create: true
## The name of the ServiceAccount to use.
## If not set and create is true, a name is generated using the fullname template
name:
## Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: true
rbac:
create: true
role:
## Rules to create. It follows the role specification
rules:
- apiGroups:
- ""
resources:
- pods/exec
- pods
verbs:
- create
- get
- list
# This is automatically set based on rabbitmqTLS enabled flag.
extraConfiguration: |-
management.listener.ssl = {{ template "xray.rabbitmq.isTlsEnabled" . }}
# Common Xray settings
common:
## Note that by default we use appVersion to get image tag
# xrayVersion:
xrayUserId: 1035
xrayGroupId: 1035
# fsGroupChangePolicy: "Always"
# Spread Xray pods evenly across your nodes or some other topology
topologySpreadConstraints: []
# - maxSkew: 1
# topologyKey: kubernetes.io/hostname
# whenUnsatisfiable: DoNotSchedule
# labelSelector:
# matchLabels:
# app: '{{ template "xray.name" . }}'
# role: '{{ template "xray.name" . }}'
# release: "{{ .Release.Name }}"
# Xray configuration to be written to xray_config.yaml
xrayConfig:
stdOutEnabled: true
indexAllBuilds: false
support-router: true
# Use rabbitmq connection config from environment variables.
# If false, then connection details should be set directly in system.yaml (systemYaml section).
# When using external rabbitmq, set this to false
rabbitmq:
connectionConfigFromEnvironment: true
## Custom command to run before Xray startup. Runs BEFORE any microservice-specific preStartCommand
preStartCommand:
## Add custom volumes
# If .Values.xray.unifiedSecretInstallation is true then secret name should be '{{ template "xray.name" . }}-unified-secret'.
customVolumes: |
# - name: custom-script
# configMap:
# name: custom-script
## Add custom volumesMounts
customVolumeMounts: |
# - name: custom-script
# mountPath: /scripts/script.sh
# subPath: script.sh
# Add any list of configmaps to Xray
configMaps: |
# posthook-start.sh: |-
# echo "This is a post start script"
# posthook-end.sh: |-
# echo "This is a post end script"
## Add custom init containers execution before predefined init containers
customInitContainersBegin: |
# - name: "custom-setup"
# image: "{{ .Values.initContainerImage }}"
# imagePullPolicy: "{{ .Values.imagePullPolicy }}"
# {{- if .Values.containerSecurityContext.enabled }}
# securityContext: {{- tpl (omit .Values.containerSecurityContext "enabled" | toYaml) . | nindent 10 }}
# {{- end }}
# command:
# - 'sh'
# - '-c'
# - 'touch {{ .Values.xray.persistence.mountPath }}/example-custom-setup'
# volumeMounts:
# - mountPath: "{{ .Values.xray.persistence.mountPath }}"
# name: data-volume
## Add custom init containers execution after predefined init containers
customInitContainers: |
# - name: "custom-systemyaml-setup"
# image: "{{ .Values.initContainerImage }}"
# imagePullPolicy: "{{ .Values.imagePullPolicy }}"
# {{- if .Values.containerSecurityContext.enabled }}
# securityContext: {{- tpl (omit .Values.containerSecurityContext "enabled" | toYaml) . | nindent 10 }}
# {{- end }}
# command:
# - 'sh'
# - '-c'
# - 'wget -O {{ .Values.xray.persistence.mountPath }}/etc/system.yaml https://<repo-url>/systemyaml'
# volumeMounts:
# - mountPath: "{{ .Values.xray.persistence.mountPath }}"
# name: data-volume
## Add custom sidecar containers
# - The provided example uses a custom volume (customVolumes)
# - The provided example shows running container as root (id 0)
customSidecarContainers: |
# - name: "sidecar-list-etc"
# image: "{{ .Values.initContainerImage }}"
# imagePullPolicy: "{{ .Values.imagePullPolicy }}"
# {{- if .Values.containerSecurityContext.enabled }}
# securityContext: {{- tpl (omit .Values.containerSecurityContext "enabled" | toYaml) . | nindent 10 }}
# {{- end }}
# command:
# - 'sh'
# - '-c'
# - >
# while true; do echo "running in sidecar"; sleep 2; done
# volumeMounts:
# - mountPath: "{{ .Values.xray.persistence.mountPath }}"
# name: data-volume
# resources:
# requests:
# memory: "32Mi"
# cpu: "50m"
# limits:
# memory: "128Mi"
# cpu: "100m"
# If .Values.xray.unifiedSecretInstallation is true then secret name should be '{{ template "xray.name" . }}-unified-secret'.
customSecrets:
# - name: custom-secret
# key: custom-secret.yaml
# data: >
# custom_secret_config:
# parameter1: value1
# parameter2: value2
# - name: custom-secret2
# key: custom-secret2.config
# data: |
# here the custom secret 2 config
persistence:
enabled: true
## A manually managed Persistent Volume and Claim
## Requires persistence.enabled: true
## If defined, PVC must be created manually before volume will be bound
# existingClaim:
accessMode: ReadWriteOnce
## Container storage limit if persistence.enabled: false
## Otherwise PVC size
size: 50Gi
## server data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"
## @param extraEnvVars Extra environment variables to add to xray containers
## E.g:
## extraEnvVars:
## - name: FOO
## value: BAR
##
extraEnvVars:
analysis:
name: xray-analysis
## Note that by default we use appVersion to get image tag/version
image:
registry: releases-docker.jfrog.io
repository: jfrog/xray-analysis
# tag:
internalPort: 7000
externalPort: 7000
annotations: {}
extraEnvVars:
# Add lifecycle hooks for the analysis pod
lifecycle: {}
# postStart:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
# preStop:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the preStart handler > /usr/share/message"]
## Add custom volumesMounts
customVolumeMounts: |
# - name: custom-script
# mountPath: /scripts/script.sh
# subPath: script.sh
livenessProbe:
enabled: true
config: |
exec:
command:
- sh
- -c
- curl -s -k --fail --max-time {{ .Values.probes.timeoutSeconds }} http://localhost:{{ .Values.analysis.internalPort }}/api/v1/system/liveness
initialDelaySeconds: {{ if semverCompare "<v1.20.0-0" .Capabilities.KubeVersion.Version }}90{{ else }}0{{ end }}
periodSeconds: 10
timeoutSeconds: {{ .Values.probes.timeoutSeconds }}
failureThreshold: 3
successThreshold: 1
startupProbe:
enabled: true
config: |
exec:
command:
- sh
- -c
- curl -s -k --fail --max-time {{ .Values.probes.timeoutSeconds }} http://localhost:{{ .Values.analysis.internalPort }}/api/v1/system/readiness
initialDelaySeconds: 30
failureThreshold: 30
periodSeconds: {{ .Values.probes.timeoutSeconds }}
timeoutSeconds: 1
## Custom command to run before Xray Analysis startup. Runs AFTER the common.preStartCommand
preStartCommand:
resources: {}
# requests:
# memory: "1Gi"
# cpu: "100m"
# limits:
# memory: "2Gi"
# cpu: "1"
sbom:
enabled: false
name: xray-sbom
## Note that by default we use appVersion to get image tag/version
image:
registry: releases-docker.jfrog.io
repository: jfrog/xray-sbom
internalPort: 7006
externalPort: 7006
annotations: {}
extraEnvVars:
# Add lifecycle hooks for the indexer pod
lifecycle: {}
# postStart:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
# preStop:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the preStart handler > /usr/share/message"]
## Add custom volumesMounts
customVolumeMounts: |
# - name: custom-script
# mountPath: /scripts/script.sh
# subPath: script.sh
livenessProbe:
enabled: true
config: |
exec:
command:
- sh
- -c
- curl -s -k --fail --max-time {{ .Values.probes.timeoutSeconds }} http://localhost:{{ .Values.sbom.internalPort }}/api/v1/system/liveness
initialDelaySeconds: {{ if semverCompare "<v1.20.0-0" .Capabilities.KubeVersion.Version }}90{{ else }}0{{ end }}
periodSeconds: 10
timeoutSeconds: {{ .Values.probes.timeoutSeconds }}
failureThreshold: 3
successThreshold: 1
startupProbe:
enabled: true
config: |
exec:
command:
- sh
- -c
- curl -s -k --fail --max-time {{ .Values.probes.timeoutSeconds }} http://localhost:{{ .Values.sbom.internalPort }}/api/v1/system/readiness
initialDelaySeconds: 30
failureThreshold: 30
periodSeconds: 5
timeoutSeconds: {{ .Values.probes.timeoutSeconds }}
## Custom command to run before Xray Indexer startup. Runs AFTER the common.preStartCommand
preStartCommand:
resources: {}
# requests:
# memory: "1Gi"
# cpu: "100m"
# limits:
# memory: "2Gi"
# cpu: "1"
indexer:
name: xray-indexer
## Note that by default we use appVersion to get image tag/version
image:
registry: releases-docker.jfrog.io
repository: jfrog/xray-indexer
# tag:
internalPort: 7002
externalPort: 7002
annotations: {}
extraEnvVars:
# Add lifecycle hooks for the indexer pod
lifecycle: {}
# postStart:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
# preStop:
# exec:
# command: ["/bin/sh", "-c", "echo Hello from the preStart handler > /usr/share/message"]
## Add custom volumesMounts
customVolumeMounts: |
# - name: custom-script
# mountPath: /scripts/script.sh
# subPath: script.sh
livenessProbe:
enabled: true
config: |
exec:
command:
- sh
- -c
- curl -s -k --fail --max-time {{ .Values.probes.timeoutSeconds }} http://localhost:{{ .Values.indexer.internalPort }}/api/v1/system/liveness
initialDelaySeconds: {{ if semverCompare "<v1.20.0-0" .Capabilities.KubeVersion.Version }}90{{ else }}0{{ end }}