-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelm-values.yaml
639 lines (618 loc) · 23.2 KB
/
helm-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
# Default values for nexus-iq-server-ha.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# Nexus IQ Server HA configuration
iq_server:
# Sonatype official public image
# imageRegistry: # Container image registry, if not specified the Docker public registry will be used
# image: "sonatype/nexus-iq-server"
tag: "1.175.0"
# imagePullPolicy: "IfNotPresent"
# We usually recommend not to specify default resources and to leave this as a conscious choice for the user.
# This also increases the chance that the chart runs on environments with little resources.
# The commented values below are the minimum recommended resources for production.
# resources:
# requests:
# cpu: #8
# memory: #8Gi
# limits:
# cpu: #8
# memory: #8Gi
# Value for the JAVA_OPTS environment variable to pass custom settings to the JVM
# javaOpts:
# Product license
# One of these can be set to automatically install a product license
# license: # Path to your product license file
# The name of an existing Kubernetes secret containing a license_lic key with a value of the base64 encoding of your
# product license file content
licenseSecret: sonatype-iq-server-license-secret
# Git SSH configuration for Source Control
# One of these can be set to automatically install the SSH private key for Git SSH operations
# sshPrivateKey: # Path to your SSH private key file
# The name of an existing Kubernetes secret containing an id_rsa key with a value of the base64 encoding of
# your SSH private key file content
# sshPrivateKeySecret:
# One of these can be set to automatically install the known hosts for Git SSH operations
# sshKnownHosts: # Path to your known SSH hosts file in the correct format, see: https://manpages.ubuntu.com/manpages/kinetic/en/man8/sshd.8.html#ssh_known_hosts%20file%20format
# The name of an existing Kubernetes secret containing a known_hosts key with a value of the base64 encoding of
# your known hosts file content
# sshKnownHostsSecret:
# Database (PostgreSQL 10.7 or newer or a PostgreSQL-compatible service)
database:
hostname: "172.30.206.250"
port: 5432
name: nexusiq
username: nexusiq
# One of these can be set to hold the database password
# password: # Plaintext password
# The name of an existing Kubernetes secret containing a password key with a value of the base64 encoding of your
# password
passwordSecret: sonatype-iq-server-database-password-secret
# Shared file system
persistence:
# Set this to use an existing PV (no PV will be created)
# existingPersistentVolumeName:
# Set this to use an existing PVC (no PV or PVC will be created)
existingPersistentVolumeClaimName: iq-server-pvc
# If creating a PV, use this name
# persistentVolumeName: "iq-server-pv"
# If creating a PVC, use this name
# persistentVolumeClaimName: "iq-server-pvc"
# Prevent the PV from being deleted
# persistentVolumeRetainPolicy: "keep"
# Prevent the PVC from being deleted
# persistentVolumeClaimRetainPolicy: "keep"
# Storage capacity for PV/PVC to provision/request
# size: "1Gi"
# Storage class for PV/PVC (empty disables dynamic provisioning)
# storageClassName: ""
# Access mode for PV/PVC (should correspond to the volume type)
# accessModes:
# - ReadWriteMany
# Volume type
# Whichever one has all required parameters set will be used
# If this applies to multiple, then one will be selected in the preference order of csi then nfs
# csi:
# driver:
# fsType:
# volumeHandle:
# nfs:
# server:
# path: "/"
# The service account to use to run the pods/job
# serviceAccountName: "default"
# How the service is exposed
# serviceType: "ClusterIP"
# Annotations for the application service
# applicationServiceAnnotations:
# Annotations for the admin service
# adminServiceAnnotations:
# Annotations for the iq server pods
# podAnnotations:
# Number of pods to run
replicas: 2
# One of these can be set to hold the initial admin password
# initialAdminPassword: # Plaintext password
# The name of an existing Kubernetes secret containing a password key with a value of the base64 encoding of your
# password
initialAdminPasswordSecret: sonatype-iq-server-initial-admin-password-secret
# Configures the readiness probe for each pod
readinessProbe:
initialDelaySeconds: 300
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 4
# Configures the liveness probe for each pod
livenessProbe:
initialDelaySeconds: 300
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
# fluentd sidecar forwarder
# Enabled to forward logs to the fluentd daemonset aggregator
# fluentd:
# forwarder:
# enabled: true
# The full text of the config.yml file that will be passed to each Nexus IQ Server
# Note that log formats must correspond to what the fluentd sidecar configuration is set to recognize
config:
sonatypeWork: "/tmp/clm-server"
clusterDirectory: "/sonatype-work/clm-cluster"
database:
type: "postgresql"
# Pickup database settings from environment variables
hostname: ${NXIQ_DATABASE_HOSTNAME}
port: ${NXIQ_DATABASE_PORT}
name: ${NXIQ_DATABASE_NAME}
username: ${NXIQ_DATABASE_USERNAME}
password: ${NXIQ_DATABASE_PASSWORD}
# Pickup product license path from an environment variable
licenseFile: ${NXIQ_LICENSE_FILE}
server:
applicationContextPath: /
applicationConnectors:
- type: http
port: 8070
adminContextPath: /
adminConnectors:
- type: http
port: 8071
requestLog:
appenders:
- type: console
logFormat: "%clientHost %l %user [%date] \"%requestURL\" %statusCode %bytesSent %elapsedTime \"%header{User-Agent}\""
- type: file
currentLogFilename: "/var/log/nexus-iq-server/request.log"
logFormat: "%clientHost %l %user [%date] \"%requestURL\" %statusCode %bytesSent %elapsedTime \"%header{User-Agent}\""
archivedLogFilenamePattern: "/var/log/nexus-iq-server/request-%d.log.gz"
archivedFileCount: 50
logging:
level: DEBUG
loggers:
"com.sonatype.insight.scan": INFO
"eu.medsea.mimeutil.MimeUtil2": INFO
"org.apache.http": INFO
"org.apache.http.wire": ERROR
"org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter": INFO
"org.eclipse.birt.report.engine.layout.pdf.font.FontConfigReader": WARN
"org.eclipse.jetty": INFO
"org.postgresql.jdbc.PgConnection": INFO
"org.quartz": INFO
"org.zeroturnaround.exec": INFO
"com.networknt.schema": OFF
"com.sonatype.insight.audit":
appenders:
- type: console
- type: file
currentLogFilename: "/var/log/nexus-iq-server/audit.log"
archivedLogFilenamePattern: "/var/log/nexus-iq-server/audit-%d.log.gz"
archivedFileCount: 50
"com.sonatype.insight.policy.violation":
appenders:
- type: console
- type: file
currentLogFilename: "/var/log/nexus-iq-server/policy-violation.log"
archivedLogFilenamePattern: "/var/log/nexus-iq-server/policy-violation-%d.log.gz"
archivedFileCount: 50
appenders:
- type: console
threshold: ALL
logFormat: "%d{'yyyy-MM-dd HH:mm:ss,SSSZ'} %level [%thread] %X{username} %logger - %msg%n"
- type: file
threshold: ALL
logFormat: "%d{'yyyy-MM-dd HH:mm:ss,SSSZ'} %level [%thread] %X{username} %logger - %msg%n"
currentLogFilename: "/var/log/nexus-iq-server/clm-server.log"
archivedLogFilenamePattern: "/var/log/nexus-iq-server/clm-server-%d.log.gz"
archivedFileCount: 50
createSampleData: true
# Specify a custom 'chown' command to modify ownership of directories.
pvOwnershipOverride: "mkdir /tmp/clm-server"
# pvOwnershipOverride: "id"
# Horizontal pod auto-scaler
hpa:
enabled: false
# minReplicas: 2
# maxReplicas: 4
# resources:
# cpu:
# enabled: true
# average:
# threshold: 50
# memory:
# enabled: false
# average:
# threshold: 60
# Load balancer
ingress:
enabled: false
# ingressClassName: nginx
# pathType: Prefix
# annotations:
# Optional parameter to set the application hostname
# hostApplication:
# Optional parameter to set the application path
# hostApplicationPath:
# Optional parameter to set the admin hostname
# hostAdmin:
# Optional parameter to set the admin path
# hostAdminPath:
# Optional parameters to set the certificate/key pair either by a secretName or directly for tls
# If not set, then nginx will use a default self-signed certificate
# tls:
#- secretName:
# certificate:
# key:
# hosts:
# Ingress controller for Kubernetes using nginx as a reverse-proxy and load balancer
ingress-nginx:
enabled: false
# controller:
# config:
# Set to try the next server on various errors/timeouts
# proxy-next-upstream: "error timeout invalid_header http_500 http_502 http_503 http_504"
# Set to 0 to allow an unlimited maximum body size
# proxy-body-size: "0"
# extraArgs:
# default-ssl-certificate: "$(POD_NAMESPACE)/$(INGRESS_SECRET_NAME)"
# extraEnvs:
# - name: INGRESS_SECRET_NAME
# valueFrom:
# configMapKeyRef:
# name: ingress-configmap
# key: INGRESS_SECRET_NAME
# external-dns configuration
externalDns:
enabled: false
# args:
# - --provider=aws
# - --policy=upsert-only
# - --source=service
# - --source=ingress
# - --registry=txt
# - --txt-owner-id={{ .Release.Name }}-external-dns
# Service account creation/configuration
serviceAccount:
create: false
# labels:
# annotations:
# automountServiceAccountToken: false
# AWS configuration
# Secrets
# secret:
# ARN storing the initial admin password in an initial_admin_password key
# arn:
# license:
# ARN storing the binary content of Nexus IQ Server license
# arn:
# rds:
# ARN storing the host, port, (database) name, username, and password properties with their respective values
# arn:
# sshPrivateKey:
# ARN storing the binary content of your SSH private key file for use with ssh git operations
# arn:
# sshKnownHosts:
# ARN storing the binary content of your known_hosts file for use with ssh git operations
# arn:
# Cloudwatch (requires the fluentd service account or EKS worker nodes to have correct permissions)
cloudwatch:
enabled: false
# region:
# logGroupName:
# logStreamName:
# Configuration for an existing externally managed application load balancer target groups
# existingApplicationLoadBalancer:
# applicationTargetGroupARN:
# adminTargetGroupARN:
# Aggregate log file retention configuration
# aggregateLogFileRetention:
# Cron schedule expression for when to delete old aggregate log files if needed
# deleteCron: "0 1 * * *"
# Maximum last modified time of an aggregate log file in days (0 disables deletion)
# maxLastModifiedDays: 50
# fluentd configuration
fluentd:
enabled: true
# resources:
# requests:
# cpu: #150m
# memory: #200M
limits:
cpu: 300m
memory: 400M
# config:
# Configuration for sidecar forwarder
# Note that source parsing formats must correspond to the Nexus IQ Server log formats
# sidecar_forwarder:
# Ignore fluentd own events
# - match:
# $tag: fluent.**
# $type: "null"
# HTTP input for the liveness and readiness probes
# - source:
# $type: http
# port: 9880
# Throw the healthcheck to the standard output instead of forwarding it
# - match:
# $tag: fluent.healthcheck
# $type: stdout
# Get the request log
# - source:
# $type: tail
# path: /var/log/nexus-iq-server/request.log
# pos_file: /opt/bitnami/fluentd/logs/buffers/request.pos
# tag: iq_server.request
# read_from_head: true
# parse:
# $type: regexp
# expression: /^(?<host>[^ ]*) (?<ident>[^ ]*) (?<authuser>[^ ]*) \[(?<logtime>[^\]]*)\] "(?<method>[^ ]*) (?<path>[^ ]*) (?<protocol>[^"]*)" (?<status>[^ ]*) (?<bytes>[^ ]*) (?<elapsedTime>[^ ]*) "(?<userAgent>[^"]*)"$/
# time_key: logtime
# time_format: "%d/%b/%Y:%H:%M:%S %z"
# types: "status:integer,bytes:integer,elapsedTime:integer"
# Get the audit log
# - source:
# $type: tail
# path: /var/log/nexus-iq-server/audit.log
# pos_file: /opt/bitnami/fluentd/logs/buffers/audit.pos
# tag: iq_server.audit
# read_from_head: true
# parse:
# $type: json
# time_type: mixed
# time_key: timestamp
# time_format: "%Y-%m-%dT%H:%M:%S.%L%z"
# time_format_fallbacks: "%Y-%m-%dT%H:%M:%S.%LZ"
# Get the policy violation log
# - source:
# $type: tail
# path: /var/log/nexus-iq-server/policy-violation.log
# pos_file: /opt/bitnami/fluentd/logs/buffers/policy-violation.pos
# tag: iq_server.policy-violation
# read_from_head: true
# parse:
# $type: json
# time_type: mixed
# time_key: eventTimestamp
# time_format: "%Y-%m-%dT%H:%M:%S.%L%z"
# time_format_fallbacks: "%Y-%m-%dT%H:%M:%S.%LZ"
# Get the server log
# - source:
# $type: tail
# path: /var/log/nexus-iq-server/clm-server.log
# pos_file: /opt/bitnami/fluentd/logs/buffers/clm-server.pos
# tag: iq_server.clm-server
# read_from_head: true
# parse:
# $type: multiline
# format_firstline: /\d{4}-\d{1,2}-\d{1,2}/
# format1: /^((?<logtime>[^ ]* [^ ]*) (?<level>[^ ]*) \[(?<thread>[^\]]*)\] (?<username>[^ ]*) (?<logger>[^ ]*) - (?<message>.*))|(?<message>.*)$/
# time_key: logtime
# time_format: "%Y-%m-%d %H:%M:%S,%L%z"
# Get the stderr log
# - source:
# $type: tail
# path: /var/log/nexus-iq-server/stderr.log
# pos_file: /opt/bitnami/fluentd/logs/buffers/stderr.pos
# tag: iq_server.stderr
# read_from_head: true
# parse:
# $type: none
# Enrich with kubernetes metadata
# - filter:
# $tag: "**"
# $type: record_transformer
# record:
# hostname: ${HOSTNAME}
# Forward all logs to the aggregator
# - match:
# $tag: "**"
# $type: forward
# server:
# host: "{{ .Release.Name }}-fluentd-aggregator"
# port: 24224
# buffer:
# $type: file
# path: /opt/bitnami/fluentd/logs/buffers/logs.buffer
# flush_thread_count: 2
# flush_interval: 5s
# Configuration for daemonset aggregator
# aggregator:
# Ignore fluentd own events
# - match:
# $tag: fluent.**
# $type: "null"
# HTTP input for the liveness and readiness probes
# - source:
# $type: http
# port: 9880
# Throw the healthcheck to the standard output instead of forwarding it
# - match:
# $tag: fluent.healthcheck
# $type: stdout
# TCP input to receive logs from
# - source:
# $type: forward
# port: 24224
# Send the aggregated request log to a file
# - match:
# $tag: "iq_server.request"
# $type: copy
# store:
# - $type: stdout
# - $type: file
# path: /opt/bitnami/fluentd/logs/nexus-iq-server/request
# append: true
# format:
# $type: json
# inject:
# time_key: time
# time_type: string
# time_format: "%Y-%m-%dT%H:%M:%S.%NZ"
# tag_key: fluentd_tag
# buffer:
# $type: file
# path: /opt/bitnami/fluentd/logs/buffers/request.buffer
# flush_mode: interval
# flush_thread_count: 2
# flush_interval: 5s
# - $type: "{{- if ((.Values.cloudwatch).enabled) }}cloudwatch_logs{{- else }}null{{- end }}"
# log_group_name: ${LOG_GROUP_NAME}
# log_stream_name: ${LOG_STREAM_NAME}
# auto_create_stream: true
# auto_create_group: true
# remove_log_stream_name_key: true
# region: ${REGION}
# Send the aggregated audit log to a file
# - match:
# $tag: "iq_server.audit"
# $type: copy
# store:
# - $type: stdout
# - $type: file
# path: /opt/bitnami/fluentd/logs/nexus-iq-server/audit
# append: true
# format:
# $type: json
# inject:
# time_key: time
# time_type: string
# time_format: "%Y-%m-%dT%H:%M:%S.%NZ"
# tag_key: fluentd_tag
# buffer:
# $type: file
# path: /opt/bitnami/fluentd/logs/buffers/audit.buffer
# flush_mode: interval
# flush_thread_count: 2
# flush_interval: 5s
# - $type: "{{- if ((.Values.cloudwatch).enabled) }}cloudwatch_logs{{- else }}null{{- end }}"
# log_group_name: ${LOG_GROUP_NAME}
# log_stream_name: ${LOG_STREAM_NAME}
# auto_create_stream: true
# auto_create_group: true
# remove_log_stream_name_key: true
# region: ${REGION}
# Send the aggregated policy violation log to a file
# - match:
# $tag: "iq_server.policy-violation"
# $type: copy
# store:
# - $type: stdout
# - $type: file
# path: /opt/bitnami/fluentd/logs/nexus-iq-server/policy-violation
# append: true
# format:
# $type: json
# inject:
# time_key: time
# time_type: string
# time_format: "%Y-%m-%dT%H:%M:%S.%NZ"
# tag_key: fluentd_tag
# buffer:
# $type: file
# path: /opt/bitnami/fluentd/logs/buffers/policy-violation.buffer
# flush_mode: interval
# flush_thread_count: 2
# flush_interval: 5s
# - $type: "{{- if ((.Values.cloudwatch).enabled) }}cloudwatch_logs{{- else }}null{{- end }}"
# log_group_name: ${LOG_GROUP_NAME}
# log_stream_name: ${LOG_STREAM_NAME}
# auto_create_stream: true
# auto_create_group: true
# remove_log_stream_name_key: true
# region: ${REGION}
# Send the aggregated server log to a file
# - match:
# $tag: "iq_server.clm-server"
# $type: copy
# store:
# - $type: stdout
# - $type: file
# path: /opt/bitnami/fluentd/logs/nexus-iq-server/clm-server
# append: true
# format:
# $type: json
# inject:
# time_key: time
# time_type: string
# time_format: "%Y-%m-%dT%H:%M:%S.%NZ"
# tag_key: fluentd_tag
# buffer:
# $type: file
# path: /opt/bitnami/fluentd/logs/buffers/clm-server.buffer
# flush_mode: interval
# flush_thread_count: 2
# flush_interval: 5s
# - $type: "{{- if ((.Values.cloudwatch).enabled) }}cloudwatch_logs{{- else }}null{{- end }}"
# log_group_name: ${LOG_GROUP_NAME}
# log_stream_name: ${LOG_STREAM_NAME}
# auto_create_stream: true
# auto_create_group: true
# remove_log_stream_name_key: true
# region: ${REGION}
# Send the aggregated stderr log to a file
# - match:
# $tag: "iq_server.stderr"
# $type: copy
# store:
# - $type: stdout
# - $type: file
# path: /opt/bitnami/fluentd/logs/nexus-iq-server/stderr
# append: true
# format:
# $type: json
# inject:
# time_key: time
# time_type: string
# time_format: "%Y-%m-%dT%H:%M:%S.%NZ"
# tag_key: fluentd_tag
# buffer:
# $type: file
# path: /opt/bitnami/fluentd/logs/buffers/stderr.buffer
# flush_mode: interval
# flush_thread_count: 2
# flush_interval: 5s
# - $type: "{{- if ((.Values.cloudwatch).enabled) }}cloudwatch_logs{{- else }}null{{- end }}"
# log_group_name: ${LOG_GROUP_NAME}
# log_stream_name: ${LOG_STREAM_NAME}
# auto_create_stream: true
# auto_create_group: true
# remove_log_stream_name_key: true
# region: ${REGION}
# Configuration for daemonset forwarder
# The subchart enables this by default, but each Nexus IQ Server pod uses a sidecar forwarder, and so this is disabled
# forwarder:
# enabled: false
# configFile: "fluentd.yaml"
# configMap: "{{ .Release.Name }}-fluentd-daemonset-forwarder-configmap"
# Configuration for daemonset aggregator
# aggregator:
# enabled: true
# configFile: "fluentd.yaml"
# configMap: "{{ .Release.Name }}-fluentd-aggregator-configmap"
# extraVolumes:
# - name: "iq-server-pod-volume"
# persistentVolumeClaim:
# claimName: "iq-server-pvc"
# extraVolumeMounts:
# - name: "iq-server-pod-volume"
# mountPath: "/opt/bitnami/fluentd/logs/nexus-iq-server"
# subPath: log
# extraEnvVars:
# - name: REGION
# valueFrom:
# configMapKeyRef:
# name: cloudwatch
# key: region
# optional: true
# - name: LOG_GROUP_NAME
# valueFrom:
# configMapKeyRef:
# name: cloudwatch
# key: logGroupName
# optional: true
# - name: LOG_STREAM_NAME
# valueFrom:
# configMapKeyRef:
# name: cloudwatch
# key: logStreamName
# optional: true
# podSecurityContext:
# enabled: true
# runAsUser: 1000
# runAsGroup: 0
# fsGroup: 0
# containerSecurityContext:
# enabled: true
# allowPrivilegeEscalation: true
# readOnlyRootFilesystem: false
# privileged: false
# initContainers:
# - name: "{{ .Release.Name }}-set-fluentd-persistence-ownership"
# image: busybox:1.28
# command: [ "sh", "-c", "id" ]
# volumeMounts:
# - mountPath: "/opt/bitnami/fluentd/logs/nexus-iq-server"
# name: "iq-server-pod-volume"
# subPath: log
# initScripts:
# Plugin which can be configured to send logs to CloudWatch
# plugins.sh: "fluent-gem install fluent-plugin-cloudwatch-logs"