-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
404 lines (369 loc) · 11.9 KB
/
Copy pathvalues.yaml
File metadata and controls
404 lines (369 loc) · 11.9 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
---
clusterName: "cluster.local"
autoscaler: true
# By default, this is points at the docker hub artifacts
registry:
opthub: "azul"
dockerhubMirror: ""
imagePullPolicy: "IfNotPresent"
metricsPath:
simpleSizing:
# Total number of vCores that will be allocated to the CNC service.
# The sizing formula in the templates will allocate individual
# CNC infrastructure components to best utilize given resources.
# The default number is the amount of vCores necessary to start
# minimum required replicas of each component, so that the service is operational.
vCores: 39
# minVCores and maxVCores has the same formula as vCores, but applied
# when autoscaling is enabled.
minVCores: 39
# Default max is to allocate 10 compile brokers.
maxVCores: 116
# Do not change these values unless you change the required CNC pod sizing.
relationships:
brokersPerGateway: 4
brokersPerCache: 100
# Secrets used by helm chart. Secrets are created by helm chart when default config is used.
#
# It is possible to provide name of existing secret. This secret needs to be in same namespace as the namespace
# used by Helm. This secret will then be used instead of creating new one.
secrets:
blobStorage:
s3:
# name of existing Secret object to use. New Secret is created if name is empty
existingSecret: ""
# name of *key* for `accessKey` value in K8S Secret. It can be renamed to match names in existing Secret
accessKeySecretKey: blob-storage-accesskey
# default value for accesskey - used when new secret is created
accesskey: null # <yourAccessKey>
# name of *key* for `secretkey` value in K8S Secret. It can be renamed to match names in existing Secret
secretAccessKeySecretKey: blob-storage-secretkey
# default value for db.secretkey - used when new secret is created
secretkey: null # <yourSecretKey>
azure:
# name of existing Secret object to use. New Secret is created if name is empty
existingSecret: ""
# name of *key* for `connectionStringSecretKey` value in K8S Secret. It can be renamed to match names in existing Secret
connectionStringSecretKey: azure-storage-connection-string
# connectionString: "<connection-string>" . For authMethod: connection-string,
# get connection-string on Azure Portal > Storage accounts > {storage_account_name} > Access keys
# name of *key* for `sasTokenSecretKey` in K8S Secret. It can be renamed to match names in existing Secret
sasTokenSecretKey: azure-storage-sas-token
# sasToken: "<sas-token>" # For authMethod: sas-token,
# Get sas-token on Azure Portal > Storage accounts > {storage_account_name} > {blob_container} > Shared access tokens
deployment:
serviceAccount:
labels: {}
annotations: {}
existingServiceAccount: ""
ssl:
enabled: false
value:
cert: ""
key: ""
path:
cert: "cert.pem"
key: "key.pem"
existingSecret: ""
compilations:
minVmVersionForCNCCompilation: ""
concurrencyBoost: ""
parallelism:
# Maximum concurrent compilation limit per VM (VMs will not send more than this amount at the same time).
limitPerVm: 500
# Maximum amount of parallel compiler engine processes running at the same time per compile broker.
limitPerCompileBroker: 30
lookupParallelism: 120 # calculated as limitPerCompileBroker * 4
compileArtifact:
cleaner:
enabled: true
keepCompilerCrashArtifactsFor: "P30D"
cleanupInterval: "P1D"
readyNowOrchestrator:
debugInfoHistoryLength: 100
completedAfter: "PT24H"
completionGracePeriod: "PT180S"
cache:
enabled: true
maxSizeBytes: 0.5G
producers:
continueRecordingOnPromotion: false
maxConcurrentRecordings: 10
maxPromotableGeneration: 3
maxSynchronizedGeneration: 2
maxProfileSize: 300M
promotion:
minProfileSize: 1M
minProfileDuration: "PT2M"
minProfileSizePerGeneration: "0:1M,1:10M,2:25M,3:50M"
minProfileDurationPerGeneration: "0:PT2M,1:PT15M,2:PT30M,3:PT60M"
cleaner:
enabled: true
externalPersistentStorageSoftLimit: "10Gi" # use with s3 or azure-blob storage services
targetSize: 0 # use only to override auto-settings
warningSize: 0 # use only to override auto-settings
keepUnrequestedProfileNamesFor: 0
keepDebugOnlyGenerationProfilesFor: "P7D"
indirectDelivery:
enabled: true
refresh:
interval: PT60S
minRatio: 1.25
minBytes: 8M
maxStaleness: PT5M
codeCache:
cleaner:
enabled: true
targetSize: 100Gi
interval: PT2H
storage:
offloadReadOperations: true
writeBehindStorageMethod: true
inventory:
enabled: true
cleaner:
interval: PT7M
synchronization:
enabled: true
# comma separated list of URLs pointing to REST API of other peers,
# e.g. https://rno.cluster1:8080/,https://rno.cluster2:8080/
peers: ""
initialDelay: "PT180s"
period: "PT30s"
storage:
blobStorageService: # Required value. Available options: s3, azure-blob, gcp-blob
pathPrefix: "%namespace%" # string %namespace% will be replaced by K8S namespace, it can be extended ("%namespace%/test1") or used without namespace ("test2")
azureBlob:
endpoint: https://<yourendpoint>.blob.core.windows.net
authMethod: default-credentials # available options: sas-token, connection-string, default-credentials
# K8s nodes that run cache, compilebroker and gateway PODs must have RW permissions to storage container below
container: <your-container>
gcpBlob:
commonBucket: <your-bucket>
s3:
# K8s nodes that run cache, compilebroker and gateway PODs must have RW permissions to bucket below
commonBucket: <your-bucket>
region: "us-west-2"
storageEndpoint: "" # override to set your s3 endpoint if using S3 compatible storage service
hazelcast:
watchdog:
enabled: true
period: "PT30S"
timeout: "PT10S"
threshold: 3
compilationStreaming:
enabled: false
eviction:
enabled: true
buildRequestRetention: P7D
#################################################################################
# The rest of the settings are only to show you the values used internally. #
# Changing the values below will not have any affect on your CNC cluster. #
#################################################################################
gateway:
replicas: 1
autoscaler:
enabled: true
min: 1
max:
resources:
requests:
# Do not use non-numerical values such as 200m, otherwise the templating logic will break.
cpu: "7"
memory: "28Gi"
ephemeral-storage: "1Gi"
limits:
cpu: "7"
memory: "28Gi"
ephemeral-storage: "1Gi"
nodeSelector:
kubernetes.io/arch: amd64
service:
type: "NodePort"
httpEndpoint:
enabled: false
port: 8080
grpc:
port: 50051
# annotations: {}
ports:
serviceGrpcPort: 50051
internalGrpcPort: 50052
tolerations: {}
affinity: {}
applicationLabels: # Additional labels for Deployment/StatefulSet
#release: "stable"
applicationAnnotations: # Additional annotations for Deployment/StatefulSet
podTemplateLabels: # Additional labels for POD
podTemplateAnnotations: # Additional annotations for POD
#environment: "dev"
serviceLabels: # Additional labels for Service
existingServiceAccount: ""
gwProxy:
enabled: true
replicas: 1
resources:
requests:
cpu: "7"
memory: "1Gi" # Adjust gwProxy.overloadManager.maxHeapSizeBytes accordingly to the memory budget
ephemeral-storage: "1Gi"
limits:
cpu: "7"
memory: "1Gi"
ephemeral-storage: "1Gi"
overloadManager:
maxHeapSizeBytes: "524288000" # = "500Mi"
circuitBreakers:
maxRequests: "3072"
maxConnections: "3072"
nodeSelector:
kubernetes.io/arch: amd64
tolerations: {}
affinity: {}
applicationLabels: # Additional labels for Deployment/StatefulSet
#release: "stable"
applicationAnnotations: # Additional annotations for Deployment/StatefulSet
podTemplateLabels: # Additional labels for POD
#environment: "dev"
podTemplateAnnotations: # Additional annotations for POD
serviceLabels: # Additional labels for Service
existingServiceAccount: ""
compileBroker:
enabled: true
replicas: 1
autoscaler:
enabled: true
min: 1
max:
terminationGracePeriodSeconds: 60
resources:
requests:
# Do not use non-numerical values such as 200m, otherwise the templating logic will break.
cpu: "7"
memory: "28Gi"
ephemeral-storage: "8Gi"
limits:
cpu: "7"
memory: "28Gi"
ephemeral-storage: "8Gi"
nodeSelector:
kubernetes.io/arch: amd64
tolerations: {}
affinity: {}
applicationLabels: # Additional labels for Deployment/StatefulSet
#release: "stable"
applicationAnnotations: # Additional annotations for Deployment/StatefulSet
podTemplateLabels: # Additional labels for POD
#environment: "dev"
podTemplateAnnotations: # Additional annotations for POD
serviceLabels: # Additional labels for Service
existingServiceAccount: ""
cache:
replicas: 1
autoscaler:
enabled: true
min: 1
max:
terminationGracePeriodSeconds: 300
resources:
requests:
# Do not use non-numerical values such as 200m, otherwise the templating logic will break.
cpu: "7"
memory: "28Gi"
ephemeral-storage: "1Gi"
limits:
cpu: "7"
memory: "28Gi"
ephemeral-storage: "1Gi"
nodeSelector:
kubernetes.io/arch: amd64
tolerations: {}
affinity: {}
applicationLabels: # Additional labels for Deployment/StatefulSet
#release: "stable"
applicationAnnotations: # Additional annotations for Deployment/StatefulSet
podTemplateLabels: # Additional labels for POD
#environment: "dev"
podTemplateAnnotations: # Additional annotations for POD
serviceLabels: # Additional labels for Service
existingServiceAccount: ""
ports:
internalGrpcPort: 50071
taskExecutor:
enabled: true
terminationGracePeriodSeconds: 120
resources:
requests:
# Do not use non-numerical values such as 200m, otherwise the templating logic will break.
cpu: "4"
memory: "16Gi"
ephemeral-storage: "10Gi" # TaskExecutor needs to store temporary stream files
limits:
cpu: "4"
memory: "16Gi"
ephemeral-storage: "10Gi"
nodeSelector:
kubernetes.io/arch: amd64
tolerations: {}
applicationLabels: # Additional labels for Deployment/StatefulSet
podTemplateLabels: # Additional labels for POD
serviceLabels: # Additional labels for Service
existingServiceAccount: ""
operator:
enabled: true
scaleDownStabilizationWindow: 120S
timeToClearOptimizationBacklog: 120s
monitorPodCpuUsage: true
sessionBalancing:
enabled: true
minGatewayCpuUsage: "0.0"
resources:
requests:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "1Gi"
limits:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "1Gi"
nodeSelector:
kubernetes.io/arch: amd64
tolerations: {}
affinity: {}
applicationLabels:
#release: "stable"
applicationAnnotations: # Additional annotations for Deployment/StatefulSet
podTemplateLabels:
#environment: "dev"
podTemplateAnnotations: # Additional annotations for POD
existingServiceAccount: ""
mgmtGateway:
resources:
requests:
# Do not use non-numerical values such as 200m, otherwise the templating logic will break.
cpu: "2"
memory: "2Gi"
ephemeral-storage: "1Gi"
limits:
cpu: "2"
memory: "2Gi"
ephemeral-storage: "1Gi"
service:
type: "LoadBalancer"
httpEndpoint:
port: 8080
nodeSelector:
kubernetes.io/arch: amd64
applicationLabels: # Additional labels for Deployment/StatefulSet
#release: "stable"
applicationAnnotations: # Additional annotations for Deployment/StatefulSet
podTemplateLabels: # Additional labels for POD
#environment: "dev"
podTemplateAnnotations: # Additional annotations for POD
serviceLabels: # Additional labels for Service
existingServiceAccount: ""
# Monitoring section
grafana:
enabled: false
prometheus:
enabled: false