-
Notifications
You must be signed in to change notification settings - Fork 523
/
Copy pathtest_values.yaml
648 lines (583 loc) · 14.6 KB
/
test_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
# Default values for myapp.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
rolloutLabels:
name: abhinav
Company: Devtron
Job: DevOps
rolloutAnnotations:
name: abhinav
Company: Devtron
Job: DevOps
containerSpec:
lifecycle:
enabled: true
preStop:
exec:
command: ["sleep","10"]
postStart:
httpGet:
host: example.com
path: /example
port: 90
imagePullSecrets:
- test1
- test2
replicaCount: 1
MinReadySeconds: 5
MaxSurge: 1
MaxUnavailable: 0
GracePeriod: 30
ContainerPort:
- name: app
port: 8080
servicePort: 80
envoyTimeout: 15
targetPort: 8080
envoyPort: 8799
useHTTP2: false
supportStreaming: false
idleTimeout: 1800s
servicemonitor:
enabled: true
path: /abc
scheme: 'http'
interval: 30s
scrapeTimeout: 20s
metricRelabelings:
- sourceLabels: [namespace]
regex: '(.*)'
replacement: myapp
targetLabel: target_namespace
- name: app1
port: 8090
targetPort: 1234
servicePort: 8080
useGRPC: true
servicemonitor:
enabled: true
- name: app2
port: 8091
servicePort: 8081
useGRPC: true
pauseForSecondsBeforeSwitchActive: 30
waitForSecondsBeforeScalingDown: 30
autoPromotionSeconds: 30
Spec:
Affinity:
Key:
# Key: kops.k8s.io/instancegroup
Values:
image:
pullPolicy: IfNotPresent
autoscaling:
enabled: true
MinReplicas: 1
MaxReplicas: 2
TargetCPUUtilizationPercentage: 90
TargetMemoryUtilizationPercentage: 80
behavior: {}
# scaleDown:
# stabilizationWindowSeconds: 300
# policies:
# - type: Percent
# value: 100
# periodSeconds: 15
# scaleUp:
# stabilizationWindowSeconds: 0
# policies:
# - type: Percent
# value: 100
# periodSeconds: 15
# - type: Pods
# value: 4
# periodSeconds: 15
# selectPolicy: Max
extraMetrics: []
# - external:
# metricName: pubsub.googleapis.com|subscription|num_undelivered_messages
# metricSelector:
# matchLabels:
# resource.labels.subscription_id: echo-read
# targetAverageValue: "2"
# type: External
#
secret:
enabled: false
service:
enabled: true
type: ClusterIP
# name: "1234567890123456789012345678901234567890123456789012345678901234567890"
annotations: {}
# test1: test2
# test3: test4
server:
deployment:
image_tag: 1-95af053
image: ""
deploymentType: "RECREATE"
topologySpreadConstraints:
- maxSkew: 1
topologyKey: zone
whenUnsatisfiable: DoNotSchedule
autoLabelSelector: true
customLabelSelector:
foo: bar
EnvVariables:
- name: FLASK_ENV
value: qa
EnvVariablesFromSecretKeys: []
# - name: ENV_NAME
# secretName: SECRET_NAME
# keyName: SECRET_KEY
EnvVariablesFromCongigMapKeys: []
# - name: ENV_NAME
# configMapName: CONFIG_MAP_NAME
# keyName: CONFIG_MAP_KEY
LivenessProbe:
Path: /
port: 8080
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
failureThreshold: 3
httpHeaders:
- name: Custom-Header
value: abc
- name: Custom-Header2
value: xyz
winterSoldier:
apiVersion: pincher.devtron.ai/v1alpha1
enabled: true
annotations: {}
labels: {}
timeRangesWithZone:
timeZone: "Asia/Kolkata"
timeRanges:
- timeFrom: 00:00
timeTo: 23:59:59
weekdayFrom: Sat
weekdayTo: Sun
- timeFrom: 00:00
timeTo: 08:00
weekdayFrom: Mon
weekdayTo: Fri
- timeFrom: 20:00
timeTo: 23:59:59
weekdayFrom: Mon
weekdayTo: Fri
action: scale
targetReplicas: [1,1,1]
fieldSelector:
- AfterTime(AddTime(ParseTime({{metadata.creationTimestamp}}, '2006-01-02T15:04:05Z'), '5m'), Now())
ReadinessProbe:
Path: /
port: 8080
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
failureThreshold: 3
httpHeaders:
- name: Custom-Header
value: abc
StartupProbe:
Path: "/"
port: 8080
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
failureThreshold: 3
httpHeaders: []
command: []
tcp: false
prometheus:
release: monitoring
servicemonitor:
additionalLabels: {}
prometheusRule:
enabled: true
additionalLabels: {}
namespace: ""
rules:
# These are just examples rules, please adapt them to your needs
- alert: TooMany500s
expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
for: 1m
labels:
severity: critical
annotations:
description: Too many 5XXs
summary: More than 5% of the all requests did return 5XX, this require your attention
- alert: TooMany400s
expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
for: 1m
labels:
severity: critical
annotations:
description: Too many 4XXs
summary: More than 5% of the all requests did return 4XX, this require your attention
ingress:
enabled: true
className: nginx
annotations: {}
# nginx.ingress.kubernetes.io/rewrite-target: /
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# nginx.ingress.kubernetes.io/canary: "true"
# nginx.ingress.kubernetes.io/canary-weight: "10"
# Old Ingress Format
# host: "ingress-example.com"
# path: "/app"
# New Ingress Format
hosts:
- host: chart-example1.local
pathType: "ImplementationSpecific"
paths:
- /example1
- host: chart-example2.local
pathType: "ImplementationSpecific"
paths:
- /example2
- /example2/healthz
additionalBackends:
- path: /example1
pathType: "ImplementationSpecific"
backend:
service:
name: test-service
port:
number: 80
tls: []
### Legacy Ingress Format ##
# host: abc.com
# path: "/"
# pathType: "ImplementationSpecific"
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
ingressInternal:
enabled: false
className: nginx-internal
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# nginx.ingress.kubernetes.io/canary: "true"
# nginx.ingress.kubernetes.io/canary-weight: "10"
hosts:
- host: chart-example1.internal
pathType: "ImplementationSpecific"
paths:
- /example1
additionalBackends:
- path: /internal
pathType: "ImplementationSpecific"
backend:
service:
name: test-service-internal
port:
number: 80
- host: chart-example2.internal
pathType: "ImplementationSpecific"
paths:
- /example2
- /example2/healthz
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
dbMigrationConfig:
enabled: false
command:
workingDir: /app
enabled: false
value: ["ls"]
args:
enabled: false
value: []
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 1
memory: 200Mi
requests:
cpu: 0.10
memory: 100Mi
volumeMounts: []
# - name: log-volume
# mountPath: /var/log
volumes: []
# - name: log-volume
# emptyDir: {}
nodeSelector: {}
#used for deployment algo selection
orchestrator.deploymant.algo: 1
ConfigMaps:
enabled: false
maps: []
# - name: config-map-1
# type: environment
# external: false
# data:
# key1: key1value-1
# key2: key2value-1
# key3: key3value-1
# - name: config-map-2
# type: volume
# external: false
# mountPath: /etc/config/2
# data:
# key1: |
# club : manchester utd
# nation : england
# key2: abc-2
# key3: abc-2
# - name: config-map-3
# type: environment
# external: true
# mountPath: /etc/config/3
# data: []
# - name: config-map-4
# type: volume
# external: true
# mountPath: /etc/config/4
# data: []
ConfigSecrets:
enabled: false
secrets:
- name: config-secret-1
type: environment
external: false
externalType: AWSSecretsManager
esoSecretData:
secretStore:
aws:
service: SecretsManager
region: us-east-1
auth:
secretRef:
accessKeyIDSecretRef:
name: awssm-secret
key: access-key
secretAccessKeySecretRef:
name: awssm-secret
key: secret-access-key
esoData:
- secretKey: prod-mysql-password
key: secrets/prod-mysql-secrets
property: prodPassword
- secretKey: prod-mysql-password
key: secrets/prod-mysql-secrets
property: prodPassword
- secretKey: prod-mysql-password
key: secrets/prod-mysql-secrets
property: prodPassword
- secretKey: prod-mysql-password
key: secrets/prod-mysql-secrets
property: prodPassword
data:
key1: key1value-1
key2: key2value-1
key3: key3value-1
- name: config-secret-2
type: environment
external: false
externalType: ESO_HashiCorpVault
esoSecretData:
secretStore:
vault:
server: "http://my.vault.server:8200"
path: "secret"
version: "v2"
auth:
tokenSecretRef:
name: vault-token
key: token
esoData:
- secretKey: prod-mysql-password
key: secrets/prod-mysql-secrets
property: prodPassword
- secretKey: prod-mysql-password
key: secrets/prod-mysql-secrets
property: prodPassword
- secretKey: prod-mysql-password
key: secrets/prod-mysql-secrets
property: prodPassword
date:
key1: key1value-1
key2: key2value-1
key3: key3value-1
# - name: config-secret-2
# type: volume
# external: false
# mountPath: /etc/config/2
# data:
# key1: |
# club : manchester utd
# nation : england
# key2: abc-2
initContainers:
## Additional init containers to run before the Scheduler pods.
## for example, be used to run a sidecar that chown Logs storage .
- command: ["sh", "-c", "chown -R 1000:1000 logs"]
reuseContainerImage: true
volumeMounts:
- mountPath: /usr/local/airflow/logs
name: logs-data
securityContext:
privileged: true
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
- name: init-migrate
image: busybox:latest
command: ["sh", "-c", "chown -R 1000:1000 logs"]
volumeMounts:
- mountPath: /usr/local/airflow/logs
name: logs-data
securityContext:
capabilities:
drop:
- ALL
containers: []
## Additional init containers to run before the Scheduler pods.
## for example, be used to run a sidecar that chown Logs storage .
#- name: volume-mount-hack
# image: busybox
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
# volumeMounts:
# - mountPath: /usr/local/airflow/logs
# name: logs-data
rawYaml: []
# - apiVersion: v1
# kind: Service
# metadata:
# annotations:
# labels:
# app: sample-metrics-app
# name: sample-metrics-app
# namespace: default
# spec:
# ports:
# - name: web
# port: 80
# protocol: TCP
# targetPort: 8080
# selector:
# app: sample-metrics-app
# sessionAffinity: None
# type: ClusterIP
# - apiVersion: v1
# kind: Service
# metadata:
# annotations:
# labels:
# app: sample-metrics-app
# name: sample-metrics-app
# namespace: default
# spec:
# ports:
# - name: web
# port: 80
# protocol: TCP
# targetPort: 8080
# selector:
# app: sample-metrics-app
# sessionAffinity: None
# type: ClusterIP
# If you need to provide some extra specs for main container which are not included by default in deployment template
# then provide them here
containerExtraSpecs: {}
# If you need to provide some extra specs for pod which are not included by default in deployment template
# then provide them here
podExtraSpecs: {}
envoyproxy:
image: docker.io/envoyproxy/envoy:v1.16.0
configMapName: ""
lifecycle: {}
resources:
limits:
cpu: 50m
memory: 50Mi
requests:
cpu: 50m
memory: 50Mi
podDisruptionBudget: {}
# minAvailable: 1
# maxUnavailable: 1
## Node tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
appMetrics: true
serviceAccount:
## @param serviceAccount.create Enable creation of ServiceAccount for pods
##
create: false
## @param serviceAccount.name The name of the ServiceAccount to use.
## If not set and create is true, a name is generated using the `.Chart.Name .fullname` template
name: "test1"
## @param serviceAccount.annotations Annotations for service account. Evaluated as a template.
## Only used if `create` is `true`.
##
annotations:
kubernetes.io/service-account.name: build-robot
containerSecurityContext:
allowPrivilegeEscalation: false
privileged: true
hostAliases: []
# - ip: "127.0.0.1"
# hostnames:
# - "foo.local"
deployment:
strategy:
blueGreen:
autoPromotionSeconds: 30
scaleDownDelaySeconds: 30
previewReplicaCount: 1
autoPromotionEnabled: false
rolling:
maxSurge: "25%"
maxUnavailable: 1
canary:
maxSurge: "25%"
maxUnavailable: 1
steps:
- setWeight: 25
- pause:
duration: 15 # 1 min
- setWeight: 50
- pause:
duration: 15 # 1 min
- setWeight: 75
- pause:
duration: 15 # 1 min
recreate: {}
persistentVolumeClaim:
name: kamal-pvc
resources:
requests:
storage: 5Gi
storageClassName: my-storage-class
affinity:
enabled: false
values:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: security
operator: In
values:
- S1
topologyKey: topology.kubernetes.io/zone