@bluedynamics/cdk8s-plone 0.2.6 → 0.3.1
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 +177 -22
- package/API.md +131 -0
- package/documentation/sources/reference/configuration-options.md +40 -0
- package/lib/deployment.d.ts +14 -0
- package/lib/deployment.js +3 -3
- package/lib/httpcache.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/plone.d.ts +61 -0
- package/lib/plone.js +185 -172
- package/lib/vinylcache.js +1 -1
- package/package.json +7 -7
package/.jsii
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"cdk8s": "^2.70.
|
|
10
|
+
"cdk8s": "^2.70.126",
|
|
11
11
|
"cdk8s-plus-30": "^2.4.10",
|
|
12
12
|
"constructs": "^10.4.2"
|
|
13
13
|
},
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"stability": "stable"
|
|
97
97
|
},
|
|
98
98
|
"homepage": "https://github.com/bluedynamics/cdk8s-plone.git",
|
|
99
|
-
"jsiiVersion": "5.9.
|
|
99
|
+
"jsiiVersion": "5.9.62 (build 5266620)",
|
|
100
100
|
"license": "Apache-2.0",
|
|
101
101
|
"metadata": {
|
|
102
102
|
"jsii": {
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
},
|
|
281
281
|
"locationInModule": {
|
|
282
282
|
"filename": "src/plone.ts",
|
|
283
|
-
"line":
|
|
283
|
+
"line": 534
|
|
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": 474
|
|
311
311
|
},
|
|
312
312
|
"name": "Plone",
|
|
313
313
|
"properties": [
|
|
@@ -320,13 +320,34 @@
|
|
|
320
320
|
"immutable": true,
|
|
321
321
|
"locationInModule": {
|
|
322
322
|
"filename": "src/plone.ts",
|
|
323
|
-
"line":
|
|
323
|
+
"line": 493
|
|
324
324
|
},
|
|
325
325
|
"name": "backendDeployment",
|
|
326
326
|
"type": {
|
|
327
327
|
"fqn": "cdk8s.ApiObject"
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
|
+
{
|
|
331
|
+
"docs": {
|
|
332
|
+
"remarks": "Empty without backend groups.",
|
|
333
|
+
"stability": "stable",
|
|
334
|
+
"summary": "The backend group Deployments by group name, as an escape hatch, see `backendDeployment`."
|
|
335
|
+
},
|
|
336
|
+
"immutable": true,
|
|
337
|
+
"locationInModule": {
|
|
338
|
+
"filename": "src/plone.ts",
|
|
339
|
+
"line": 516
|
|
340
|
+
},
|
|
341
|
+
"name": "backendGroupDeployments",
|
|
342
|
+
"type": {
|
|
343
|
+
"collection": {
|
|
344
|
+
"elementtype": {
|
|
345
|
+
"fqn": "cdk8s.ApiObject"
|
|
346
|
+
},
|
|
347
|
+
"kind": "map"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
330
351
|
{
|
|
331
352
|
"docs": {
|
|
332
353
|
"stability": "stable",
|
|
@@ -335,7 +356,7 @@
|
|
|
335
356
|
"immutable": true,
|
|
336
357
|
"locationInModule": {
|
|
337
358
|
"filename": "src/plone.ts",
|
|
338
|
-
"line":
|
|
359
|
+
"line": 498
|
|
339
360
|
},
|
|
340
361
|
"name": "backendService",
|
|
341
362
|
"type": {
|
|
@@ -351,13 +372,34 @@
|
|
|
351
372
|
"immutable": true,
|
|
352
373
|
"locationInModule": {
|
|
353
374
|
"filename": "src/plone.ts",
|
|
354
|
-
"line":
|
|
375
|
+
"line": 479
|
|
355
376
|
},
|
|
356
377
|
"name": "backendServiceName",
|
|
357
378
|
"type": {
|
|
358
379
|
"primitive": "string"
|
|
359
380
|
}
|
|
360
381
|
},
|
|
382
|
+
{
|
|
383
|
+
"docs": {
|
|
384
|
+
"remarks": "Empty without frontend groups or for the Blicca variant.",
|
|
385
|
+
"stability": "stable",
|
|
386
|
+
"summary": "The frontend group Deployments by group name, as an escape hatch, see `backendDeployment`."
|
|
387
|
+
},
|
|
388
|
+
"immutable": true,
|
|
389
|
+
"locationInModule": {
|
|
390
|
+
"filename": "src/plone.ts",
|
|
391
|
+
"line": 522
|
|
392
|
+
},
|
|
393
|
+
"name": "frontendGroupDeployments",
|
|
394
|
+
"type": {
|
|
395
|
+
"collection": {
|
|
396
|
+
"elementtype": {
|
|
397
|
+
"fqn": "cdk8s.ApiObject"
|
|
398
|
+
},
|
|
399
|
+
"kind": "map"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
361
403
|
{
|
|
362
404
|
"docs": {
|
|
363
405
|
"stability": "stable",
|
|
@@ -366,7 +408,7 @@
|
|
|
366
408
|
"immutable": true,
|
|
367
409
|
"locationInModule": {
|
|
368
410
|
"filename": "src/plone.ts",
|
|
369
|
-
"line":
|
|
411
|
+
"line": 532
|
|
370
412
|
},
|
|
371
413
|
"name": "siteId",
|
|
372
414
|
"type": {
|
|
@@ -381,7 +423,7 @@
|
|
|
381
423
|
"immutable": true,
|
|
382
424
|
"locationInModule": {
|
|
383
425
|
"filename": "src/plone.ts",
|
|
384
|
-
"line":
|
|
426
|
+
"line": 527
|
|
385
427
|
},
|
|
386
428
|
"name": "variant",
|
|
387
429
|
"type": {
|
|
@@ -397,7 +439,7 @@
|
|
|
397
439
|
"immutable": true,
|
|
398
440
|
"locationInModule": {
|
|
399
441
|
"filename": "src/plone.ts",
|
|
400
|
-
"line":
|
|
442
|
+
"line": 504
|
|
401
443
|
},
|
|
402
444
|
"name": "frontendDeployment",
|
|
403
445
|
"optional": true,
|
|
@@ -414,7 +456,7 @@
|
|
|
414
456
|
"immutable": true,
|
|
415
457
|
"locationInModule": {
|
|
416
458
|
"filename": "src/plone.ts",
|
|
417
|
-
"line":
|
|
459
|
+
"line": 510
|
|
418
460
|
},
|
|
419
461
|
"name": "frontendService",
|
|
420
462
|
"optional": true,
|
|
@@ -431,7 +473,7 @@
|
|
|
431
473
|
"immutable": true,
|
|
432
474
|
"locationInModule": {
|
|
433
475
|
"filename": "src/plone.ts",
|
|
434
|
-
"line":
|
|
476
|
+
"line": 485
|
|
435
477
|
},
|
|
436
478
|
"name": "frontendServiceName",
|
|
437
479
|
"optional": true,
|
|
@@ -501,6 +543,30 @@
|
|
|
501
543
|
"fqn": "cdk8s-plus-30.Env"
|
|
502
544
|
}
|
|
503
545
|
},
|
|
546
|
+
{
|
|
547
|
+
"abstract": true,
|
|
548
|
+
"docs": {
|
|
549
|
+
"default": "- no groups",
|
|
550
|
+
"remarks": "Their replicas add to `replicas`.",
|
|
551
|
+
"stability": "stable",
|
|
552
|
+
"summary": "Additional Deployments whose pods run with different settings and join this role's Service and PodDisruptionBudget, see `PloneGroup`."
|
|
553
|
+
},
|
|
554
|
+
"immutable": true,
|
|
555
|
+
"locationInModule": {
|
|
556
|
+
"filename": "src/plone.ts",
|
|
557
|
+
"line": 336
|
|
558
|
+
},
|
|
559
|
+
"name": "groups",
|
|
560
|
+
"optional": true,
|
|
561
|
+
"type": {
|
|
562
|
+
"collection": {
|
|
563
|
+
"elementtype": {
|
|
564
|
+
"fqn": "@bluedynamics/cdk8s-plone.PloneGroup"
|
|
565
|
+
},
|
|
566
|
+
"kind": "array"
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
},
|
|
504
570
|
{
|
|
505
571
|
"abstract": true,
|
|
506
572
|
"docs": {
|
|
@@ -1211,6 +1277,95 @@
|
|
|
1211
1277
|
],
|
|
1212
1278
|
"symbolId": "src/plone:PloneCapabilities"
|
|
1213
1279
|
},
|
|
1280
|
+
"@bluedynamics/cdk8s-plone.PloneGroup": {
|
|
1281
|
+
"assembly": "@bluedynamics/cdk8s-plone",
|
|
1282
|
+
"datatype": true,
|
|
1283
|
+
"docs": {
|
|
1284
|
+
"stability": "stable",
|
|
1285
|
+
"summary": "A group of pods that runs with different settings behind the same Service as the main Deployment of its role, e.g. an allocator experiment or a canary. Everything not set here is inherited from the role's options."
|
|
1286
|
+
},
|
|
1287
|
+
"fqn": "@bluedynamics/cdk8s-plone.PloneGroup",
|
|
1288
|
+
"kind": "interface",
|
|
1289
|
+
"locationInModule": {
|
|
1290
|
+
"filename": "src/plone.ts",
|
|
1291
|
+
"line": 343
|
|
1292
|
+
},
|
|
1293
|
+
"name": "PloneGroup",
|
|
1294
|
+
"properties": [
|
|
1295
|
+
{
|
|
1296
|
+
"abstract": true,
|
|
1297
|
+
"docs": {
|
|
1298
|
+
"remarks": "Pods carry it in the label\n`cdk8s-plone.bluedynamics.eu/group`. `default` is reserved for the main\nDeployment. Renaming a group creates a new Deployment; cdk8s does not\ndelete the old one.",
|
|
1299
|
+
"stability": "stable",
|
|
1300
|
+
"summary": "Name of the group, a lowercase DNS label."
|
|
1301
|
+
},
|
|
1302
|
+
"immutable": true,
|
|
1303
|
+
"locationInModule": {
|
|
1304
|
+
"filename": "src/plone.ts",
|
|
1305
|
+
"line": 350
|
|
1306
|
+
},
|
|
1307
|
+
"name": "name",
|
|
1308
|
+
"type": {
|
|
1309
|
+
"primitive": "string"
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"abstract": true,
|
|
1314
|
+
"docs": {
|
|
1315
|
+
"default": "- the role's environment",
|
|
1316
|
+
"stability": "stable",
|
|
1317
|
+
"summary": "Environment for the group's pods, merged over the role's environment: variables with the same name are replaced, sources are appended."
|
|
1318
|
+
},
|
|
1319
|
+
"immutable": true,
|
|
1320
|
+
"locationInModule": {
|
|
1321
|
+
"filename": "src/plone.ts",
|
|
1322
|
+
"line": 363
|
|
1323
|
+
},
|
|
1324
|
+
"name": "environment",
|
|
1325
|
+
"optional": true,
|
|
1326
|
+
"type": {
|
|
1327
|
+
"fqn": "cdk8s-plus-30.Env"
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"abstract": true,
|
|
1332
|
+
"docs": {
|
|
1333
|
+
"default": "- the role's image",
|
|
1334
|
+
"stability": "stable",
|
|
1335
|
+
"summary": "Container image for the group's pods."
|
|
1336
|
+
},
|
|
1337
|
+
"immutable": true,
|
|
1338
|
+
"locationInModule": {
|
|
1339
|
+
"filename": "src/plone.ts",
|
|
1340
|
+
"line": 369
|
|
1341
|
+
},
|
|
1342
|
+
"name": "image",
|
|
1343
|
+
"optional": true,
|
|
1344
|
+
"type": {
|
|
1345
|
+
"primitive": "string"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"abstract": true,
|
|
1350
|
+
"docs": {
|
|
1351
|
+
"default": "1",
|
|
1352
|
+
"stability": "stable",
|
|
1353
|
+
"summary": "Number of pods in the group, in addition to the role's `replicas`."
|
|
1354
|
+
},
|
|
1355
|
+
"immutable": true,
|
|
1356
|
+
"locationInModule": {
|
|
1357
|
+
"filename": "src/plone.ts",
|
|
1358
|
+
"line": 356
|
|
1359
|
+
},
|
|
1360
|
+
"name": "replicas",
|
|
1361
|
+
"optional": true,
|
|
1362
|
+
"type": {
|
|
1363
|
+
"primitive": "number"
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
],
|
|
1367
|
+
"symbolId": "src/plone:PloneGroup"
|
|
1368
|
+
},
|
|
1214
1369
|
"@bluedynamics/cdk8s-plone.PloneHttpcache": {
|
|
1215
1370
|
"assembly": "@bluedynamics/cdk8s-plone",
|
|
1216
1371
|
"base": "constructs.Construct",
|
|
@@ -1593,7 +1748,7 @@
|
|
|
1593
1748
|
"kind": "interface",
|
|
1594
1749
|
"locationInModule": {
|
|
1595
1750
|
"filename": "src/plone.ts",
|
|
1596
|
-
"line":
|
|
1751
|
+
"line": 407
|
|
1597
1752
|
},
|
|
1598
1753
|
"name": "PloneOptions",
|
|
1599
1754
|
"properties": [
|
|
@@ -1607,7 +1762,7 @@
|
|
|
1607
1762
|
"immutable": true,
|
|
1608
1763
|
"locationInModule": {
|
|
1609
1764
|
"filename": "src/plone.ts",
|
|
1610
|
-
"line":
|
|
1765
|
+
"line": 432
|
|
1611
1766
|
},
|
|
1612
1767
|
"name": "backend",
|
|
1613
1768
|
"optional": true,
|
|
@@ -1626,7 +1781,7 @@
|
|
|
1626
1781
|
"immutable": true,
|
|
1627
1782
|
"locationInModule": {
|
|
1628
1783
|
"filename": "src/plone.ts",
|
|
1629
|
-
"line":
|
|
1784
|
+
"line": 439
|
|
1630
1785
|
},
|
|
1631
1786
|
"name": "frontend",
|
|
1632
1787
|
"optional": true,
|
|
@@ -1646,7 +1801,7 @@
|
|
|
1646
1801
|
"immutable": true,
|
|
1647
1802
|
"locationInModule": {
|
|
1648
1803
|
"filename": "src/plone.ts",
|
|
1649
|
-
"line":
|
|
1804
|
+
"line": 447
|
|
1650
1805
|
},
|
|
1651
1806
|
"name": "imagePullSecrets",
|
|
1652
1807
|
"optional": true,
|
|
@@ -1670,7 +1825,7 @@
|
|
|
1670
1825
|
"immutable": true,
|
|
1671
1826
|
"locationInModule": {
|
|
1672
1827
|
"filename": "src/plone.ts",
|
|
1673
|
-
"line":
|
|
1828
|
+
"line": 420
|
|
1674
1829
|
},
|
|
1675
1830
|
"name": "siteId",
|
|
1676
1831
|
"optional": true,
|
|
@@ -1688,7 +1843,7 @@
|
|
|
1688
1843
|
"immutable": true,
|
|
1689
1844
|
"locationInModule": {
|
|
1690
1845
|
"filename": "src/plone.ts",
|
|
1691
|
-
"line":
|
|
1846
|
+
"line": 426
|
|
1692
1847
|
},
|
|
1693
1848
|
"name": "variant",
|
|
1694
1849
|
"optional": true,
|
|
@@ -1707,7 +1862,7 @@
|
|
|
1707
1862
|
"immutable": true,
|
|
1708
1863
|
"locationInModule": {
|
|
1709
1864
|
"filename": "src/plone.ts",
|
|
1710
|
-
"line":
|
|
1865
|
+
"line": 413
|
|
1711
1866
|
},
|
|
1712
1867
|
"name": "version",
|
|
1713
1868
|
"optional": true,
|
|
@@ -2183,7 +2338,7 @@
|
|
|
2183
2338
|
"kind": "enum",
|
|
2184
2339
|
"locationInModule": {
|
|
2185
2340
|
"filename": "src/plone.ts",
|
|
2186
|
-
"line":
|
|
2341
|
+
"line": 381
|
|
2187
2342
|
},
|
|
2188
2343
|
"members": [
|
|
2189
2344
|
{
|
|
@@ -3628,6 +3783,6 @@
|
|
|
3628
3783
|
"symbolId": "src/vinylcache:VinylCacheTracing"
|
|
3629
3784
|
}
|
|
3630
3785
|
},
|
|
3631
|
-
"version": "0.
|
|
3632
|
-
"fingerprint": "
|
|
3786
|
+
"version": "0.3.1",
|
|
3787
|
+
"fingerprint": "M2sYdBh2sFcLuA/RwfQGfcBl5hibFbypdfc4LGyAMX8="
|
|
3633
3788
|
}
|
package/API.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
### Plone <a name="Plone" id="@bluedynamics/cdk8s-plone.Plone"></a>
|
|
6
6
|
|
|
7
|
+
- *Implements:* constructs.IConstruct, constructs.IDependable
|
|
8
|
+
|
|
7
9
|
Plone construct for deploying Plone CMS to Kubernetes.
|
|
8
10
|
|
|
9
11
|
This construct creates all necessary Kubernetes resources for running Plone:
|
|
@@ -149,8 +151,10 @@ Any object.
|
|
|
149
151
|
| --- | --- | --- |
|
|
150
152
|
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
|
|
151
153
|
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendDeployment">backendDeployment</a></code> | <code>cdk8s.ApiObject</code> | The backend Deployment, as an escape hatch for fields without a dedicated option. |
|
|
154
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendGroupDeployments">backendGroupDeployments</a></code> | <code>{[ key: string ]: cdk8s.ApiObject}</code> | The backend group Deployments by group name, as an escape hatch, see `backendDeployment`. |
|
|
152
155
|
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendService">backendService</a></code> | <code>cdk8s.ApiObject</code> | The backend Service, as an escape hatch, see `backendDeployment`. |
|
|
153
156
|
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendServiceName">backendServiceName</a></code> | <code>string</code> | Name of the backend Kubernetes service. |
|
|
157
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.frontendGroupDeployments">frontendGroupDeployments</a></code> | <code>{[ key: string ]: cdk8s.ApiObject}</code> | The frontend group Deployments by group name, as an escape hatch, see `backendDeployment`. |
|
|
154
158
|
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.siteId">siteId</a></code> | <code>string</code> | The Plone site ID in ZODB. |
|
|
155
159
|
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.variant">variant</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.PloneVariant">PloneVariant</a></code> | The deployment variant being used (VOLTO or BLICCA). |
|
|
156
160
|
| <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.frontendDeployment">frontendDeployment</a></code> | <code>cdk8s.ApiObject</code> | The frontend Deployment, as an escape hatch, see `backendDeployment`. |
|
|
@@ -187,6 +191,20 @@ The Plone container is always `containers/0`.
|
|
|
187
191
|
|
|
188
192
|
---
|
|
189
193
|
|
|
194
|
+
##### `backendGroupDeployments`<sup>Required</sup> <a name="backendGroupDeployments" id="@bluedynamics/cdk8s-plone.Plone.property.backendGroupDeployments"></a>
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
public readonly backendGroupDeployments: {[ key: string ]: ApiObject};
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
- *Type:* {[ key: string ]: cdk8s.ApiObject}
|
|
201
|
+
|
|
202
|
+
The backend group Deployments by group name, as an escape hatch, see `backendDeployment`.
|
|
203
|
+
|
|
204
|
+
Empty without backend groups.
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
190
208
|
##### `backendService`<sup>Required</sup> <a name="backendService" id="@bluedynamics/cdk8s-plone.Plone.property.backendService"></a>
|
|
191
209
|
|
|
192
210
|
```typescript
|
|
@@ -213,6 +231,20 @@ Use this to reference the backend service from other constructs.
|
|
|
213
231
|
|
|
214
232
|
---
|
|
215
233
|
|
|
234
|
+
##### `frontendGroupDeployments`<sup>Required</sup> <a name="frontendGroupDeployments" id="@bluedynamics/cdk8s-plone.Plone.property.frontendGroupDeployments"></a>
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
public readonly frontendGroupDeployments: {[ key: string ]: ApiObject};
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
- *Type:* {[ key: string ]: cdk8s.ApiObject}
|
|
241
|
+
|
|
242
|
+
The frontend group Deployments by group name, as an escape hatch, see `backendDeployment`.
|
|
243
|
+
|
|
244
|
+
Empty without frontend groups or for the Blicca variant.
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
216
248
|
##### `siteId`<sup>Required</sup> <a name="siteId" id="@bluedynamics/cdk8s-plone.Plone.property.siteId"></a>
|
|
217
249
|
|
|
218
250
|
```typescript
|
|
@@ -282,6 +314,8 @@ Only set when variant is VOLTO, otherwise undefined.
|
|
|
282
314
|
|
|
283
315
|
### PloneHttpcache <a name="PloneHttpcache" id="@bluedynamics/cdk8s-plone.PloneHttpcache"></a>
|
|
284
316
|
|
|
317
|
+
- *Implements:* constructs.IConstruct, constructs.IDependable
|
|
318
|
+
|
|
285
319
|
PloneHttpcache construct for deploying Varnish HTTP caching layer.
|
|
286
320
|
|
|
287
321
|
Uses the mittwald/kube-httpcache Helm chart to deploy Varnish as a
|
|
@@ -451,6 +485,8 @@ Use this to reference the cache service from ingress or other constructs.
|
|
|
451
485
|
|
|
452
486
|
### PloneVinylCache <a name="PloneVinylCache" id="@bluedynamics/cdk8s-plone.PloneVinylCache"></a>
|
|
453
487
|
|
|
488
|
+
- *Implements:* constructs.IConstruct, constructs.IDependable
|
|
489
|
+
|
|
454
490
|
PloneVinylCache construct for deploying Varnish Cache via cloud-vinyl operator.
|
|
455
491
|
|
|
456
492
|
Creates a VinylCache custom resource with Plone backend/frontend services
|
|
@@ -785,6 +821,7 @@ const ploneBaseOptions: PloneBaseOptions = { ... }
|
|
|
785
821
|
| --- | --- | --- |
|
|
786
822
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.annotations">annotations</a></code> | <code>{[ key: string ]: string}</code> | Annotations to add to the Deployment metadata. |
|
|
787
823
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.environment">environment</a></code> | <code>cdk8s-plus-30.Env</code> | Environment variables to set in the container. |
|
|
824
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.groups">groups</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup">PloneGroup</a>[]</code> | Additional Deployments whose pods run with different settings and join this role's Service and PodDisruptionBudget, see `PloneGroup`. |
|
|
788
825
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.image">image</a></code> | <code>string</code> | Container image to use for the deployment. |
|
|
789
826
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.imagePullPolicy">imagePullPolicy</a></code> | <code>string</code> | Image pull policy for the container. |
|
|
790
827
|
| <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.limitCpu">limitCpu</a></code> | <code>string</code> | CPU limit for the container. |
|
|
@@ -855,6 +892,21 @@ Use cdk8s-plus-30 Env class to define variables and sources.
|
|
|
855
892
|
|
|
856
893
|
---
|
|
857
894
|
|
|
895
|
+
##### `groups`<sup>Optional</sup> <a name="groups" id="@bluedynamics/cdk8s-plone.PloneBaseOptions.property.groups"></a>
|
|
896
|
+
|
|
897
|
+
```typescript
|
|
898
|
+
public readonly groups: PloneGroup[];
|
|
899
|
+
```
|
|
900
|
+
|
|
901
|
+
- *Type:* <a href="#@bluedynamics/cdk8s-plone.PloneGroup">PloneGroup</a>[]
|
|
902
|
+
- *Default:* no groups
|
|
903
|
+
|
|
904
|
+
Additional Deployments whose pods run with different settings and join this role's Service and PodDisruptionBudget, see `PloneGroup`.
|
|
905
|
+
|
|
906
|
+
Their replicas add to `replicas`.
|
|
907
|
+
|
|
908
|
+
---
|
|
909
|
+
|
|
858
910
|
##### `image`<sup>Optional</sup> <a name="image" id="@bluedynamics/cdk8s-plone.PloneBaseOptions.property.image"></a>
|
|
859
911
|
|
|
860
912
|
```typescript
|
|
@@ -1429,6 +1481,85 @@ Capabilities to drop (e.g. 'ALL', 'NET_RAW').
|
|
|
1429
1481
|
|
|
1430
1482
|
---
|
|
1431
1483
|
|
|
1484
|
+
### PloneGroup <a name="PloneGroup" id="@bluedynamics/cdk8s-plone.PloneGroup"></a>
|
|
1485
|
+
|
|
1486
|
+
A group of pods that runs with different settings behind the same Service as the main Deployment of its role, e.g. an allocator experiment or a canary. Everything not set here is inherited from the role's options.
|
|
1487
|
+
|
|
1488
|
+
#### Initializer <a name="Initializer" id="@bluedynamics/cdk8s-plone.PloneGroup.Initializer"></a>
|
|
1489
|
+
|
|
1490
|
+
```typescript
|
|
1491
|
+
import { PloneGroup } from '@bluedynamics/cdk8s-plone'
|
|
1492
|
+
|
|
1493
|
+
const ploneGroup: PloneGroup = { ... }
|
|
1494
|
+
```
|
|
1495
|
+
|
|
1496
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
1497
|
+
|
|
1498
|
+
| **Name** | **Type** | **Description** |
|
|
1499
|
+
| --- | --- | --- |
|
|
1500
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.name">name</a></code> | <code>string</code> | Name of the group, a lowercase DNS label. |
|
|
1501
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.environment">environment</a></code> | <code>cdk8s-plus-30.Env</code> | Environment for the group's pods, merged over the role's environment: variables with the same name are replaced, sources are appended. |
|
|
1502
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.image">image</a></code> | <code>string</code> | Container image for the group's pods. |
|
|
1503
|
+
| <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.replicas">replicas</a></code> | <code>number</code> | Number of pods in the group, in addition to the role's `replicas`. |
|
|
1504
|
+
|
|
1505
|
+
---
|
|
1506
|
+
|
|
1507
|
+
##### `name`<sup>Required</sup> <a name="name" id="@bluedynamics/cdk8s-plone.PloneGroup.property.name"></a>
|
|
1508
|
+
|
|
1509
|
+
```typescript
|
|
1510
|
+
public readonly name: string;
|
|
1511
|
+
```
|
|
1512
|
+
|
|
1513
|
+
- *Type:* string
|
|
1514
|
+
|
|
1515
|
+
Name of the group, a lowercase DNS label.
|
|
1516
|
+
|
|
1517
|
+
Pods carry it in the label
|
|
1518
|
+
`cdk8s-plone.bluedynamics.eu/group`. `default` is reserved for the main
|
|
1519
|
+
Deployment. Renaming a group creates a new Deployment; cdk8s does not
|
|
1520
|
+
delete the old one.
|
|
1521
|
+
|
|
1522
|
+
---
|
|
1523
|
+
|
|
1524
|
+
##### `environment`<sup>Optional</sup> <a name="environment" id="@bluedynamics/cdk8s-plone.PloneGroup.property.environment"></a>
|
|
1525
|
+
|
|
1526
|
+
```typescript
|
|
1527
|
+
public readonly environment: Env;
|
|
1528
|
+
```
|
|
1529
|
+
|
|
1530
|
+
- *Type:* cdk8s-plus-30.Env
|
|
1531
|
+
- *Default:* the role's environment
|
|
1532
|
+
|
|
1533
|
+
Environment for the group's pods, merged over the role's environment: variables with the same name are replaced, sources are appended.
|
|
1534
|
+
|
|
1535
|
+
---
|
|
1536
|
+
|
|
1537
|
+
##### `image`<sup>Optional</sup> <a name="image" id="@bluedynamics/cdk8s-plone.PloneGroup.property.image"></a>
|
|
1538
|
+
|
|
1539
|
+
```typescript
|
|
1540
|
+
public readonly image: string;
|
|
1541
|
+
```
|
|
1542
|
+
|
|
1543
|
+
- *Type:* string
|
|
1544
|
+
- *Default:* the role's image
|
|
1545
|
+
|
|
1546
|
+
Container image for the group's pods.
|
|
1547
|
+
|
|
1548
|
+
---
|
|
1549
|
+
|
|
1550
|
+
##### `replicas`<sup>Optional</sup> <a name="replicas" id="@bluedynamics/cdk8s-plone.PloneGroup.property.replicas"></a>
|
|
1551
|
+
|
|
1552
|
+
```typescript
|
|
1553
|
+
public readonly replicas: number;
|
|
1554
|
+
```
|
|
1555
|
+
|
|
1556
|
+
- *Type:* number
|
|
1557
|
+
- *Default:* 1
|
|
1558
|
+
|
|
1559
|
+
Number of pods in the group, in addition to the role's `replicas`.
|
|
1560
|
+
|
|
1561
|
+
---
|
|
1562
|
+
|
|
1432
1563
|
### PloneHttpcacheOptions <a name="PloneHttpcacheOptions" id="@bluedynamics/cdk8s-plone.PloneHttpcacheOptions"></a>
|
|
1433
1564
|
|
|
1434
1565
|
Configuration options for PloneHttpcache (Varnish caching layer).
|
|
@@ -172,6 +172,46 @@ backend: {
|
|
|
172
172
|
The top-level `serviceAnnotations` option is deprecated. Use `service.annotations` instead.
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
+
(groups)=
|
|
176
|
+
|
|
177
|
+
### Groups
|
|
178
|
+
|
|
179
|
+
`groups` runs part of a role's pods with different settings behind the same Service, for example an allocator experiment or a canary.
|
|
180
|
+
Each group becomes an additional Deployment.
|
|
181
|
+
|
|
182
|
+
```typescript
|
|
183
|
+
import { Env, EnvValue } from 'cdk8s-plus-30';
|
|
184
|
+
|
|
185
|
+
backend: {
|
|
186
|
+
replicas: 4,
|
|
187
|
+
groups: [
|
|
188
|
+
{
|
|
189
|
+
name: 'jemalloc',
|
|
190
|
+
replicas: 2,
|
|
191
|
+
environment: new Env([], {
|
|
192
|
+
LD_PRELOAD: EnvValue.fromValue('/usr/lib/x86_64-linux-gnu/libjemalloc.so.2'),
|
|
193
|
+
}),
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
- A group inherits all settings of its role, including probes, resources, scheduling, and the graceful shutdown.
|
|
200
|
+
It can set `replicas` (default `1`), `environment`, and `image`.
|
|
201
|
+
- `environment` is merged over the role's environment.
|
|
202
|
+
A variable with the same name replaces the role's value.
|
|
203
|
+
- Group replicas add to the role's `replicas`: the example runs six backend pods.
|
|
204
|
+
- Group pods join the role's Service and PodDisruptionBudget.
|
|
205
|
+
- Every pod carries the label `cdk8s-plone.bluedynamics.eu/group`, with the value `default` for the main Deployment.
|
|
206
|
+
The ServiceMonitor transfers it to the metrics, where Prometheus names it `cdk8s_plone_bluedynamics_eu_group`.
|
|
207
|
+
- `name` must be a lowercase DNS label and must not be `default`.
|
|
208
|
+
Renaming a group creates a new Deployment, and the old one stays until you delete it.
|
|
209
|
+
- `groups` works for `frontend` as well.
|
|
210
|
+
|
|
211
|
+
For other settings per group, patch the group's Deployment through `plone.backendGroupDeployments` or `plone.frontendGroupDeployments`, keyed by group name.
|
|
212
|
+
|
|
213
|
+
Groups require that the pod labels from 0.2.5 are rolled out before you upgrade, see {ref}`upgrade-pod-labels`.
|
|
214
|
+
|
|
175
215
|
### Escape hatch
|
|
176
216
|
|
|
177
217
|
For fields without a dedicated option, patch the generated objects with [JSON Patch](https://cdk8s.io/docs/latest/basics/escape-hatches).
|
package/lib/deployment.d.ts
CHANGED
|
@@ -124,6 +124,20 @@ export interface PloneDeploymentOptions {
|
|
|
124
124
|
* @default - no PDB created
|
|
125
125
|
*/
|
|
126
126
|
readonly pdb?: PlonePDBOptions;
|
|
127
|
+
/**
|
|
128
|
+
* Pod selector of the PodDisruptionBudget, when it covers pods of further
|
|
129
|
+
* Deployments (groups) besides this one.
|
|
130
|
+
* @default - this Deployment's own selector
|
|
131
|
+
*/
|
|
132
|
+
readonly pdbSelector?: {
|
|
133
|
+
[name: string]: string;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Number of pods the PodDisruptionBudget covers, for the rule that a PDB is
|
|
137
|
+
* only created from 2 pods on.
|
|
138
|
+
* @default - `replicas`
|
|
139
|
+
*/
|
|
140
|
+
readonly pdbReplicas?: number;
|
|
127
141
|
/**
|
|
128
142
|
* Node selector labels for pod scheduling.
|
|
129
143
|
* @default - no node selector
|