-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvalues.yaml
More file actions
687 lines (568 loc) · 21.5 KB
/
Copy pathvalues.yaml
File metadata and controls
687 lines (568 loc) · 21.5 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
---
# Override the name of the the Varnish Cache chart and its components.
nameOverride: ""
# Override the full name of the Varnish Cache chart and its components.
fullnameOverride: ""
global:
# Sets the secret to use to pull images.
imagePullSecrets: []
#imagePullSecrets:
# - name: private-pull-secrets
# Sets the securityContext of the Pod.
podSecurityContext:
fsGroup: 999
# Sets the securityContext for all containers.
securityContext:
runAsUser: 999
runAsNonRoot: true
# Sets the annotations for all workload resources.
annotations: {}
# Sets the annotations for all pod templates.
podAnnotations: {}
# Sets the labels for all workload resources.
labels: {}
# Sets the labels for all pod templates.
podLabels: {}
# Configures a resource limits for all containers.
resources: {}
#resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
serviceAccount:
# Specifies whether a service account should be created
create: true
# Labels to add to the service account. Can be set as a templated string.
labels: {}
# Annotations to add to the service account. Can be set as a templated string.
annotations: {}
# The name of the service account to use. If not set and create is true, a name
# is generated using the fullname template
name: ""
# Configures Varnish Cache server.
server:
replicas: 1
# Sets the deployment kind. Can be either a Deployment or StatefulSet.
kind: "Deployment"
# Sets the extra labels for the deployment. Can be set as a templated string.
labels: {}
# Sets the extra annotations for the deployment. Can be set as a templated string.
annotations: {}
# Sets the deployment strategy. Can be set as a templated string.
# https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
strategy: {}
# Sets the updateStrategy for StatefulSet and DaemonSet. Can be set as a templated string.
# https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
# https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/
updateStrategy: {}
# Enables hostNetwork to expose Varnish directly on the node.
hostNetwork: false
# Enables shared process namespace. May be required in case `extraContainers` needs to
# notify other process in the same Pod using UNIX signals.
# https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
shareProcessNamespace: false
http:
enabled: true
port: 6081
admin:
# Sets the address for Varnish management interface to listens to.
address: "127.0.0.1"
# Sets the port for Varnish management interface to listens to.
port: 6082
# A list of extra addresses and ports to listen.
#
# name Name of this listen (accessible in VCLs via local.socket).
#
# proto The proto to listen as (http or proxy)
#
# TCP socket:
#
# port The port to listens as. Required unless path is set.
#
# address The IP address to listens as
#
# UNIX socket:
#
# path The path to socket. Required unless port is set.
#
# mode The mode octet for the socket (0644, 0755, etc.)
#
# user The user for the socket
#
# group The group for the socket
#
extraListens: []
# - name: proxy
# address: "127.0.0.1"
# port: 8088
# proto: "PROXY"
#
# - name: proxy-sock
# path: "/tmp/varnish-proxy.sock"
# user: "www"
# group: "www"
# mode: "0700"
# proto: "PROXY"
# Sets the extra environment variables for Varnish Cache. Can be set as either
# an object, a list, or a templated string.
extraEnvs: {}
#extraEnvs:
# MY_ENV_VAR: value
# MY_OTHER_ENV_VAR: other_value
#
#extraEnvs:
# - name: MY_ENV_VAR
# value: value
# - name: MY_OTHER_ENV_VAR
# valueFrom:
# configMapRef:
# name: my-config-map
# value: my-key
#
#extraEnvs: |
# - name: RELEASE_NAMESPACE
# value: {{ .Release.Namespace }}
# Sets the default Time To Live (TTL) for cached objects.
ttl: 120
# Sets the minimum number of worker threads in each pool.
# See also https://varnish-cache.org/docs/6.0/reference/varnishd.html#thread-pool-min
minThreads: 50
# Sets the maximum number of worker threads in each pool.
# See also https://varnish-cache.org/docs/6.0/reference/varnishd.html#thread-pool-max
maxThreads: 1000
# Sets the idle threshold where threads idle for at least this long will be destroyed.
# See also https://varnish-cache.org/docs/6.0/reference/varnishd.html#thread-pool-timeout
threadTimeout: 120
# Sets the extra configuration args for Varnish.
extraArgs: []
# Declares the extra init containers to run before Varnish pods are run. Can be set
# as either a YAML list or a templated string.
extraInitContainers: []
#extraInitContainers: |
# - name: varnish-sleep
# securityContext:
# {{- toYaml .Values.global.securityContext | nindent 4 }}
# image: debian:latest
# command:
# - sh -c "sleep 3600"
# Declares the extra sidecar containers to run with Varnish pods. Can be set as either
# a YAML list or a templated string.
extraContainers: []
#extraContainers: |
# - name: varnish-hello
# securityContext:
# {{- toYaml .Values.global.securityContext | nindent 4 }}
# image: hello-world:latest
# volumeMounts:
# - name: {{ .Release.Name }}-varnish-vsm
# mountPath: /var/lib/varnish
# Declares the extra volumeClaimTemplates. Can be set as either a YAML list or a
# templated string. Only available when serverkind is set to StatefulSet.
extraVolumeClaimTemplates: []
#extraVolumeClaimTemplates: |
# - metadata:
# name: {{ .Release.Name }}-pv
# spec:
# accessModes: ["ReadWriteOnce"]
# resources:
# requests:
# storage: "10G"
# Declares the extra volumes to mount with Varnish container. Can be set as either a
# YAML list or a templated string.
extraVolumeMounts: []
#extraVolumeMounts: |
# - name: {{ .Release.Name }}-local-data
# mountPath: /var/lib/data
# Declares the extra volumes to mount to the pod. Can be set as either a YAML list
# or a templated string.
extraVolumes: []
#extraVolumes: |
# - name: {{ .Release.Name }}-local-data
# hostPath:
# path: /data
# type: Directory
# Sets the Varnish secret. If not set, Varnish will generate one on every Pod
# start.
secret: ""
# Sets the Varnish secret from Kubernetes secret. Either server.secret
# or server.secretFrom can be set.
secretFrom: {}
#secretFrom:
# name: secret-name
# key: varnish-secret
# Use the content of the given file path as Varnish secret. The file will be
# parsed as templated string. Will override "server.secret" if set. Note that
# the file must be placed inside the files/ directory in the Helm chart
# itself.
secretFile: ""
#secretFile: "files/secret"
# Sets the command to execute.
command: []
#command: ["/entrypoint.sh","-d"]
# Configures the path to the default VCL configuration file. This configuration
# option also affects the location where `vclConfig` is mounted (if present).
vclConfigPath: "/etc/varnish/default.vcl"
# Configures the default VCL. Can be set as a templated string.
vclConfig: ""
# Use the content of the given file path as VCL configuration. The file will be
# parsed as templated string. Will override "server.vclConfig" if set. Note that
# the file must be placed inside the files/ directory in the Helm chart
# itself.
vclConfigFile: ""
#vclConfigFile: "files/default.vcl"
# Define an extra VCL configuration. Each key corresponds to the filename.
# Can be set as a templated string. If "server.vclConfig" or "server.vclConfigFile"
# is non-empty, setting default.vcl (or the same filename as specified in
# `server.vclConfigPath`) here will result in an error.
vclConfigs: {}
#vclConfigs:
# main.vcl: |
# vcl 4.1;
#
# backend default {
# .host = "127.0.0.1";
# .port = "8080";
# }
# Configures the path to cmdfile. This configuration option also affects
# the location where `cmdfileConfig` is mounted (if present).
cmdfileConfigPath: "/etc/varnish/cmds.cli"
# Configures the cmdfile. Can be set as a templated string.
cmdfileConfig: ""
# Use the content of the given file path as a cmdfile. The file will be
# parsed as templated string. Will override "server.cmdfileConfig" if set.
# Note that the file must be placed inside the files/ directory in the Helm
# chart itself.
cmdfileConfigFile: ""
#cmdfileConfigFile: "files/cmds.cli"
# Delays stopping of the Varnish Cache container by the given seconds.
# Deprecated: use `server.delayedShutdown` instead
#delayedHaltSeconds: 0
# Configures delayed shutdown for zero-downtime downscaling.
delayedShutdown:
# Delayed shutdown method. Can be one of:
#
# none Do not perform delayed shutdown
# sleep Perform sleep in preStop for specific seconds
# mempool Automatically determine if there is any active clients before shutting down
#
# Note that when this value is set to anything other than "none"
# `server.terminationGracePeriodSeconds` must also be set to the
# maximum time it takes for Varnish Cache to shutdown.
method: "none"
# Configures "sleep" delayed shutdown method.
sleep:
seconds: 90
# Configures "mempool" delayed shutdown method.
mempool:
# Poll the mempool session every given pollSeconds.
pollSeconds: 1
# Wait for the given waitSeconds before fully shutting down.
waitSeconds: 5
# Sets the image and tag to use to deploy Varnish Cache.
# If tag is blank, appVersion is used.
image:
repository: "docker.io/varnish"
pullPolicy: IfNotPresent
tag: ""
# Enables or disables autoscaling.
autoscaling:
enabled: false
# Sets the minimum number of replicas to keep active at all time.
minReplicas: 1
# Sets the maximum number of replicas to spawn.
maxReplicas: 100
# Configures the behavior. Can be set as a template string or a
# YAML map.
behavior: ""
#behavior: |
# scaleDown:
# stabilizationWindowSeconds: 120
# policies:
# - type: Percent
# value: 50
# periodSeconds: 60
# scaleUp:
# policies:
# - type: Percent
# value: 100
# periodSeconds: 60
# - type: Pods
# value: 4
# periodSeconds: 60
# selectPolicy: Max
# Configures the autoscaling metrics. Can be set as a templated string
# or a YAML map.
metrics: ""
#metrics: |
# - type: Resource
# resource:
# name: cpu
# targetAverageUtilization: 80
# Enables or disables PodDisruptionBudget.
# See also https://kubernetes.io/docs/tasks/run-application/configure-pdb/
pdb:
enabled: false
# Sets the minimum number of healthy pods to allow for disruption.
minAvailable: ""
# Sets the maximum number of unhealthy pods to allow for disruption.
maxUnavailable: ""
service:
enabled: true
# Sets the extra labels for Varnish Cache services. Can be set as a templated string.
labels: {}
# Sets the extra annotations for Varnish Cache services. Can be set as a templated string.
annotations: {}
# Type of the service. Can be ClusterIP or NodePort.
#
# See also https://kubernetes.io/docs/concepts/services-networking/service/
type: NodePort
# Sets the internal traffic policy for this service. InternalTrafficPolicy describes how nodes distribute service
# traffic they receive on the ClusterIP. Can be set to "Local" or "Cluster" (default)
#
# See also https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/
internalTrafficPolicy: Cluster
# Sets the external traffic policy for this service. externalTrafficPolicy describes how nodes distribute service
# traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and
# LoadBalancer IPs). Can be set to "Local" or "Cluster" (default)
#
# See also https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/
externalTrafficPolicy: Cluster
# Sets whether to attach a Cluster IP address to the service. Services have Cluster IP
# associated to it by default. Setting this to "None" will create a headless service,
# which will allow the service IP to be resolved directly via DNS resolution (i.e. skipping
# kube-proxy load-balancing).
#
# See also https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
clusterIP: ""
# Enables or disables the Varnish HTTP service.
http:
enabled: true
# Sets the port to listen HTTP service to.
#
# Note that when headless service is used (server.service.type set to "ClusterIP" and
# server.service.clusterIP set to "None") the port defined here won't be used. Instead,
# Varnish must be connected via the port defined in the pod (i.e., server.http.port).
port: 80
# Expose the service directly at the Node IP address at a specific port. Only applicable
# when service type is set to "NodePort". Note that this port must be within the
# Kubernetes' service-node-port-range (default: 30000-32767)
#
# See also https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
#nodePort: 30080
# Enables custom-defined extra services.
#
# name Name of the service. Required.
#
# targetPort The port in a pod to forward requests to. Must also be defined in
# server.extraListens. Required.
#
# port The service port to listens. Note that this port is not used in case
# of headless service. targetPort will be used instead in such case.
# Required for non-headless services.
#
# nodePort Expose the service directly at Node IP address at a specific port.
# Only applicable when service type is set to "NodePort".
#
extraServices: []
# - name: proxy
# targetPort: 8088
# port: 8088
# nodePort: 30888
ingress:
enabled: false
# Sets the extra labels for Varnish Cache ingress. Can be set as a templated string.
labels: {}
# Sets the extra annotations for Varnish Cache ingress. Can be set as a templated string.
annotations: {}
# Sets the class name for ingress.
# See also https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class
ingressClassName: ""
# Sets the pathType for Kubernetes 1.19+. "Prefix" should be sufficient for most cases.
# See also https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types
pathType: Prefix
# Configures the hostname the Varnish Cache instance should respond to.
hosts: []
# - host: chart-example.local
# paths: []
# Configures TLS certificates for Ingress.
tls: []
#tls:
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
# Sets the extra annotations for Varnish Cache pod template. Can be set as a templated string.
podAnnotations: {}
#podAnnotations:
# prometheus.io/scrape: "true"
# prometheus.io/path: "/metrics"
# prometheus.io/port: "9273"
# prometheus.io/scheme: "http"
# Sets the extra labels for Varnish Cache pod template. Can be set as a templated string.
podLabels: {}
#podLabels:
# varnish-software.com/tier: "edge"
# Sets the securityContext of the Varnish Cache container.
securityContext: {}
# Configures a probe for checking if a Pod has started.
startupProbe: {}
#startupProbe:
# initialDelaySeconds: 5
# periodSeconds: 10
# timeoutSeconds: 1
# successThreshold: 1
# failureThreshold: 3
# Configures a probe for checking if a Pod is ready to receive a connection.
readinessProbe:
# Sets the initial delays in seconds until the first probe is performed.
initialDelaySeconds: 5
# Sets the interval in seconds between each probes.
periodSeconds: 10
# Sets the timeout in seconds probe is considered timed out.
timeoutSeconds: 1
# Sets the consecutive successes until a probe is considered a success.
successThreshold: 1
# Sets the consecutive failures until a probe is considered a failure.
failureThreshold: 3
# Configures a probe for checking if a Pod has started.
startupProbe: {}
#startupProbe:
# initialDelaySeconds: 5
# periodSeconds: 10
# timeoutSeconds: 1
# successThreshold: 1
# failureThreshold: 3
# Configures a probe for checking if a Pod can continue to receive a connection.
livenessProbe:
# Sets the initial delays in seconds until the first probe is performed.
initialDelaySeconds: 30
# Sets the interval in seconds between each probes.
periodSeconds: 10
# Sets the timeout in seconds probe is considered timed out.
timeoutSeconds: 5
# Sets the consecutive successes until a probe is considered a success.
successThreshold: 1
# Sets the consecutive failures until a probe is considered a failure.
failureThreshold: 3
# Configures a resource limits.
resources: {}
#resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# Configures a node selector to assign a Pod. Can be set as a templated string
# or a YAML map.
nodeSelector: {}
#nodeSelector:
# beta.kubernetes.io/arch: amd64
# Configures toleration settings for a Pod. Can be set as a templated string
# or a YAML list.
tolerations: []
# Configures an affinity for a Pod. Can be set as a templated string or
# a YAML map. By default, require Varnish to be deployed only on a node
# it was not already deployed on.
affinity: |
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: {{ include "varnish-cache.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
topologyKey: kubernetes.io/hostname
# Enable or Disable Network Policy.
# See also: https://kubernetes.io/docs/concepts/services-networking/network-policies/
networkPolicy:
enabled: false
# Allow all connections from any source. To be set to false if extraIngress is used.
allowIngress: true
# Allow all connections to any destinations. To be set to false if extraEgress is used.
allowEgress: true
# Config custom ingress rules to the NetworkPolicy.
extraIngress: []
# extraIngress:
# - from:
# - podSelector:
# matchLabels:
# component: apache
# ports:
# - port: 8080
# protocol: TCP
# Config custom egress rules to the NetworkPolicy.
extraEgress: []
# extraEgress:
# - to:
# - podSelector:
# matchLabels:
# component: apache
# ports:
# - port: 80
# protocol: TCP
# Configures the Varnish NCSA sidecar.
varnishncsa:
enabled: true
# Sets the image and tag to use to deploy Varnish NCSA sidecar. Setting this to "-"
# will inherit the same image as with server.image.
image:
repository: "-"
pullPolicy: "-"
tag: "-"
# Sets the securityContext of the Varnish NCSA sidecar.
securityContext: {}
# Sets the extra arguments for Varnish NCSA sidecar.
extraArgs:
- -c
# Configures a probe for checking if a Pod is ready to receive a connection.
readinessProbe:
# Sets the initial delays in seconds until the first probe is performed.
initialDelaySeconds: 5
# Sets the interval in seconds between each probes.
periodSeconds: 10
# Sets the timeout in seconds probe is considered timed out.
timeoutSeconds: 1
# Sets the consecutive successes until a probe is considered a success.
successThreshold: 1
# Sets the consecutive failures until a probe is considered a failure.
failureThreshold: 3
# Configures a probe for checking if a Pod can continue to receive a connection.
livenessProbe:
# Sets the initial delays in seconds until the first probe is performed.
initialDelaySeconds: 30
# Sets the interval in seconds between each probes.
periodSeconds: 10
# Sets the timeout in seconds probe is considered timed out.
timeoutSeconds: 5
# Sets the consecutive successes until a probe is considered a success.
successThreshold: 1
# Sets the consecutive failures until a probe is considered a failure.
failureThreshold: 3
# Configures a resource limits for Varnish NCSA container.
resources: {}
#resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# A list of extra manifests to be deployed alongside with Helm chart.
#
# name The name of each manifest (will be used when checksum is true)
#
# checksum A boolean flag whether to include this manifest as part of the
# checksum in workload manifests. Useful for ConfigMaps.
#
# data The data of each manifest. Can be set as templated string.
#
extraManifests: []
# - name: clusterrole
# data: |
# apiVersion: rbac.authorization.k8s.io/v1
# kind: ClusterRole
# metadata:
# name: {{ .Release.Name }}-clusterrole
# # ...