forked from PHOENIX-MEDIA/magento2-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
executable file
·706 lines (611 loc) · 22.2 KB
/
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
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
## Global Helm parameters
global:
imageRegistry: ""
## E.g.
## imagePullSecrets:
## - myRegistryKeySecretName
##
imagePullSecrets: []
image:
# registry:
repository: phoenixmedia/magento2
tag: "2.4.5"
pullPolicy: IfNotPresent
magento:
enabled: true
nameOverride: magento
fullnameOverride: magento
replicas: 1
env:
# customize MAGENTO_CLOUD_* values. use "base64 -d" to read values.
- name: MAGENTO_CLOUD_ROUTES
value: eyJodHRwOlwvXC9sb2NhbGhvc3RcLyI6eyJ0eXBlIjoidXBzdHJlYW0iLCJvcmlnaW5hbF91cmwiOiJodHRwOlwvXC97ZGVmYXVsdH1cLyJ9fQ==
- name: MAGENTO_CLOUD_RELATIONSHIPS
value: eyJkYXRhYmFzZSI6W3siaG9zdCI6Im15c3FsIiwicGF0aCI6Im1hZ2VudG8iLCJwYXNzd29yZCI6InRvcFNlY3JldCIsInVzZXJuYW1lIjoibWFnZW50byIsInBvcnQiOiIzMzA2In1dLCJyZWRpcyI6W3siaG9zdCI6InJlZGlzIiwgInBvcnQiOiAiNjM3OSJ9XSwiZWxhc3RpY3NlYXJjaCI6W3siaG9zdCI6ImVsYXN0aWNzZWFyY2gtbWFzdGVyIiwgInBvcnQiOiAiOTIwMCIsICJzY2hlbWUiOiJodHRwIn1dLCJyYWJiaXRtcSI6W3siaG9zdCI6InJhYmJpdG1xIiwgInVzZXJuYW1lIjoicGhvZW5peCIsICJwYXNzd29yZCI6Ik1hZ2VudG8xMjMiLCAic2NoZW1lIjoiYW1xcCIsICJwb3J0IjogIjU2NzIifV19
- name: MAGENTO_CLOUD_VARIABLES
value: eyJBRE1JTl9GSVJTVE5BTUUiOiJZb3VyIEZpcnN0bmFtZSIsIkFETUlOX0xBU1ROQU1FIjoiWW91ciBMYXN0bmFtZSIsIkFETUlOX0VNQUlMIjoiYWNjb3VudEBtYWlsLmNvbSIsIkFETUlOX1VTRVJOQU1FIjoiYWRtaW5pc3RyYXRvciIsIkFETUlOX1BBU1NXT1JEIjoidG9wQFNlY3JlMSIsIkFETUlOX1VSTCI6ImFkbWluIiwiQ1JZUFRfS0VZIjoiNmZnMzdqYzUyOWUwZDlmMDY5NjY1Y2JjOWZlMTcwYjIifQ==
- name: RELAYHOST
value: my.relayhost.com
- name: SMTP_USE_TLS
value: "false"
podAnnotations: {}
resources: {}
lifecycle: {}
affinity: {}
strategy:
rollingUpdate:
maxSurge: 100%
maxUnavailable: 0
type: RollingUpdate
podSecurityContext: {}
securityContext: {}
tolerations: []
volumes:
- name: magento-data
persistentVolumeClaim:
claimName: magento-data
startupProbe:
exec:
command:
- cat
- /tmp/deployed
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 20
# readinessProbe:
# exec:
# command:
# - cat
# - /tmp/deployed
# initialDelaySeconds: 20
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 20
# livenessProbe:
# exec:
# command:
# - cat
# - /tmp/deployed
# initialDelaySeconds: 20
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 20
# extraVolumes:
# - name: extra-folder
# hostPath:
# path: /extra
volumeMounts:
- name: magento-data
mountPath: /var/www/html/pub/media
subPath: media
- name: magento-data
mountPath: /var/www/html/var
subPath: var
- name: magento-data
mountPath: /var/www/html/pub/static/_cache
subPath: static-cache
extraInitContainer:
- name: check-redis
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 redis-headless 6379 2>&1| grep -q open; do echo \"waiting for redis\"; sleep 1s; done' ]
- name: check-rabbitmq
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 rabbitmq-headless 5672 2>&1| grep -q open; do echo \"waiting for rabbitmq\"; sleep 1s; done' ]
- name: check-mysql
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 mysql 3306 2>&1| grep -q open; do echo \"waiting for mysql\"; sleep 1s; done' ]
- name: check-elasticsearch
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 elasticsearch-master 9200 2>&1| grep -q open; do echo \"waiting for elasticsearch\"; sleep 1s; done' ]
- name: check-magento-install
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while [ ! -f /tmp/shared/var/.magento-installed ]; do echo \"waiting for Magento installation process to finish\"; sleep 1s; done' ]
volumeMounts:
- name: magento-data
mountPath: /tmp/shared
# terminationGracePeriodSeconds: 30
########## XDEBUG ##########
xdebug:
enabled: false
reuseMagentoEnvs: true
env:
- name: XDEBUG_INSTALL
value: "true"
- name: XDEBUG_REMOTE_HOST
value: "dbgp-proxy"
podAnnotations: {}
resources: {}
podSecurityContext: {}
securityContext: {}
tolerations: []
affinity: {}
########## CRONJOB ##########
cronjob:
enabled: true
name: cronjob
replicas: 1
env:
# customize MAGENTO_CLOUD_* values. use "base64 -d" to read values.
- name: MAGENTO_CLOUD_ROUTES
value: eyJodHRwOlwvXC9sb2NhbGhvc3RcLyI6eyJ0eXBlIjoidXBzdHJlYW0iLCJvcmlnaW5hbF91cmwiOiJodHRwOlwvXC97ZGVmYXVsdH1cLyJ9fQ==
- name: MAGENTO_CLOUD_RELATIONSHIPS
value: eyJkYXRhYmFzZSI6W3siaG9zdCI6Im15c3FsIiwicGF0aCI6Im1hZ2VudG8iLCJwYXNzd29yZCI6InRvcFNlY3JldCIsInVzZXJuYW1lIjoibWFnZW50byIsInBvcnQiOiIzMzA2In1dLCJyZWRpcyI6W3siaG9zdCI6InJlZGlzIiwgInBvcnQiOiAiNjM3OSJ9XSwiZWxhc3RpY3NlYXJjaCI6W3siaG9zdCI6ImVsYXN0aWNzZWFyY2gtbWFzdGVyIiwgInBvcnQiOiAiOTIwMCIsICJzY2hlbWUiOiJodHRwIn1dLCJyYWJiaXRtcSI6W3siaG9zdCI6InJhYmJpdG1xIiwgInVzZXJuYW1lIjoicGhvZW5peCIsICJwYXNzd29yZCI6Ik1hZ2VudG8xMjMiLCAic2NoZW1lIjoiYW1xcCIsICJwb3J0IjogIjU2NzIifV19
- name: MAGENTO_CLOUD_VARIABLES
value: eyJBRE1JTl9GSVJTVE5BTUUiOiJZb3VyIEZpcnN0bmFtZSIsIkFETUlOX0xBU1ROQU1FIjoiWW91ciBMYXN0bmFtZSIsIkFETUlOX0VNQUlMIjoiYWNjb3VudEBtYWlsLmNvbSIsIkFETUlOX1VTRVJOQU1FIjoiYWRtaW5pc3RyYXRvciIsIkFETUlOX1BBU1NXT1JEIjoidG9wQFNlY3JlMSIsIkFETUlOX1VSTCI6ImFkbWluIiwiQ1JZUFRfS0VZIjoiNmZnMzdqYzUyOWUwZDlmMDY5NjY1Y2JjOWZlMTcwYjIifQ==
# - name: ADD_SAMPLE_DATA
# value: "true"
# - name: COMPOSER_AUTH
# value: |-
# {
# "http-basic": {
# "repo.magento.com": {
# "username": "<user>",
# "password": "<password>"
# }
# }
# }
- name: RELAYHOST
value: my.relayhost.com
- name: SMTP_USE_TLS
value: "false"
podAnnotations: {}
resources: {}
lifecycle: {}
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
startupProbe:
exec:
command:
- cat
- /tmp/deployed
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 20
podSecurityContext: {}
securityContext: {}
affinity: {}
tolerations: []
volumes:
- name: magento-data
persistentVolumeClaim:
claimName: magento-data
volumeMounts:
- name: magento-data
mountPath: /var/www/html/pub/media
subPath: media
- name: magento-data
mountPath: /var/www/html/var
subPath: var
- name: magento-data
mountPath: /var/www/html/pub/static/_cache
subPath: static-cache
command: "'sh', '-c', 'exec /usr/bin/supervisord --nodaemon --configuration /etc/supervisord-cronjob.conf'"
extraInitContainer:
- name: check-redis
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 redis-headless 6379 2>&1| grep -q open; do echo \"waiting for redis\"; sleep 1s; done' ]
- name: check-rabbitmq
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 rabbitmq-headless 5672 2>&1| grep -q open; do echo \"waiting for rabbitmq\"; sleep 1s; done' ]
- name: check-mysql
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 mysql 3306 2>&1| grep -q open; do echo \"waiting for mysql\"; sleep 1s; done' ]
- name: check-elasticsearch
image: busybox
imagePullPolicy: IfNotPresent
command: [ 'sh', '-c', 'while ! nc -z -v -w5 elasticsearch-master 9200 2>&1| grep -q open; do echo \"waiting for elasticsearch\"; sleep 1s; done' ]
terminationGracePeriodSeconds: 600
lifecycle:
preStop:
exec:
command: ["sh", "-c", "rm -rf /etc/crontabs/nginx; while [ $(ps aux | grep php| wc -l) -gt 2 ]; do echo 'php scripts running'; sleep 1s; done"]
########## MYSQL ##########
mariadb:
enabled: true
fullnameOverride: mysql
nameOverride: mysql
image:
tag: 10.4.25-debian-11-r9
replication:
enabled: false
volumePermissions:
enabled: false
auth:
database: magento
username: magento
password: topSecret
master:
podLabels: {}
persistence:
size: 10Gi
resources: {}
slave:
replicas: 0
redis:
enabled: true
nameOverride: redis
fullnameOverride: redis
auth:
enabled: false
cluster:
enabled: false
usePassword: false
architecture: standalone
master:
resources: {}
disableCommands: []
elasticsearch:
enabled: true
image: magento/magento-cloud-docker-elasticsearch
imageTag: 7.10-1.3.2
replicas: 1
minimumMasterNodes: 1
esJavaOpts: "-Xmx2g -Xms2g"
extraEnvs:
- name: cluster.initial_master_nodes
value: null
persistence:
enabled: true
volumeClaimTemplate.resources.requests.storage: 10Gi
varnish:
enabled: true
nameOverride: "varnish"
fullnameOverride: "varnish"
image:
repository: varnish
tag: "7.1-alpine"
rolloutDeployment: false
varnishSize: 128M
arguments:
- -p
- http_resp_hdr_len=65536
- -p
- http_resp_size=98304
vcl:
default.vcl: |-
vcl 4.0;
import std;
import dynamic;
# The minimal Varnish version is 6.0
# For SSL offloading, pass the following header in your proxy server or load balancer: 'X-Forwarded-Proto: https'
probe magento_probe {
.url = "/health_check.php";
.timeout = 5s;
.interval = 5s;
.window = 5;
.initial = 3;
.threshold = 3;
}
backend default {
.host = "localhost";
.port = "80";
.probe = magento_probe;
}
acl purge {
"localhost";
"127.0.0.1";
"172.16.0.0/12";
"10.0.0.0/8";
"magento";
}
#acl xdebug-users {
# "192.168.0.0/24";
#}
sub vcl_init {
new magento_director = dynamic.director(
port = "80",
share = HOST,
probe = magento_probe,
first_byte_timeout = 18000s,
between_bytes_timeout = 90s,
ttl = 10s
);
}
sub vcl_recv {
if (req.restarts > 0) {
set req.hash_always_miss = true;
}
if (req.method == "PURGE") {
if (client.ip !~ purge) {
return (synth(405, "Method not allowed"));
}
# To use the X-Pool header for purging varnish during automated deployments, make sure the X-Pool header
# has been added to the response in your backend server config. This is used, for example, by the
# capistrano-magento2 gem for purging old content from varnish during it's deploy routine.
if (!req.http.X-Magento-Tags-Pattern && !req.http.X-Pool) {
return (synth(400, "X-Magento-Tags-Pattern or X-Pool header required"));
}
if (req.http.X-Magento-Tags-Pattern) {
ban("obj.http.X-Magento-Tags ~ " + req.http.X-Magento-Tags-Pattern);
}
if (req.http.X-Pool) {
ban("obj.http.X-Pool ~ " + req.http.X-Pool);
}
return (synth(200, "Purged"));
}
if (req.method != "GET" &&
req.method != "HEAD" &&
req.method != "PUT" &&
req.method != "POST" &&
req.method != "TRACE" &&
req.method != "OPTIONS" &&
req.method != "DELETE") {
/* Non-RFC2616 or CONNECT which is weird. */
return (pipe);
}
set req.backend_hint = magento_director.backend("magento-headless");
# health check
if (req.url ~ "^/varnish-health-check.html") {
return (synth(200, "Node alive"));
}
# We only deal with GET and HEAD by default
if (req.method != "GET" && req.method != "HEAD") {
return (pass);
}
# Bypass customer, shopping cart, checkout
if (req.url ~ "/customer" || req.url ~ "/checkout") {
return (pass);
}
# use xdebug backend
# if (req.http.cookie ~ "XDEBUG_SESSION=" && std.ip(req.http.X-Real-IP, "0.0.0.0") ~ xdebug-users) {
# set req.backend_hint = magento_director.backend("xdebug");
# return (pass);
# }
# Bypass health check requests
if (req.url ~ "^/(pub/)?(health_check.php)$") {
return (pass);
}
# Set initial grace period usage status
set req.http.grace = "none";
# normalize url in case of leading HTTP scheme and domain
set req.url = regsub(req.url, "^http[s]?://", "");
# collect all cookies
std.collect(req.http.Cookie);
# Compression filter. See https://www.varnish-cache.org/trac/wiki/FAQ/Compression
if (req.http.Accept-Encoding) {
if (req.url ~ "\.(jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf|flv)$") {
# No point in compressing these
unset req.http.Accept-Encoding;
} elsif (req.http.Accept-Encoding ~ "gzip") {
set req.http.Accept-Encoding = "gzip";
} elsif (req.http.Accept-Encoding ~ "deflate" && req.http.user-agent !~ "MSIE") {
set req.http.Accept-Encoding = "deflate";
} else {
# unknown algorithm
unset req.http.Accept-Encoding;
}
}
# Remove all marketing get parameters to minimize the cache objects
if (req.url ~ "(\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=") {
set req.url = regsuball(req.url, "(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=[-_A-z0-9+()%.]+&?", "");
set req.url = regsub(req.url, "[?|&]+$", "");
}
# Static files caching
if (req.url ~ "^/(pub/)?(media|static)/") {
# Static files should not be cached by default
return (pass);
# But if you use a few locales and don't use CDN you can enable caching static files by commenting previous line (#return (pass);) and uncommenting next 3 lines
#unset req.http.Https;
#unset req.http.X-Forwarded-Proto;
#unset req.http.Cookie;
}
# Bypass authenticated GraphQL requests without a X-Magento-Cache-Id
if (req.url ~ "/graphql" && !req.http.X-Magento-Cache-Id && req.http.Authorization ~ "^Bearer") {
return (pass);
}
return (hash);
}
sub vcl_hash {
if ((req.url !~ "/graphql" || !req.http.X-Magento-Cache-Id) && req.http.cookie ~ "X-Magento-Vary=") {
hash_data(regsub(req.http.cookie, "^.*?X-Magento-Vary=([^;]+);*.*$", "\1"));
}
# For multi site configurations to not cache each other's content
if (req.http.host) {
hash_data(req.http.host);
} else {
hash_data(server.ip);
}
# To make sure http users don't see ssl warning
if (req.http.X-Forwarded-Proto) {
hash_data(req.http.X-Forwarded-Proto);
}
if (req.url ~ "/graphql") {
call process_graphql_headers;
}
}
sub process_graphql_headers {
if (req.http.X-Magento-Cache-Id) {
hash_data(req.http.X-Magento-Cache-Id);
# When the frontend stops sending the auth token, make sure users stop getting results cached for logged-in users
if (req.http.Authorization ~ "^Bearer") {
hash_data("Authorized");
}
}
if (req.http.Store) {
hash_data(req.http.Store);
}
if (req.http.Content-Currency) {
hash_data(req.http.Content-Currency);
}
}
sub vcl_backend_response {
set beresp.grace = 3d;
if (beresp.http.content-type ~ "text") {
set beresp.do_esi = true;
}
if (bereq.url ~ "\.js$" || beresp.http.content-type ~ "text") {
set beresp.do_gzip = true;
}
if (beresp.http.X-Magento-Debug) {
set beresp.http.X-Magento-Cache-Control = beresp.http.Cache-Control;
}
# cache only successfully responses and 404s
if (beresp.status != 200 && beresp.status != 404) {
set beresp.ttl = 0s;
set beresp.uncacheable = true;
return (deliver);
} elsif (beresp.http.Cache-Control ~ "private") {
set beresp.uncacheable = true;
set beresp.ttl = 86400s;
return (deliver);
}
# validate if we need to cache it and prevent from setting cookie
if (beresp.ttl > 0s && (bereq.method == "GET" || bereq.method == "HEAD")) {
unset beresp.http.set-cookie;
}
# If page is not cacheable then bypass varnish for 2 minutes as Hit-For-Pass
if (beresp.ttl <= 0s ||
beresp.http.Surrogate-control ~ "no-store" ||
(!beresp.http.Surrogate-Control &&
beresp.http.Cache-Control ~ "no-cache|no-store") ||
beresp.http.Vary == "*") {
# Mark as Hit-For-Pass for the next 2 minutes
set beresp.ttl = 120s;
set beresp.uncacheable = true;
}
# If the cache key in the Magento response doesn't match the one that was sent in the request, don't cache under the request's key
if (bereq.url ~ "/graphql" && bereq.http.X-Magento-Cache-Id && bereq.http.X-Magento-Cache-Id != beresp.http.X-Magento-Cache-Id) {
set beresp.ttl = 0s;
set beresp.uncacheable = true;
}
return (deliver);
}
sub vcl_deliver {
if (resp.http.x-varnish ~ " ") {
set resp.http.X-Magento-Cache-Debug = "HIT";
set resp.http.Grace = req.http.grace;
} else {
set resp.http.X-Magento-Cache-Debug = "MISS";
}
# Not letting browser to cache non-static files.
if (resp.http.Cache-Control !~ "private" && req.url !~ "^/(pub/)?(media|static)/") {
set resp.http.Pragma = "no-cache";
set resp.http.Expires = "-1";
set resp.http.Cache-Control = "no-store, no-cache, must-revalidate, max-age=0";
}
if (!resp.http.X-Magento-Debug) {
unset resp.http.Age;
}
unset resp.http.X-Magento-Debug;
unset resp.http.X-Magento-Tags;
unset resp.http.X-Powered-By;
unset resp.http.Server;
unset resp.http.X-Varnish;
unset resp.http.Via;
unset resp.http.Link;
}
sub vcl_hit {
if (obj.ttl >= 0s) {
# Hit within TTL period
return (deliver);
}
if (std.healthy(req.backend_hint)) {
if (obj.ttl + 300s > 0s) {
# Hit after TTL expiration, but within grace period
set req.http.grace = "normal (healthy server)";
return (deliver);
} else {
# Hit after TTL and grace expiration
return (restart);
}
} else {
# server is not healthy, retrieve from cache
set req.http.grace = "unlimited (unhealthy server)";
return (deliver);
}
}
rabbitmq:
enabled: true
fullnameOverride: rabbitmq
nameOverride: rabbitmq
clustering:
enabled: false
persistence:
enabled: true
name: magento-data
#existingClaim:
accessMode: ReadWriteMany
size: 10Gi
storageClassName: "files"
## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer
##
service:
type: ClusterIP
port: 80
annotations: {}
sessionAffinity: "None"
clusterIP: ""
loadBalancerSourceRanges: []
loadBalancerIP: ""
nodePorts:
http: ""
externalTrafficPolicy: Cluster
## Magento Headless Service
serviceHeadless:
enabled: true
port: 80
annotations: {}
## Configure the ingress resource that allows you to access the
## Magento installation. Set up the URL
## ref: http://kubernetes.io/docs/user-guide/ingress/
##
ingress:
## Set to true to enable ingress record generation
enabled: false
# ingressClassName: nginx
certManager: false
useProxyProtocol: true
annotations: {}
# annotations:
# extraRaw: |-
# nginx.ingress.kubernetes.io/proxy-body-size: "1m"
# nginx.ingress.kubernetes.io/proxy-buffer-size: '32k'
# nginx.ingress.kubernetes.io/proxy-buffering: 'on'
# nginx.ingress.kubernetes.io/proxy-buffers-number: '16'
# nginx.ingress.kubernetes.io/proxy-connect-timeout: '600'
# nginx.ingress.kubernetes.io/proxy-read-timeout: '600'
# nginx.ingress.kubernetes.io/proxy-send-timeout: '600'
# nginx.ingress.kubernetes.io/ssl-redirect: "\"true\""
# nginx.ingress.kubernetes.io/proxy-body-size: 32m
# nginx.ingress.kubernetes.io/whitelist-source-range: |-
# 10.0.0.0/24
# 172.10.0.1
# nginx.ingress.kubernetes.io/auth-type: basic
# nginx.ingress.kubernetes.io/auth-secret: my-auth-secret
# nginx.ingress.kubernetes.io/auth-realm: "Authentication Required"
# nginx.ingress.kubernetes.io/configuration-snippet: |-
# satisfy any;
# allow 8.8.8.8;
# deny all;
## The list of hostnames to be covered with this ingress record.
## Most likely this will be just one host, but in the event more hosts are needed, this is an array
# hosts:
# - name: magento.local
# paths:
# - path: "/"
# serviceName: varnish
# servicePort: 80
## Set this to true in order to enable TLS on the ingress record
# tls: true
## Optionally specify the TLS hosts for the ingress record
## Useful when the Ingress controller supports www-redirection
## If not specified, the above host name will be used
# tlsHosts:
# - magento.local
# tlsSecret: site-cert
managedCert:
enabled: false