You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deploy_dx/install/kubernetes_deployment/preparation/mandatory_tasks/prepare_persistent_volume_claims.md
A HCL Digital Experience Compose Kubernetes deployment requires a number of persistent volumes as standard, such as for the WebEngine logs and customizations and for digital asset storage. It is now also possible to connect additional persistent volumes to the DX WebEngine stateful set and mount them in the main container of all WebEngine pods. It is anticipated that this optional feature will be of use to customers running custom applications on DX Compose that require additional persistent storage.
331
+
332
+
This feature allows you to configure additional Persistent Volume Claims (PVCs) for the WebEngine stateful set and specify the directories at which they will be mounted in the main containers of all WebEngine pods.
333
+
334
+
!!! important
335
+
WebEngine pods will remain "Pending" until all the new claims have been satisfied. Please ensure that you have created the necessary Persistent Volumes in advance or have suitable provisioners in your Kubernetes cluster to create the volumes on demand.
336
+
337
+
The following syntax can be used to configure additional Persistent Volume Claims (PVCs) in your `custom-values.yaml`:
338
+
339
+
```yaml
340
+
volumes:
341
+
# Persistent Volumes for webEngine
342
+
webEngine:
343
+
# List of optional additional WebEngine PVCs one per webEngine pod - RWO for customer applications
344
+
# Each list element must include a unique "name", one or more "accessModes"
345
+
# Only supported option is ReadWriteOnce, a "mountPath" specifying where in the
346
+
# WebEngine container it should be mounted, a "storageClassName" and a size in "requests/storage".
347
+
# It may also optionally include a "selector" section to select specific PVs based on their labels.
348
+
# It may also optionally include a "volumeName" to select a specific PV.
349
+
# Example:
350
+
# customPVCs:
351
+
# - name: "test1"
352
+
# accessModes:
353
+
# - "ReadWriteOnce"
354
+
# mountPath: "/opt/openliberty/test1"
355
+
# storageClassName: "manual"
356
+
# requests:
357
+
# storage: "20Gi"
358
+
# selector:
359
+
# matchLabels:
360
+
# label: test
361
+
# matchExpressions:
362
+
# - key: name
363
+
# operator: In
364
+
# values:
365
+
# - test1
366
+
# - test2
367
+
# volumeName: "test-pv"
368
+
customPVCs: []
369
+
```
370
+
371
+
**Example**
372
+
373
+
The following example creates a new PVC called `<deployment-name>-web-engine-custom-test1` and mounts it in the main WebEngine pod containers at `/opt/openliberty/test1`. To be satisfied this claim requires a Persistent Volume with access mode `ReadWriteOnce`, storage class `manual` and at least 20Gb capacity. Since `volumeName` and `selector` are not specified, Kubernetes is free to choose any unbound volume that meets the above criteria.
0 commit comments