@bluedynamics/cdk8s-plone 0.1.59 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +126 -46
- package/API.md +80 -1
- package/documentation/sources/how-to/deploy-with-vinyl-cache.md +37 -12
- package/documentation/sources/how-to/setup-prerequisites.md +1 -1
- package/documentation/sources/how-to/upgrade-and-rollout.md +20 -0
- package/documentation/sources/reference/configuration-options.md +31 -1
- package/lib/deployment.d.ts +19 -0
- package/lib/deployment.js +33 -1
- package/lib/httpcache.js +1 -1
- package/lib/plone.d.ts +20 -0
- package/lib/plone.js +6 -2
- package/lib/vinylcache.d.ts +28 -1
- package/lib/vinylcache.js +4 -2
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
},
|
|
281
281
|
"locationInModule": {
|
|
282
282
|
"filename": "src/plone.ts",
|
|
283
|
-
"line":
|
|
283
|
+
"line": 439
|
|
284
284
|
},
|
|
285
285
|
"parameters": [
|
|
286
286
|
{
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
"kind": "class",
|
|
308
308
|
"locationInModule": {
|
|
309
309
|
"filename": "src/plone.ts",
|
|
310
|
-
"line":
|
|
310
|
+
"line": 416
|
|
311
311
|
},
|
|
312
312
|
"name": "Plone",
|
|
313
313
|
"properties": [
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"immutable": true,
|
|
321
321
|
"locationInModule": {
|
|
322
322
|
"filename": "src/plone.ts",
|
|
323
|
-
"line":
|
|
323
|
+
"line": 421
|
|
324
324
|
},
|
|
325
325
|
"name": "backendServiceName",
|
|
326
326
|
"type": {
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"immutable": true,
|
|
336
336
|
"locationInModule": {
|
|
337
337
|
"filename": "src/plone.ts",
|
|
338
|
-
"line":
|
|
338
|
+
"line": 437
|
|
339
339
|
},
|
|
340
340
|
"name": "siteId",
|
|
341
341
|
"type": {
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
"immutable": true,
|
|
351
351
|
"locationInModule": {
|
|
352
352
|
"filename": "src/plone.ts",
|
|
353
|
-
"line":
|
|
353
|
+
"line": 432
|
|
354
354
|
},
|
|
355
355
|
"name": "variant",
|
|
356
356
|
"type": {
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
"immutable": true,
|
|
367
367
|
"locationInModule": {
|
|
368
368
|
"filename": "src/plone.ts",
|
|
369
|
-
"line":
|
|
369
|
+
"line": 427
|
|
370
370
|
},
|
|
371
371
|
"name": "frontendServiceName",
|
|
372
372
|
"optional": true,
|
|
@@ -773,6 +773,25 @@
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
},
|
|
776
|
+
{
|
|
777
|
+
"abstract": true,
|
|
778
|
+
"docs": {
|
|
779
|
+
"default": "15",
|
|
780
|
+
"remarks": "Kubernetes removes a terminating pod from the Service endpoints while it\nstarts the shutdown. kube-proxy, ingress controllers and caches that target\npod IPs (such as Varnish via `PloneVinylCache`) need a few seconds to\nnotice. The delay keeps the container serving until they have, so rolling\nupdates do not cause `503` errors in front of it. Rendered as the native\n`sleep` action, so the image needs no `sleep` binary.\nRequires Kubernetes 1.30 or later. Set to 0 to disable the hook.",
|
|
781
|
+
"stability": "stable",
|
|
782
|
+
"summary": "Seconds to wait in a preStop hook before the container receives SIGTERM."
|
|
783
|
+
},
|
|
784
|
+
"immutable": true,
|
|
785
|
+
"locationInModule": {
|
|
786
|
+
"filename": "src/plone.ts",
|
|
787
|
+
"line": 310
|
|
788
|
+
},
|
|
789
|
+
"name": "preStopDelaySeconds",
|
|
790
|
+
"optional": true,
|
|
791
|
+
"type": {
|
|
792
|
+
"primitive": "number"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
776
795
|
{
|
|
777
796
|
"abstract": true,
|
|
778
797
|
"docs": {
|
|
@@ -1022,6 +1041,25 @@
|
|
|
1022
1041
|
"type": {
|
|
1023
1042
|
"primitive": "boolean"
|
|
1024
1043
|
}
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"abstract": true,
|
|
1047
|
+
"docs": {
|
|
1048
|
+
"default": "- `preStopDelaySeconds` + 30, which keeps the Kubernetes default of 30 seconds for the shutdown itself",
|
|
1049
|
+
"remarks": "The preStop delay counts against this budget, so it must be greater\nthan `preStopDelaySeconds`.",
|
|
1050
|
+
"stability": "stable",
|
|
1051
|
+
"summary": "Seconds Kubernetes waits for the pod to stop before it kills it."
|
|
1052
|
+
},
|
|
1053
|
+
"immutable": true,
|
|
1054
|
+
"locationInModule": {
|
|
1055
|
+
"filename": "src/plone.ts",
|
|
1056
|
+
"line": 318
|
|
1057
|
+
},
|
|
1058
|
+
"name": "terminationGracePeriodSeconds",
|
|
1059
|
+
"optional": true,
|
|
1060
|
+
"type": {
|
|
1061
|
+
"primitive": "number"
|
|
1062
|
+
}
|
|
1025
1063
|
}
|
|
1026
1064
|
],
|
|
1027
1065
|
"symbolId": "src/plone:PloneBaseOptions"
|
|
@@ -1472,7 +1510,7 @@
|
|
|
1472
1510
|
"kind": "interface",
|
|
1473
1511
|
"locationInModule": {
|
|
1474
1512
|
"filename": "src/plone.ts",
|
|
1475
|
-
"line":
|
|
1513
|
+
"line": 349
|
|
1476
1514
|
},
|
|
1477
1515
|
"name": "PloneOptions",
|
|
1478
1516
|
"properties": [
|
|
@@ -1486,7 +1524,7 @@
|
|
|
1486
1524
|
"immutable": true,
|
|
1487
1525
|
"locationInModule": {
|
|
1488
1526
|
"filename": "src/plone.ts",
|
|
1489
|
-
"line":
|
|
1527
|
+
"line": 374
|
|
1490
1528
|
},
|
|
1491
1529
|
"name": "backend",
|
|
1492
1530
|
"optional": true,
|
|
@@ -1505,7 +1543,7 @@
|
|
|
1505
1543
|
"immutable": true,
|
|
1506
1544
|
"locationInModule": {
|
|
1507
1545
|
"filename": "src/plone.ts",
|
|
1508
|
-
"line":
|
|
1546
|
+
"line": 381
|
|
1509
1547
|
},
|
|
1510
1548
|
"name": "frontend",
|
|
1511
1549
|
"optional": true,
|
|
@@ -1525,7 +1563,7 @@
|
|
|
1525
1563
|
"immutable": true,
|
|
1526
1564
|
"locationInModule": {
|
|
1527
1565
|
"filename": "src/plone.ts",
|
|
1528
|
-
"line":
|
|
1566
|
+
"line": 389
|
|
1529
1567
|
},
|
|
1530
1568
|
"name": "imagePullSecrets",
|
|
1531
1569
|
"optional": true,
|
|
@@ -1549,7 +1587,7 @@
|
|
|
1549
1587
|
"immutable": true,
|
|
1550
1588
|
"locationInModule": {
|
|
1551
1589
|
"filename": "src/plone.ts",
|
|
1552
|
-
"line":
|
|
1590
|
+
"line": 362
|
|
1553
1591
|
},
|
|
1554
1592
|
"name": "siteId",
|
|
1555
1593
|
"optional": true,
|
|
@@ -1567,7 +1605,7 @@
|
|
|
1567
1605
|
"immutable": true,
|
|
1568
1606
|
"locationInModule": {
|
|
1569
1607
|
"filename": "src/plone.ts",
|
|
1570
|
-
"line":
|
|
1608
|
+
"line": 368
|
|
1571
1609
|
},
|
|
1572
1610
|
"name": "variant",
|
|
1573
1611
|
"optional": true,
|
|
@@ -1586,7 +1624,7 @@
|
|
|
1586
1624
|
"immutable": true,
|
|
1587
1625
|
"locationInModule": {
|
|
1588
1626
|
"filename": "src/plone.ts",
|
|
1589
|
-
"line":
|
|
1627
|
+
"line": 355
|
|
1590
1628
|
},
|
|
1591
1629
|
"name": "version",
|
|
1592
1630
|
"optional": true,
|
|
@@ -1990,7 +2028,7 @@
|
|
|
1990
2028
|
"kind": "enum",
|
|
1991
2029
|
"locationInModule": {
|
|
1992
2030
|
"filename": "src/plone.ts",
|
|
1993
|
-
"line":
|
|
2031
|
+
"line": 323
|
|
1994
2032
|
},
|
|
1995
2033
|
"members": [
|
|
1996
2034
|
{
|
|
@@ -2037,7 +2075,7 @@
|
|
|
2037
2075
|
},
|
|
2038
2076
|
"locationInModule": {
|
|
2039
2077
|
"filename": "src/vinylcache.ts",
|
|
2040
|
-
"line":
|
|
2078
|
+
"line": 432
|
|
2041
2079
|
},
|
|
2042
2080
|
"parameters": [
|
|
2043
2081
|
{
|
|
@@ -2063,7 +2101,7 @@
|
|
|
2063
2101
|
"kind": "class",
|
|
2064
2102
|
"locationInModule": {
|
|
2065
2103
|
"filename": "src/vinylcache.ts",
|
|
2066
|
-
"line":
|
|
2104
|
+
"line": 425
|
|
2067
2105
|
},
|
|
2068
2106
|
"name": "PloneVinylCache",
|
|
2069
2107
|
"properties": [
|
|
@@ -2076,7 +2114,7 @@
|
|
|
2076
2114
|
"immutable": true,
|
|
2077
2115
|
"locationInModule": {
|
|
2078
2116
|
"filename": "src/vinylcache.ts",
|
|
2079
|
-
"line":
|
|
2117
|
+
"line": 430
|
|
2080
2118
|
},
|
|
2081
2119
|
"name": "vinylCacheServiceName",
|
|
2082
2120
|
"type": {
|
|
@@ -2119,6 +2157,25 @@
|
|
|
2119
2157
|
"fqn": "@bluedynamics/cdk8s-plone.Plone"
|
|
2120
2158
|
}
|
|
2121
2159
|
},
|
|
2160
|
+
{
|
|
2161
|
+
"abstract": true,
|
|
2162
|
+
"docs": {
|
|
2163
|
+
"default": "- not set; the operator does not cluster the pods",
|
|
2164
|
+
"remarks": "With clustering, a pod that does not own a URL passes the request to the\npod that does, so every object is cached once across all replicas and the\neffective cache size grows with the replica count. Without it, every pod\ncaches every object, and a load balancer spreading requests evenly makes\neach pod fetch and store the same objects.",
|
|
2165
|
+
"stability": "stable",
|
|
2166
|
+
"summary": "Enable clustering between the Varnish pods (`spec.cluster.enabled`)."
|
|
2167
|
+
},
|
|
2168
|
+
"immutable": true,
|
|
2169
|
+
"locationInModule": {
|
|
2170
|
+
"filename": "src/vinylcache.ts",
|
|
2171
|
+
"line": 238
|
|
2172
|
+
},
|
|
2173
|
+
"name": "cluster",
|
|
2174
|
+
"optional": true,
|
|
2175
|
+
"type": {
|
|
2176
|
+
"primitive": "boolean"
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2122
2179
|
{
|
|
2123
2180
|
"abstract": true,
|
|
2124
2181
|
"docs": {
|
|
@@ -2129,7 +2186,7 @@
|
|
|
2129
2186
|
"immutable": true,
|
|
2130
2187
|
"locationInModule": {
|
|
2131
2188
|
"filename": "src/vinylcache.ts",
|
|
2132
|
-
"line":
|
|
2189
|
+
"line": 252
|
|
2133
2190
|
},
|
|
2134
2191
|
"name": "director",
|
|
2135
2192
|
"optional": true,
|
|
@@ -2171,7 +2228,7 @@
|
|
|
2171
2228
|
"immutable": true,
|
|
2172
2229
|
"locationInModule": {
|
|
2173
2230
|
"filename": "src/vinylcache.ts",
|
|
2174
|
-
"line":
|
|
2231
|
+
"line": 320
|
|
2175
2232
|
},
|
|
2176
2233
|
"name": "image",
|
|
2177
2234
|
"optional": true,
|
|
@@ -2189,7 +2246,7 @@
|
|
|
2189
2246
|
"immutable": true,
|
|
2190
2247
|
"locationInModule": {
|
|
2191
2248
|
"filename": "src/vinylcache.ts",
|
|
2192
|
-
"line":
|
|
2249
|
+
"line": 306
|
|
2193
2250
|
},
|
|
2194
2251
|
"name": "invalidation",
|
|
2195
2252
|
"optional": true,
|
|
@@ -2244,7 +2301,7 @@
|
|
|
2244
2301
|
"immutable": true,
|
|
2245
2302
|
"locationInModule": {
|
|
2246
2303
|
"filename": "src/vinylcache.ts",
|
|
2247
|
-
"line":
|
|
2304
|
+
"line": 314
|
|
2248
2305
|
},
|
|
2249
2306
|
"name": "monitoring",
|
|
2250
2307
|
"optional": true,
|
|
@@ -2263,7 +2320,7 @@
|
|
|
2263
2320
|
"immutable": true,
|
|
2264
2321
|
"locationInModule": {
|
|
2265
2322
|
"filename": "src/vinylcache.ts",
|
|
2266
|
-
"line":
|
|
2323
|
+
"line": 333
|
|
2267
2324
|
},
|
|
2268
2325
|
"name": "nodeSelector",
|
|
2269
2326
|
"optional": true,
|
|
@@ -2341,7 +2398,7 @@
|
|
|
2341
2398
|
"immutable": true,
|
|
2342
2399
|
"locationInModule": {
|
|
2343
2400
|
"filename": "src/vinylcache.ts",
|
|
2344
|
-
"line":
|
|
2401
|
+
"line": 261
|
|
2345
2402
|
},
|
|
2346
2403
|
"name": "shardBy",
|
|
2347
2404
|
"optional": true,
|
|
@@ -2360,7 +2417,7 @@
|
|
|
2360
2417
|
"immutable": true,
|
|
2361
2418
|
"locationInModule": {
|
|
2362
2419
|
"filename": "src/vinylcache.ts",
|
|
2363
|
-
"line":
|
|
2420
|
+
"line": 271
|
|
2364
2421
|
},
|
|
2365
2422
|
"name": "shardHealthy",
|
|
2366
2423
|
"optional": true,
|
|
@@ -2379,7 +2436,7 @@
|
|
|
2379
2436
|
"immutable": true,
|
|
2380
2437
|
"locationInModule": {
|
|
2381
2438
|
"filename": "src/vinylcache.ts",
|
|
2382
|
-
"line":
|
|
2439
|
+
"line": 279
|
|
2383
2440
|
},
|
|
2384
2441
|
"name": "shardRampup",
|
|
2385
2442
|
"optional": true,
|
|
@@ -2398,7 +2455,7 @@
|
|
|
2398
2455
|
"immutable": true,
|
|
2399
2456
|
"locationInModule": {
|
|
2400
2457
|
"filename": "src/vinylcache.ts",
|
|
2401
|
-
"line":
|
|
2458
|
+
"line": 286
|
|
2402
2459
|
},
|
|
2403
2460
|
"name": "shardReplicas",
|
|
2404
2461
|
"optional": true,
|
|
@@ -2410,15 +2467,15 @@
|
|
|
2410
2467
|
"abstract": true,
|
|
2411
2468
|
"docs": {
|
|
2412
2469
|
"default": "- no storage configured; operator uses varnishd default (~100MB malloc)",
|
|
2413
|
-
"example": "storage: [{ name: '
|
|
2414
|
-
"remarks": "Each entry becomes a `-s <name>=<type>,<options>` argument to varnishd.\nIf omitted, the operator ships varnishd with its stock default (~100 MB\nmalloc) — almost always too small. Set an explicit malloc size at least\nmatching the pod's memory request to use the allocated memory for caching.",
|
|
2470
|
+
"example": "storage: [{ name: 'cache', type: 'malloc', size: '1Gi' }]",
|
|
2471
|
+
"remarks": "Each entry becomes a `-s <name>=<type>,<options>` argument to varnishd.\nIf omitted, the operator ships varnishd with its stock default (~100 MB\nmalloc) — almost always too small. Set an explicit malloc size at least\nmatching the pod's memory request to use the allocated memory for caching.\n\nDo not name an entry `s0`: the stock varnish image's entrypoint always adds\nits own unnamed `-s malloc,...`, which varnishd names `s0`, and the names\ncollide. varnishd also spreads objects round-robin over all storages,\nincluding that implicit `s0`; pin your storage in `vcl_backend_response`\nwith `set beresp.storage = storage.<name>;` (bluedynamics/cloud-vinyl#113).",
|
|
2415
2472
|
"stability": "stable",
|
|
2416
2473
|
"summary": "Varnish storage backends (`spec.storage`)."
|
|
2417
2474
|
},
|
|
2418
2475
|
"immutable": true,
|
|
2419
2476
|
"locationInModule": {
|
|
2420
2477
|
"filename": "src/vinylcache.ts",
|
|
2421
|
-
"line":
|
|
2478
|
+
"line": 225
|
|
2422
2479
|
},
|
|
2423
2480
|
"name": "storage",
|
|
2424
2481
|
"optional": true,
|
|
@@ -2441,7 +2498,7 @@
|
|
|
2441
2498
|
"immutable": true,
|
|
2442
2499
|
"locationInModule": {
|
|
2443
2500
|
"filename": "src/vinylcache.ts",
|
|
2444
|
-
"line":
|
|
2501
|
+
"line": 326
|
|
2445
2502
|
},
|
|
2446
2503
|
"name": "tolerations",
|
|
2447
2504
|
"optional": true,
|
|
@@ -2454,6 +2511,29 @@
|
|
|
2454
2511
|
}
|
|
2455
2512
|
}
|
|
2456
2513
|
},
|
|
2514
|
+
{
|
|
2515
|
+
"abstract": true,
|
|
2516
|
+
"docs": {
|
|
2517
|
+
"default": "- not set; varnishd defaults apply",
|
|
2518
|
+
"stability": "stable",
|
|
2519
|
+
"summary": "Runtime parameters passed to varnishd as `-p name=value` (`spec.varnishParameters`), for example `{ nuke_limit: '1000' }`."
|
|
2520
|
+
},
|
|
2521
|
+
"immutable": true,
|
|
2522
|
+
"locationInModule": {
|
|
2523
|
+
"filename": "src/vinylcache.ts",
|
|
2524
|
+
"line": 246
|
|
2525
|
+
},
|
|
2526
|
+
"name": "varnishParameters",
|
|
2527
|
+
"optional": true,
|
|
2528
|
+
"type": {
|
|
2529
|
+
"collection": {
|
|
2530
|
+
"elementtype": {
|
|
2531
|
+
"primitive": "string"
|
|
2532
|
+
},
|
|
2533
|
+
"kind": "map"
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
},
|
|
2457
2537
|
{
|
|
2458
2538
|
"abstract": true,
|
|
2459
2539
|
"docs": {
|
|
@@ -2464,7 +2544,7 @@
|
|
|
2464
2544
|
"immutable": true,
|
|
2465
2545
|
"locationInModule": {
|
|
2466
2546
|
"filename": "src/vinylcache.ts",
|
|
2467
|
-
"line":
|
|
2547
|
+
"line": 405
|
|
2468
2548
|
},
|
|
2469
2549
|
"name": "vclBackendErrorSnippet",
|
|
2470
2550
|
"optional": true,
|
|
@@ -2482,7 +2562,7 @@
|
|
|
2482
2562
|
"immutable": true,
|
|
2483
2563
|
"locationInModule": {
|
|
2484
2564
|
"filename": "src/vinylcache.ts",
|
|
2485
|
-
"line":
|
|
2565
|
+
"line": 399
|
|
2486
2566
|
},
|
|
2487
2567
|
"name": "vclBackendFetchSnippet",
|
|
2488
2568
|
"optional": true,
|
|
@@ -2501,7 +2581,7 @@
|
|
|
2501
2581
|
"immutable": true,
|
|
2502
2582
|
"locationInModule": {
|
|
2503
2583
|
"filename": "src/vinylcache.ts",
|
|
2504
|
-
"line":
|
|
2584
|
+
"line": 300
|
|
2505
2585
|
},
|
|
2506
2586
|
"name": "vclBackendResponseSnippet",
|
|
2507
2587
|
"optional": true,
|
|
@@ -2519,7 +2599,7 @@
|
|
|
2519
2599
|
"immutable": true,
|
|
2520
2600
|
"locationInModule": {
|
|
2521
2601
|
"filename": "src/vinylcache.ts",
|
|
2522
|
-
"line":
|
|
2602
|
+
"line": 339
|
|
2523
2603
|
},
|
|
2524
2604
|
"name": "vclDeliverSnippet",
|
|
2525
2605
|
"optional": true,
|
|
@@ -2537,7 +2617,7 @@
|
|
|
2537
2617
|
"immutable": true,
|
|
2538
2618
|
"locationInModule": {
|
|
2539
2619
|
"filename": "src/vinylcache.ts",
|
|
2540
|
-
"line":
|
|
2620
|
+
"line": 393
|
|
2541
2621
|
},
|
|
2542
2622
|
"name": "vclFiniSnippet",
|
|
2543
2623
|
"optional": true,
|
|
@@ -2555,7 +2635,7 @@
|
|
|
2555
2635
|
"immutable": true,
|
|
2556
2636
|
"locationInModule": {
|
|
2557
2637
|
"filename": "src/vinylcache.ts",
|
|
2558
|
-
"line":
|
|
2638
|
+
"line": 381
|
|
2559
2639
|
},
|
|
2560
2640
|
"name": "vclHashSnippet",
|
|
2561
2641
|
"optional": true,
|
|
@@ -2573,7 +2653,7 @@
|
|
|
2573
2653
|
"immutable": true,
|
|
2574
2654
|
"locationInModule": {
|
|
2575
2655
|
"filename": "src/vinylcache.ts",
|
|
2576
|
-
"line":
|
|
2656
|
+
"line": 345
|
|
2577
2657
|
},
|
|
2578
2658
|
"name": "vclHitSnippet",
|
|
2579
2659
|
"optional": true,
|
|
@@ -2591,7 +2671,7 @@
|
|
|
2591
2671
|
"immutable": true,
|
|
2592
2672
|
"locationInModule": {
|
|
2593
2673
|
"filename": "src/vinylcache.ts",
|
|
2594
|
-
"line":
|
|
2674
|
+
"line": 387
|
|
2595
2675
|
},
|
|
2596
2676
|
"name": "vclInitSnippet",
|
|
2597
2677
|
"optional": true,
|
|
@@ -2609,7 +2689,7 @@
|
|
|
2609
2689
|
"immutable": true,
|
|
2610
2690
|
"locationInModule": {
|
|
2611
2691
|
"filename": "src/vinylcache.ts",
|
|
2612
|
-
"line":
|
|
2692
|
+
"line": 351
|
|
2613
2693
|
},
|
|
2614
2694
|
"name": "vclMissSnippet",
|
|
2615
2695
|
"optional": true,
|
|
@@ -2627,7 +2707,7 @@
|
|
|
2627
2707
|
"immutable": true,
|
|
2628
2708
|
"locationInModule": {
|
|
2629
2709
|
"filename": "src/vinylcache.ts",
|
|
2630
|
-
"line":
|
|
2710
|
+
"line": 357
|
|
2631
2711
|
},
|
|
2632
2712
|
"name": "vclPassSnippet",
|
|
2633
2713
|
"optional": true,
|
|
@@ -2645,7 +2725,7 @@
|
|
|
2645
2725
|
"immutable": true,
|
|
2646
2726
|
"locationInModule": {
|
|
2647
2727
|
"filename": "src/vinylcache.ts",
|
|
2648
|
-
"line":
|
|
2728
|
+
"line": 363
|
|
2649
2729
|
},
|
|
2650
2730
|
"name": "vclPipeSnippet",
|
|
2651
2731
|
"optional": true,
|
|
@@ -2663,7 +2743,7 @@
|
|
|
2663
2743
|
"immutable": true,
|
|
2664
2744
|
"locationInModule": {
|
|
2665
2745
|
"filename": "src/vinylcache.ts",
|
|
2666
|
-
"line":
|
|
2746
|
+
"line": 375
|
|
2667
2747
|
},
|
|
2668
2748
|
"name": "vclPurgeSnippet",
|
|
2669
2749
|
"optional": true,
|
|
@@ -2682,7 +2762,7 @@
|
|
|
2682
2762
|
"immutable": true,
|
|
2683
2763
|
"locationInModule": {
|
|
2684
2764
|
"filename": "src/vinylcache.ts",
|
|
2685
|
-
"line":
|
|
2765
|
+
"line": 293
|
|
2686
2766
|
},
|
|
2687
2767
|
"name": "vclRecvSnippet",
|
|
2688
2768
|
"optional": true,
|
|
@@ -2700,7 +2780,7 @@
|
|
|
2700
2780
|
"immutable": true,
|
|
2701
2781
|
"locationInModule": {
|
|
2702
2782
|
"filename": "src/vinylcache.ts",
|
|
2703
|
-
"line":
|
|
2783
|
+
"line": 369
|
|
2704
2784
|
},
|
|
2705
2785
|
"name": "vclSynthSnippet",
|
|
2706
2786
|
"optional": true,
|
|
@@ -3120,6 +3200,6 @@
|
|
|
3120
3200
|
"symbolId": "src/vinylcache:VinylCacheToleration"
|
|
3121
3201
|
}
|
|
3122
3202
|
},
|
|
3123
|
-
"version": "0.1.
|
|
3124
|
-
"fingerprint": "
|
|
3203
|
+
"version": "0.1.61",
|
|
3204
|
+
"fingerprint": "c/1n6eM16bT4oL3A9ixlPOHfzkI3Vyb2OmAdWWv0wHc="
|
|
3125
3205
|
}
|
package/API.md
CHANGED
|
@@ -717,6 +717,7 @@ const ploneBaseOptions: PloneBaseOptions = { ... }
|
|
|
717
717
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.minAvailable">minAvailable</a></code> | <code>string \| number</code> | Minimum number of pods that must be available during updates. |
|
|
718
718
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.nodeSelector">nodeSelector</a></code> | <code>{[ key: string ]: string}</code> | Node selector labels for pod scheduling. |
|
|
719
719
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.podAnnotations">podAnnotations</a></code> | <code>{[ key: string ]: string}</code> | Annotations to add to the Pod template metadata. |
|
|
720
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.preStopDelaySeconds">preStopDelaySeconds</a></code> | <code>number</code> | Seconds to wait in a preStop hook before the container receives SIGTERM. |
|
|
720
721
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.readinessEnabled">readinessEnabled</a></code> | <code>boolean</code> | Enable readiness probe for the container. |
|
|
721
722
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.readinessFailureThreshold">readinessFailureThreshold</a></code> | <code>number</code> | Minimum consecutive failures for the readiness probe to be considered failed. |
|
|
722
723
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.readinessInitialDelaySeconds">readinessInitialDelaySeconds</a></code> | <code>number</code> | Number of seconds after container start before readiness probe is initiated. |
|
|
@@ -730,6 +731,7 @@ const ploneBaseOptions: PloneBaseOptions = { ... }
|
|
|
730
731
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.service">service</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.PloneServiceSpec">PloneServiceSpec</a></code> | Service configuration: type, trafficDistribution, sessionAffinity, annotations/labels, and a raw `overrides` escape hatch for any other ServiceSpec field. |
|
|
731
732
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.serviceAnnotations">serviceAnnotations</a></code> | <code>{[ key: string ]: string}</code> | Annotations to add to the Service metadata. |
|
|
732
733
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.servicemonitor">servicemonitor</a></code> | <code>boolean</code> | Enable Prometheus ServiceMonitor for metrics collection. |
|
|
734
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.terminationGracePeriodSeconds">terminationGracePeriodSeconds</a></code> | <code>number</code> | Seconds Kubernetes waits for the pod to stop before it kills it. |
|
|
733
735
|
|
|
734
736
|
---
|
|
735
737
|
|
|
@@ -1028,6 +1030,27 @@ Common for Prometheus, Istio, backup policies, etc.
|
|
|
1028
1030
|
```
|
|
1029
1031
|
|
|
1030
1032
|
|
|
1033
|
+
##### `preStopDelaySeconds`<sup>Optional</sup> <a name="preStopDelaySeconds" id="@bluedynamics/cdk8s-plone.PloneBaseOptions.property.preStopDelaySeconds"></a>
|
|
1034
|
+
|
|
1035
|
+
```typescript
|
|
1036
|
+
public readonly preStopDelaySeconds: number;
|
|
1037
|
+
```
|
|
1038
|
+
|
|
1039
|
+
- *Type:* number
|
|
1040
|
+
- *Default:* 15
|
|
1041
|
+
|
|
1042
|
+
Seconds to wait in a preStop hook before the container receives SIGTERM.
|
|
1043
|
+
|
|
1044
|
+
Kubernetes removes a terminating pod from the Service endpoints while it
|
|
1045
|
+
starts the shutdown. kube-proxy, ingress controllers and caches that target
|
|
1046
|
+
pod IPs (such as Varnish via `PloneVinylCache`) need a few seconds to
|
|
1047
|
+
notice. The delay keeps the container serving until they have, so rolling
|
|
1048
|
+
updates do not cause `503` errors in front of it. Rendered as the native
|
|
1049
|
+
`sleep` action, so the image needs no `sleep` binary.
|
|
1050
|
+
Requires Kubernetes 1.30 or later. Set to 0 to disable the hook.
|
|
1051
|
+
|
|
1052
|
+
---
|
|
1053
|
+
|
|
1031
1054
|
##### `readinessEnabled`<sup>Optional</sup> <a name="readinessEnabled" id="@bluedynamics/cdk8s-plone.PloneBaseOptions.property.readinessEnabled"></a>
|
|
1032
1055
|
|
|
1033
1056
|
```typescript
|
|
@@ -1245,6 +1268,22 @@ When enabled, a ServiceMonitor resource will be created to scrape metrics.
|
|
|
1245
1268
|
|
|
1246
1269
|
---
|
|
1247
1270
|
|
|
1271
|
+
##### `terminationGracePeriodSeconds`<sup>Optional</sup> <a name="terminationGracePeriodSeconds" id="@bluedynamics/cdk8s-plone.PloneBaseOptions.property.terminationGracePeriodSeconds"></a>
|
|
1272
|
+
|
|
1273
|
+
```typescript
|
|
1274
|
+
public readonly terminationGracePeriodSeconds: number;
|
|
1275
|
+
```
|
|
1276
|
+
|
|
1277
|
+
- *Type:* number
|
|
1278
|
+
- *Default:* `preStopDelaySeconds` + 30, which keeps the Kubernetes default of 30 seconds for the shutdown itself
|
|
1279
|
+
|
|
1280
|
+
Seconds Kubernetes waits for the pod to stop before it kills it.
|
|
1281
|
+
|
|
1282
|
+
The preStop delay counts against this budget, so it must be greater
|
|
1283
|
+
than `preStopDelaySeconds`.
|
|
1284
|
+
|
|
1285
|
+
---
|
|
1286
|
+
|
|
1248
1287
|
### PloneCapabilities <a name="PloneCapabilities" id="@bluedynamics/cdk8s-plone.PloneCapabilities"></a>
|
|
1249
1288
|
|
|
1250
1289
|
Linux capabilities to add or drop on a container.
|
|
@@ -1986,6 +2025,7 @@ const ploneVinylCacheOptions: PloneVinylCacheOptions = { ... }
|
|
|
1986
2025
|
| **Name** | **Type** | **Description** |
|
|
1987
2026
|
| --- | --- | --- |
|
|
1988
2027
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.plone">plone</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.Plone">Plone</a></code> | The Plone construct to attach the cache to. |
|
|
2028
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.cluster">cluster</a></code> | <code>boolean</code> | Enable clustering between the Varnish pods (`spec.cluster.enabled`). |
|
|
1989
2029
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.director">director</a></code> | <code>string</code> | Director type for load distribution. |
|
|
1990
2030
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.extraBackends">extraBackends</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.VinylCacheBackend">VinylCacheBackend</a>[]</code> | Additional backends to add after the auto-generated Plone backends. |
|
|
1991
2031
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.image">image</a></code> | <code>string</code> | Container image for the Varnish pods. |
|
|
@@ -2003,6 +2043,7 @@ const ploneVinylCacheOptions: PloneVinylCacheOptions = { ... }
|
|
|
2003
2043
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.shardReplicas">shardReplicas</a></code> | <code>number</code> | Shard director: number of Ketama replicas per backend in the hash ring. |
|
|
2004
2044
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.storage">storage</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.VinylCacheStorage">VinylCacheStorage</a>[]</code> | Varnish storage backends (`spec.storage`). |
|
|
2005
2045
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.tolerations">tolerations</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.VinylCacheToleration">VinylCacheToleration</a>[]</code> | Tolerations for the Varnish pods. |
|
|
2046
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.varnishParameters">varnishParameters</a></code> | <code>{[ key: string ]: string}</code> | Runtime parameters passed to varnishd as `-p name=value` (`spec.varnishParameters`), for example `{ nuke_limit: '1000' }`. |
|
|
2006
2047
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.vclBackendErrorSnippet">vclBackendErrorSnippet</a></code> | <code>string</code> | Custom VCL snippet for vcl_backend_error subroutine. |
|
|
2007
2048
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.vclBackendFetchSnippet">vclBackendFetchSnippet</a></code> | <code>string</code> | Custom VCL snippet for vcl_backend_fetch subroutine. |
|
|
2008
2049
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.vclBackendResponseSnippet">vclBackendResponseSnippet</a></code> | <code>string</code> | Custom VCL snippet for vcl_backend_response subroutine. |
|
|
@@ -2034,6 +2075,25 @@ Backends are auto-configured from the Plone services.
|
|
|
2034
2075
|
|
|
2035
2076
|
---
|
|
2036
2077
|
|
|
2078
|
+
##### `cluster`<sup>Optional</sup> <a name="cluster" id="@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.cluster"></a>
|
|
2079
|
+
|
|
2080
|
+
```typescript
|
|
2081
|
+
public readonly cluster: boolean;
|
|
2082
|
+
```
|
|
2083
|
+
|
|
2084
|
+
- *Type:* boolean
|
|
2085
|
+
- *Default:* not set; the operator does not cluster the pods
|
|
2086
|
+
|
|
2087
|
+
Enable clustering between the Varnish pods (`spec.cluster.enabled`).
|
|
2088
|
+
|
|
2089
|
+
With clustering, a pod that does not own a URL passes the request to the
|
|
2090
|
+
pod that does, so every object is cached once across all replicas and the
|
|
2091
|
+
effective cache size grows with the replica count. Without it, every pod
|
|
2092
|
+
caches every object, and a load balancer spreading requests evenly makes
|
|
2093
|
+
each pod fetch and store the same objects.
|
|
2094
|
+
|
|
2095
|
+
---
|
|
2096
|
+
|
|
2037
2097
|
##### `director`<sup>Optional</sup> <a name="director" id="@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.director"></a>
|
|
2038
2098
|
|
|
2039
2099
|
```typescript
|
|
@@ -2266,12 +2326,18 @@ If omitted, the operator ships varnishd with its stock default (~100 MB
|
|
|
2266
2326
|
malloc) — almost always too small. Set an explicit malloc size at least
|
|
2267
2327
|
matching the pod's memory request to use the allocated memory for caching.
|
|
2268
2328
|
|
|
2329
|
+
Do not name an entry `s0`: the stock varnish image's entrypoint always adds
|
|
2330
|
+
its own unnamed `-s malloc,...`, which varnishd names `s0`, and the names
|
|
2331
|
+
collide. varnishd also spreads objects round-robin over all storages,
|
|
2332
|
+
including that implicit `s0`; pin your storage in `vcl_backend_response`
|
|
2333
|
+
with `set beresp.storage = storage.<name>;` (bluedynamics/cloud-vinyl#113).
|
|
2334
|
+
|
|
2269
2335
|
---
|
|
2270
2336
|
|
|
2271
2337
|
*Example*
|
|
2272
2338
|
|
|
2273
2339
|
```typescript
|
|
2274
|
-
storage: [{ name: '
|
|
2340
|
+
storage: [{ name: 'cache', type: 'malloc', size: '1Gi' }]
|
|
2275
2341
|
```
|
|
2276
2342
|
|
|
2277
2343
|
|
|
@@ -2288,6 +2354,19 @@ Tolerations for the Varnish pods.
|
|
|
2288
2354
|
|
|
2289
2355
|
---
|
|
2290
2356
|
|
|
2357
|
+
##### `varnishParameters`<sup>Optional</sup> <a name="varnishParameters" id="@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.varnishParameters"></a>
|
|
2358
|
+
|
|
2359
|
+
```typescript
|
|
2360
|
+
public readonly varnishParameters: {[ key: string ]: string};
|
|
2361
|
+
```
|
|
2362
|
+
|
|
2363
|
+
- *Type:* {[ key: string ]: string}
|
|
2364
|
+
- *Default:* not set; varnishd defaults apply
|
|
2365
|
+
|
|
2366
|
+
Runtime parameters passed to varnishd as `-p name=value` (`spec.varnishParameters`), for example `{ nuke_limit: '1000' }`.
|
|
2367
|
+
|
|
2368
|
+
---
|
|
2369
|
+
|
|
2291
2370
|
##### `vclBackendErrorSnippet`<sup>Optional</sup> <a name="vclBackendErrorSnippet" id="@bluedynamics/cdk8s-plone.PloneVinylCacheOptions.property.vclBackendErrorSnippet"></a>
|
|
2292
2371
|
|
|
2293
2372
|
```typescript
|