-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathcloudbees-cd-defaults.yaml
More file actions
1577 lines (1350 loc) · 53.2 KB
/
cloudbees-cd-defaults.yaml
File metadata and controls
1577 lines (1350 loc) · 53.2 KB
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
### Global configurations section
### ---------------------------------------------
## Please, note that this will override the parameters, including sub-charts,
## configured to use the global value over local values
global:
cloudbees:
imageRegistry:
imageTag:
## Enable `imagePullSecrets` if you are using a private registry.
## Secrets must be manually created or already exist in the namespace.
## `imagePullSecrets: <secret-name>`
imagePullSecrets:
### --------------------------------------------
### Common images configurations section
### ---------------------------------------------
images:
## Image registry to pull CloudBees CD/RO images from.
## Example: registry: "123456789012.dkr.ecr.us-east-1.amazonaws.com"
registry: "docker.io/cloudbees"
## CloudBees CD/RO flow-server image tag to pull.
tag: "2026.03.0.185227_3.2.235_20260321"
## The image pull policy to use.
pullPolicy: IfNotPresent
## Enable `imagePullSecrets` if you are using a private registry.
## Secrets must be manually created or already exist in the namespace.
## `imagePullSecrets: <secret-name>`
imagePullSecrets:
## (OPTIONAL) Create an array of `imagePullSecrets` containing private registry credentials.
## when you have one or more secrets to use when pulling images.
## NOTE: Only one instance of `imagePullSecrets:` can be present.
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
# imagePullSecrets:
# - name: "docker-registry"
## The name of the CloudBees CD/RO flow-server.
## Usually, a fully-qualified domain name, where the server
## is available for all agents (resources) and other components.
## By default, it is the internal cluster hostname for the K8S flow-server
## service.
## By default, the CloudBees CD/RO flow-server is not fully
## accessible to components outside the Kubernetes cluster. However,
## CloudBees CD/RO agents can also be installed in different namespaces
## and configured to communicate with the flow-server service across namespaces
## using their DNS name. For more information on connecting to agents in
## different namespaces, refer to:
## https://docs.cloudbees.com/docs/cloudbees-cd/latest/install-k8s/installation#_install_cloudbees_cdro_agents_in_different_namespaces
serverName: flow-server
### --------------------------------------------
### Ingress configuration section
### ---------------------------------------------
ingress:
## Flag that dictates the ingress workload and its accompanying services are installed.
enabled: true
host:
## CloudBees CD/RO flow-web ingress annotations.
## Nginx is used, but any ingress that supports
## sticky sessions will suffice.
annotations:
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/affinity-mode: "persistent"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
nginx.ingress.kubernetes.io/proxy-body-size: "10G"
nginx.ingress.kubernetes.io/secure-backends: "false"
nginx.ingress.kubernetes.io/proxy-read-timeout: "4000"
nginx.ingress.kubernetes.io/proxy-stream-timeout: "4000"
## If you are using EKS with ALB, enable the follow annotations:
# alb.ingress.kubernetes.io/scheme: internet-facing
# alb.ingress.kubernetes.io/certificate-arn: "<acm certificate arn>"
## Set to the same value as `ingress-nginx.controller.ingressClassResource.name` if enabled.
class: flow-ingress
## If using EKS and need to deploy ALB load balancer with alb controller enabled, set to `alb`.
# class: alb
## Certificate for CloudBees flow-web ingress.
## You can also set using `helm install --set-file`.
# ingress.certificate.key=path/to/key` `--set-file
# ingress.certificate.crt=path/to/certificate`
## Example structure to configure an ingress certificate for TLS.
certificate:
existingSecret:
key:
crt:
## Create an OpenShift route rather than a generic ingress.
route: false
## Enables platform-specific settings.
## Platform-specific values are: `eks`, `aws`, `gke`, `aks`, `openshift`
## NOTE: `openshift` maps to OpenShift 4.x.
platform: standard
### --------------------------------------------
### Flow server configuration section
### ---------------------------------------------
server:
## Flag that dictates the cbflow-server workload and its accompanying services are installed.
enabled: true
## The `imageRepository` in the `images.registry` to pull component image from.
imageRepository: cbflow-server
## Number of replicas of this component to create.
replicas: 1
## `expose: true` allows cbflow-server service ingress ports `8443` and `61613`
## to be accessed from outside the cluster.
expose: true
## The default loglevel for cbflow-server.
logLevel: DEBUG
zk:
host: zookeeper
port: 2181
## Interpreted as if passed to the CloudBees ecconfigure utility within the container.
ecconfigure: "--serverInitMemoryMB=4096 --serverMaxMemoryMB=4096"
## Specify the resources to request for this component.
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 2
memory: 6Gi
nodeSelector: {}
tolerations: []
affinity: {}
## Kubernetes Liveness Probes:
livenessProbe:
initialDelaySeconds: 90
periodSeconds: 60
failureThreshold: 10
timeoutSeconds: 10
## Kubernetes Readiness Probes:
readinessProbe:
initialDelaySeconds: 60
periodSeconds: 10
failureThreshold: 10
timeoutSeconds: 10
## Specify additional volumes to mount in the cbflow-server container.
additionalVolumes: []
## Specify where your additional volumes are mounted in the cbflow-server container.
additionalVolumeMounts: []
## Specify additional containers to mount for cbflow-server.
additionalContainers:
# - name: container-name
# image: image-version
# command:
# - "/container-command"
## Specify any additional environment variables to set for cbflow-server.
extraEnvs: []
# extraEnvs:
# - name: FOO
# value: "BAR"
# - name: FOO
# valueFrom:
# secretKeyRef:
# key: FOO
# name: secret-resource
## Enable or disable sending telemetry data to CloudBees.
## NOTE: This option only works for the initial installation of the cbflow-server.
## If your server is already initialized, you can configure this setting in the *Server Setting*.
telemetryData:
enabled: true
## Requires `server.expose.enable: true` and ports `8443` and `61613` to be open and externally exposed.
## Creates extra Kubernetes service with type LoadBalancer.
externalService:
enabled: false
## server LoadBalancer service annotations for
## creating internal LoadBalancer on GCP or AWS.
annotations:
# networking.gke.io/load-balancer-type: "Internal"
# service.beta.kubernetes.io/aws-load-balancer-internal: "0.0.0.0/0"
## Enable or disable creating init container for volume permissions for cbflow-server.
volumesPermissionsInitContainer:
enabled: true
## Horizontal Pod Autoscaling configuration for cbflow-server.
## This is only supported when `clusteredMode:true`.
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
templates: []
## Specify custom or additional autoscaling metrics.
## Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
# - type: Pods
# pods:
# metric:
# name: server_process_requests_total
# target:
# type: AverageValue
# averageValue: 10000m
## Custom labels for CD/RO flow-server pods
customLabels: {}
jobInit:
annotations:
"helm.sh/hook": "post-install,post-upgrade"
"helm.sh/hook-weight": "1"
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
nodeSelector: {}
tolerations: []
affinity: {}
## Specify the resources to request for this component.
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 2
memory: 6Gi
## Kubernetes Liveness Probes:
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 60
timeoutSeconds: 10
## Custom labels for CD/RO job-init pods
customLabels: {}
### --------------------------------------------
### Flow web server configuration section
### ---------------------------------------------
web:
## Flag that dictates the cbflow-web workload and its accompanying services are installed.
enabled: true
## The `imageRepository` in the `images.registry` to pull component image from.
imageRepository: cbflow-web
## Number of replicas of this component to create.
replicas: 1
service:
type: ClusterIP
## Interpreted as if passed to the CloudBees ecconfigure utility within the container.
ecconfigure: ""
## Specify the resources to request for this component.
resources:
limits:
cpu: 1
memory: 512Mi
requests:
cpu: 0.25
memory: 256Mi
nodeSelector: {}
tolerations: []
affinity: {}
## Additional environment variables to set for cbflow-web.
extraEnvs: []
# extraEnvs:
# - name: FOO
# value: "BAR"
# - name: FOO
# valueFrom:
# secretKeyRef:
# key: FOO
# name: secret-resource
## Enable shared plugin volume mount (PVC) on flow-web pods.
## Mounts empty dir instead if `sharedPluginsEnabled` is false.
sharedPluginsEnabled: true
## Specify additional volumes to mount in the cbflow-web container.
additionalVolumes: []
## Specify where your additional volumes are mounted in the cbflow-web container.
additionalVolumeMounts: []
## Specify additional containers to mount for cbflow-web.
additionalContainers:
# - name: container-name
# image: image-version
# command:
# - "/container-command"
## Kubernetes Liveness Probes:
livenessProbe:
initialDelaySeconds: 10
periodSeconds: 60
timeoutSeconds: 10
failureThreshold: 3
## Kubernetes Readiness Probes:
readinessProbe:
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
failureThreshold: 3
## Horizontal Pod Autoscaling configuration for cbflow-web.
## This is only supported when `clusteredMode: true`.
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
templates: []
## Specify custom or additional autoscaling metrics.
## Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
# - type: Pods
# pods:
# metric:
# name: server_process_requests_total
# target:
# type: AverageValue
# averageValue: 10000m
## Custom labels for CD/RO web pods
customLabels: {}
### --------------------------------------------
### Flow repository configuration section
### ---------------------------------------------
repository:
## Flag that dictates the cbflow-repository workload and its accompanying services are installed.
enabled: true
## The `imageRepository` in the `images.registry` to pull component image from.
imageRepository: cbflow-repository
## Number of replicas of this component to create.
replicas: 1
## `expose: true` allows cbflow-repository service ingress port `8200`
## to be accessed from outside the cluster.
expose: true
## The zone (must exist in the flow-server instance) assigned
## to the repository instance created in the flow-server to represent this
## repository instance.
zoneName:
## The endpoint for the cbflow-repository service.
##
## If `cbflow-server.enabled:true` this setting is OPTIONAL, and
## the service name is automatically determined based on `.serverName` value.
##
## If `cbflow-server.enabled:false` and the cbflow-repository should be connected to
## a cbflow-server outside of this deployment, `serviceEndpoint` is *REQUIRED.*
##
## Usual helm templates may be used for `serviceEndpoint`.
serviceEndpoint:
## The default loglevel for cbflow-repository.
logLevel: DEBUG
## Interpreted as if passed to the CloudBees ecconfigure utility within the container.
ecconfigure: "--repositoryInitMemoryMB=512 --repositoryMaxMemoryMB=1024"
## Specify the resources to request for this component.
resources:
requests:
cpu: 0.25
memory: 1024Mi
limits:
cpu: 0.25
memory: 2048Mi
nodeSelector: {}
tolerations: []
affinity: {}
## Additional environment variables to set for cbflow-repository.
extraEnvs: []
# extraEnvs:
# - name: FOO
# value: "BAR"
# - name: FOO
# valueFrom:
# secretKeyRef:
# key: FOO
# name: secret-resource
## Requires `repository.expose.enable: true` and port `8200` to be open and externally exposed.
## Creates extra Kubernetes service with type LoadBalancer.
externalService:
enabled: false
## repository LoadBalancer service annotations for
## creating internal LoadBalancer on GCP or AWS.
annotations:
# networking.gke.io/load-balancer-type: "Internal"
# service.beta.kubernetes.io/aws-load-balancer-internal: "0.0.0.0/0"
## Enable or disable creating init container for volume permissions for cbflow-repository.
volumesPermissionsInitContainer:
enabled: true
## Specify additional volumes to mount in the cbflow-repository container.
additionalVolumes: []
## Specify where your additional volumes are mounted in the cbflow-repository container.
additionalVolumeMounts: []
## Specify additional containers to mount for cbflow-repository.
additionalContainers:
# - name: container-name
# image: image-version
# command:
# - "/container-command"
## Kubernetes Liveness Probes:
livenessProbe:
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
## Kubernetes Readiness Probes:
readinessProbe:
initialDelaySeconds: 120
periodSeconds: 5
timeoutSeconds: 5
failureThreshold: 3
## Horizontal Pod Autoscaling configuration for cbflow-repository.
## This is only supported when `clusteredMode: true`.
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
templates: []
## Specify custom or additional autoscaling metrics.
## Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
# - type: Pods
# pods:
# metric:
# name: server_process_requests_total
# target:
# type: AverageValue
# averageValue: 10000m
## Custom labels for CD/RO repository pods
customLabels: {}
### --------------------------------------------
### Analytics server configuration section
### ---------------------------------------------
analytics:
## Flag that dictates the cbflow-analytics workload and its accompanying services are installed.
enabled: true
## The `imageRepository` in the `images.registry` to pull component image from.
imageRepository: cbflow-analytics
## Number of replicas of this component to create.
replicas: 1
## `expose: true` allows cbflow-analytics service ingress port `9201`
## to be accessed from outside the cluster.
expose: true
## The service endpoint configured on the remote CloudBees CD/RO server.
## It is assumed the remote CloudBees CD/RO server is located in the same
## Kubernetes cluster.
serviceEndpoint: "flow-analytics.{{ .Release.Namespace }}"
## The name of the Analytic's cluster.
clusterName:
## The number of primary shards that an index should have.
numberOfShards:
## Analytics server credentials
## Specify either:
## * The secret where the report user password and the admin user
## password will be stored (Recommended for production).
## or
## * The reportUserPassword and adminPassword values.
##
## When using the secret:
## * Store the `reportUser` password under the `CBF_ANALYTICS_PASSWORD` key.
## * Store the `adminPassword` under the `CBF_ANALYTICS_ADMIN_PASSWORD` key.
##
##
## IMPORTANT: If the `adminPassword` is left empty, *no admin user is created*,
## and administrative access is *not* granted to any user.
credentials:
existingSecret:
adminPassword:
## If `reportUserPassword` is an empty string, a random 20 characters password is generated.
reportUserPassword:
## The heap size in MB for server service.
heapSize: 1024
## Specify the resources to request for this component.
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 0.1
memory: 1536Mi
nodeSelector: {}
tolerations: []
affinity: {}
## Adds an OpenShift node tuning label to analytics pods, which adjusts
## the required value of 'vm.max_map_count'.
## For more information, refer to:
## https://developers.redhat.com/blog/2019/11/12/using-the-red-hat-openshift-tuned-operator-for-elasticsearch/
openshiftNodeTuning: false
## Additional environment variables to set for cbflow-analytics.
extraEnvs: []
# extraEnvs:
# - name: FOO
# value: "BAR"
# - name: FOO
# valueFrom:
# secretKeyRef:
# key: FOO
# name: secret-resource
## Kubernetes Liveness Probes:
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 20
failureThreshold: 3
timeoutSeconds: 10
## Kubernetes Readiness Probes:
readinessProbe:
initialDelaySeconds: 60
periodSeconds: 5
failureThreshold: 3
timeoutSeconds: 10
## Enable or disable a *privileged* `sysctlInitContainer` if
## the sysctl `vm.max_map_count setting` is set by another method.
sysctlInitContainer:
enabled: true
## The `sysctlInitContainer.imageRepository` sysctlInitContainer image repository.
imageRepository: busybox
## The `sysctlInitContainer.imageTag` sysctlInitContainer image tag .
imageTag: stable
## Enable or disable creating an init container for cbflow-analytics volume permissions.
volumesPermissionsInitContainer:
enabled: true
## Enable or disable registering the analytics server on CD/RO using `setAnalyticsServerConfiguration`.
## Set `analytics.autoRegister: false` to prevent the analytics server configuration from being created or updated.
## If the analytics server configuration already exists in your deployment, setting this value to `false` has no effect.
autoRegister: true
## Enable or disable creating a backup of cbflow-analytics data.
backup:
## NOTE: If you change `analytics.backup.enabled` for an existing installation,
## you must delete the statefulset for the installation prior to upgrading.
## To do so, you can use `kubectl delete statefulset flow-analytics`.
enabled: false
schedule_cron: "0 */12 * * *"
retentionDays: 15
location: "/os-backups"
## The `imageRepository` in the `images.registry` to pull component image from.
imageRepository: cbflow-tools
cleanupImageRepository: "python"
cleanupImageTag: "3.7.7"
restoreSnapshot: false
restoreSnapshotName:
externalRepo:
## Enable if you are backing up in Amazon S3 or GCS.
enabled: false
## Type can be Amazon S3 or GCS.
type: s3
# Name of bucket in Amazon S3 or GCS
bucketName:
# base path for backups in Bucket
basePath: "os-backups"
## Use GKE Workload Identity with Kubernetes service account to impersonate a Google Cloud
## Use The AWS IAM roles for service accounts to impersonate access to a S3
## Enable serviceAccountsIdentity or provide IAM or GCS credentials below
serviceAccountsIdentity: false
## For `existingSecret`, either:
## * Specify where the AWS or GCS credentials are stored.
## or
## * Provide the secret in the values file.
##
## For AWS S3:
## Create a secret for AWS S3 with permission to read/write
## to the bucket policy with keys `AWS_ACCESS_KEY` and `AWS_SECRET_KEY`.
## Example:
## `kubectl create secret generic s3awssecret --from-literal=AWS_ACCESS_KEY="XXXXX" --from-literal=AWS_SECRET_KEY="XXXXX"`
##
## For GCS:
## Create a secret for GCS with permission to read/write
## to the bucket policy using `KEY GCS_SA_KEY` referencing
## the file with the service account key.
## Example:
## `kubectl create secret generic gcssasecret --from-file=GCS_SA_KEY=/tmp/gke-credentials.json`
existingSecret:
secret:
## Provide *only* if type is AWS S3.
awsAccessKey:
awsSecretKey:
## Provide *only* if type is GCS.
gcsSaKey:
## Region of the AWS S3 or GCS bucket. Example: us-east-1
region:
## Custom Pip config file configuration to install pip packages using private PyPi repo
pipConfig: {}
## pip.conf: |
## [global]
## index-url = http://<private-pypi-repo-host-port>
## trusted-host = <private-pypi-repo-host>
## Requires `analytics.expose.enable: true` and port `9201` to be open and externally exposed.
## Creates extra Kubernetes service with type LoadBalancer.
externalService:
enabled: false
## cbflow-analytics LoadBalancer service annotations for
## creating internal LoadBalancer on GCP or AWS.
annotations:
# networking.gke.io/load-balancer-type: "Internal"
# service.beta.kubernetes.io/aws-load-balancer-internal: "0.0.0.0/0"
## For `analytics.certificates`, you must provide either:
## * The certificates for ca, sign, node, admin,
## and bundle in the fields below.
## or
## * A `analytics.certificates.existingSecret` that references
## where the ca, sign, node, admin, and bundle are stored.
## IMPORTANT:
## If you have cbflow-analytics replicas, you must define one of
## the following supported certificate options:
## * Define certificates.bundle.
## * Define certificates.ca.crt and certificates.ca.key.
## * Define certificates.ca.crt and certificates.sign.crt, and certificates.sign.key.
## * Define certificates.ca.crt, certificates.sign.crt, certificates.node.crt, certificates.node.key,
## certificates.admin.crt, and certificates.admin.key.
## For more information, refer to:
## https://docs.cloudbees.com/docs/cloudbees-cd/latest/install-k8s/installation#_configure_cloudbees_analytics_server_certificates
## cbflow-analytics supported certificates:
certificates:
ca:
crt:
key:
sign:
crt:
key:
node:
crt:
key:
admin:
crt:
key:
dname:
bundle:
## For `analytics.certificates.existingSecret`:
## Specify the secret where the certificates ca, sign, node,
## admin, and bundle are stored (recommended for production).
existingSecret:
## When using the existingSecret use the following keys:
## Store the 'ca.crt' value under CBF_ANALYTICS_CA_CRT key.
## Store the 'ca.key' value under CBF_ANALYTICS_CA_KEY key.
## Store the 'sign.crt' value under CBF_ANALYTICS_SIGN_CRT key.
## Store the 'sign.key' value under CBF_ANALYTICS_SIGN_KEY key.
## Store the 'node.crt' value under CBF_ANALYTICS_NODE_CRT key.
## Store the 'node.key' value under CBF_ANALYTICS_NODE_KEY key.
## Store the 'admin.crt' value under CBF_ANALYTICS_ADMIN_CRT key.
## Store the 'admin.key' value under CBF_ANALYTICS_ADMIN_KEY key.
## Store the 'bundle' value under CBF_ANALYTICS_CRT_BUNDLE key.
## NOTE: Do not store your 'admin.dnname' in any secret. Instead, pass it as a value.
## Reindexing settings
reindex:
remote:
## Specifies the hosts that can be reindexed from remotely. Consists of a comma-delimited
## list of host:port entries. The default value is '127.0.0.1:*,[::1]:*,localhost:*'.
## But a value is specified here to allow re-indexing of data from an outdated
## Analytics server.
allowlist: "flow-devopsinsight.*:*"
## Specify additional containers.
additionalContainers: null
# additionalContainers:
# - name: container-name
# image: image-version
# command:
# - "/container-command"
## Custom labels for CD/RO analytics pods
customLabels: {}
### --------------------------------------------
### (LEGACY) Flow DevOps Insight (DOIS/dois) configuration section
### ---------------------------------------------
dois:
## Flag that dictates the cbflow-dois workload and its accompanying services are installed.
enabled: true
## The `imageRepository` in the `images.registry` to pull component image from.
imageRepository: cbflow-dois
## Number replicas of Elasticsearch nodes to create.
replicas: 1
## `expose: true` allows cbflow-dois service ingress ports `9200`
## to be accessed from outside the cluster.
expose: true
## The DOIS service endpoint configured on the remote CloudBees CD/RO server.
## It is assumed the remote CloudBees CD/RO server is located in the same
## Kubernetes cluster.
serviceEndpoint: "flow-devopsinsight.{{ .Release.Namespace }}"
## The name of the Elasticsearch cluster.
esClusterName:
## Minimum number of master-eligible nodes that must be visible in order to
## form an Elasticsearch cluster.
esMinMasterNodes: 1
## The number of primary shards that an index should have.
esNumberOfShards:
## DOIS credentials
## Specify either:
## * The secret where the report user password and the admin user
## password will be stored (Recommended for production).
## or
## * The reportUserPassword and adminPassword values.
##
## When using the secret:
## * Store the `reportUser` password under the `CBF_DOIS_PASSWORD` key.
## * Store the `adminPassword` under the `CBF_DOIS_ADMIN_PASSWORD` key.
##
##
## IMPORTANT: If the `adminPassword` is left empty, *no admin user is created*,
## and administrative access is *not* granted to any user.
credentials:
existingSecret:
adminPassword:
## If `reportUserPassword` is an empty string, a random 20 characters password is generated.
reportUserPassword:
## The heap size in MB for Elasticsearch and Logstash services.
esRam: 1024
## Specify the resources to request for this component.
resources:
limits:
cpu: 1
memory: 3Gi
requests:
cpu: 0.1
memory: 2Gi
nodeSelector: {}
tolerations: []
affinity: {}
## Adds an OpenShift node tuning label to DOIS pods that
## configures the 'vm.max_map_count' value required to run Elasticsearch.
## For more information, refer to:
## https://developers.redhat.com/blog/2019/11/12/using-the-red-hat-openshift-tuned-operator-for-elasticsearch/
openshiftNodeTuning: false
## Additional environment variables to set for cbflow-dois.
extraEnvs: []
# extraEnvs:
# - name: FOO
# value: "BAR"
# - name: FOO
# valueFrom:
# secretKeyRef:
# key: FOO
# name: secret-resource
## DOIS Readiness probe variables:
healthProbeReadinessPeriodSeconds: 5
healthProbeReadinessFailureThreshold: 3
healthProbeReadinessInitialDelaySeconds: 60
## DOIS Liveness probe variables:
healthProbeLivenessPeriodSeconds: 20
healthProbeLivenessFailureThreshold: 3
healthProbeLivenessInitialDelaySeconds: 60
## Enable or disable a *privileged* `sysctlInitContainer` if
## the sysctl `vm.max_map_count setting` is set by another method.
sysctlInitContainer:
enabled: true
## The `sysctlInitContainer.imageRepository` sysctlInitContainer image repository.
imageRepository: busybox
## The `sysctlInitContainer.imageTag` sysctlInitContainer image tag .
imageTag: stable
## Enable or disable creating an init container for cbflow-dois volume permissions.
volumesPermissionsInitContainer:
enabled: true
## Enable or disable creating a backup of cbflow-dois data.
backup:
## NOTE: If you change `dois.backup.enabled` for an existing installation,
## you must delete the statefulset for the installation prior to upgrading.
## To do so, you can use `kubectl delete statefulset flow-devopsinsight`.
enabled: false
schedule_cron: "0 */12 * * *"
retentionDays: 15
location: "/es-backups"
## The `imageRepository` in the `images.registry` to pull component image from.
imageRepository: cbflow-tools
restoreSnapshot: false
restoreSnapshotName:
externalRepo:
## Enable if you are backing up in Amazon S3 or GCS.
enabled: false
## Type can be Amazon S3 or GCS.
type: s3
# Name of bucket in Amazon S3 or GCS
bucketName:
## Use GKE Workload Identity with Kubernetes service account to impersonate a Google Cloud
## Use The AWS IAM roles for service accounts to impersonate access to a S3
## Enable serviceAccountsIdentity or provide IAM or GCS credentials below
serviceAccountsIdentity: false
## For `existingSecret`, either:
## * Specify where the AWS or GCS credentials are stored.
## or
## * Provide the secret in the values file.
##
## For AWS S3:
## Create a secret for AWS S3 with permission to read/write
## to the bucket policy with keys `AWS_ACCESS_KEY` and `AWS_SECRET_KEY`.
## Example:
## `kubectl create secret generic s3awssecret --from-literal=AWS_ACCESS_KEY="XXXXX" --from-literal=AWS_SECRET_KEY="XXXXX"`
##
## For GCS:
## Create a secret for GCS with permission to read/write
## to the bucket policy using `KEY GCS_SA_KEY` referencing
## the file with the service account key.
## Example:
## `kubectl create secret generic gcssasecret --from-file=GCS_SA_KEY=/tmp/gke-credentials.json`
existingSecret:
secret:
## Provide *only* if type is AWS S3.
awsAccessKey:
awsSecretKey:
## Provide *only* if type is GCS.
gcsSaKey:
## Region of the AWS S3 or GCS bucket. Example: us-east-1
region:
## Custom Pip config file configuration to install pip packages using private PyPi repo
pipConfig: {}
## pip.conf: |
## [global]
## index-url = http://<private-pypi-repo-host-port>
## trusted-host = <private-pypi-repo-host>
## Requires `dois.expose.enable: true` and ports `9200` to be open and externally exposed.
## Creates extra Kubernetes service with type LoadBalancer.
externalService:
enabled: false
## cbflow-dois LoadBalancer service annotations for
## creating internal LoadBalancer on GCP or AWS.
annotations:
# networking.gke.io/load-balancer-type: "Internal"
# service.beta.kubernetes.io/aws-load-balancer-internal: "0.0.0.0/0"
## For `dois.certificates`, you must provide either:
## * The certificates for ca, sign, node, admin,
## and bundle in the fields below.
## or
## * A `dois.certificates.existingSecret` that references
## where the ca, sign, node, admin, and bundle are stored.
## IMPORTANT:
## If you have cbflow-dois replicas, you must define one of
## the following supported certificate options:
## * Define certificates.bundle.
## * Define certificates.ca.crt and certificates.ca.key.
## * Define certificates.ca.crt and certificates.sign.crt, and certificates.sign.key.
## * Define certificates.ca.crt, certificates.sign.crt, certificates.node.crt, certificates.node.key,
## certificates.admin.crt, and certificates.admin.key.
## For more information, refer to:
## https://docs.cloudbees.com/docs/cloudbees-cd/latest/install-k8s/installation#_configure_cloudbees_analytics_server_certificates
## cbflow-dois supported certificates:
certificates:
ca:
crt:
key:
sign:
crt:
key:
node:
crt:
key:
admin:
crt:
key:
dname:
bundle:
## For `dois.certificates.existingSecret`:
## Specify the secret where the certificates ca, sign, node,
## admin, and bundle are stored (recommended for production).
existingSecret:
## When using the existingSecret use the following keys:
## Store the 'ca.crt' value under CBF_DOIS_CA_CRT key.
## Store the 'ca.key' value under CBF_DOIS_CA_KEY key.
## Store the 'sign.crt' value under CBF_DOIS_SIGN_CRT key.
## Store the 'sign.key' value under CBF_DOIS_SIGN_KEY key.
## Store the 'node.crt' value under CBF_DOIS_NODE_CRT key.
## Store the 'node.key' value under CBF_DOIS_NODE_KEY key.
## Store the 'admin.crt' value under CBF_DOIS_ADMIN_CRT key.
## Store the 'admin.key' value under CBF_DOIS_ADMIN_KEY key.
## Store the 'bundle' value under CBF_DOIS_CRT_BUNDLE key.
## NOTE: Do not store your 'admin.dnname' in any secret. Instead, pass it as a value.
## Specify additional containers.
additionalContainers: null
# additionalContainers:
# - name: container-name
# image: image-version
# command:
# - "/container-command"
## Custom labels for CD/RO dois pods
customLabels: {}
### --------------------------------------------
### Flow bound agent configuration section
### ---------------------------------------------
## This is an internal component that serves the cbflow-web and the cbflow-repository
## connections to the cbflow-server. It is automatically enabled or disabled if
## deployment of cbflow-web and cbflow-repository are enabled.
boundAgent:
## Number of replicas of this component to create.
replicas: 1
## The default loglevel for cbflow-agent.
logLevel: DEBUG
flowCredentials:
## Enable `serverSecretReference` to re-use flow-server secrets in the agent charts.
serverSecretReference: true
releaseNamePrefix: cb-flow-bound-agent
resourceName: local
resourcePools: default
service:
publicHostName: cb-flow-bound-agent
name: cb-flow-bound-agent
## Interpreted as if passed to the CloudBees ecconfigure utility within the container.
ecconfigure: "--agentInitMemoryMB=256 --agentMaxMemoryMB=256"