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: modules/dynamic-plugins/con-dynamic-plugins-cache.adoc
+86-3Lines changed: 86 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,16 @@ When you enable dynamic plugins cache:
13
13
== Enabling the dynamic plugins cache
14
14
To enable the dynamic plugins cache in {product-very-short}, the plugins directory `dynamic-plugins-root` must be a persistent volume.
15
15
16
-
For Helm chart installations, a persistent volume named `dynamic-plugins-root` is automatically created.
16
+
// For Helm chart installations, a persistent volume named `dynamic-plugins-root` is automatically created.
17
17
18
-
For operator-based installations, you must manually create the PersistentVolumeClaim (PVC) as follows:
18
+
=== Creating a PVC for Dynamic Plugins Cache using the Operator
19
+
// For operator-based installations, you must manually create the PersistentVolumeClaim (PVC) as follows:
19
20
21
+
For operator-based installations, you must manually create the PersistentVolumeClaim (PVC) by replacing the default `dynamic-plugins-root` volume with a Persistent Volume Claim (PVC) named `dynamic-plugins-root`.
22
+
23
+
Create the persistent volume definition and save it to a file, for example `pvc.yaml`.
24
+
25
+
.Example creating the persistent volume definition
20
26
[source,yaml]
21
27
----
22
28
kind: PersistentVolumeClaim
@@ -29,10 +35,18 @@ spec:
29
35
resources:
30
36
requests:
31
37
storage: 5Gi
38
+
----
32
39
33
-
---
40
+
Replace the default dynamic-plugins-root volume with a persistent volume claim (PVC) named dynamic-plugins-root.
34
41
42
+
<<<<<<< HEAD
35
43
apiVersion: rhdh.redhat.com/v1alpha3
44
+
=======
45
+
.Example replacing the `dynamic-plugins-root` volume
46
+
[source,yaml]
47
+
----
48
+
apiVersion: rhdh.redhat.com/v1alpha2
49
+
>>>>>>> 5ef6a4fa9 (RHIDP-5570 - Document that the Dynamic Plugin cache PVC is disabled by default)
36
50
kind: Backstage
37
51
metadata:
38
52
name: developer-hub
@@ -49,6 +63,75 @@ spec:
49
63
claimName: dynamic-plugins-root
50
64
----
51
65
66
+
[NOTE]
67
+
To avoid adding a new volume, you must use the `$patch: replace` directive.
68
+
69
+
=== Creating a PVC for Dynamic Plugins Cache using the Helm Chart
70
+
For Helm Chart installations, if you require the dynamic plugin cache to persist across pod restarts, you must create a PersistentVolumeClaim (PVC) and configure the Helm Chart to use it.
71
+
72
+
.Example creating the persistent volume definition
73
+
[source,yaml]
74
+
----
75
+
kind: PersistentVolumeClaim
76
+
apiVersion: v1
77
+
metadata:
78
+
name: dynamic-plugins-root
79
+
spec:
80
+
accessModes:
81
+
- ReadWriteOnce
82
+
resources:
83
+
requests:
84
+
storage: 5Gi
85
+
86
+
----
87
+
88
+
[NOTE]
89
+
====
90
+
This example uses `ReadWriteOnce` as the access mode which prevents multiple replicas from sharing the PVC across different nodes.
91
+
92
+
To run multiple replicas on different nodes, depending on your storage driver, you must use an access mode such as `ReadWriteMany`.
93
+
====
94
+
95
+
To apply this PVC to your cluster, run the following command:
0 commit comments