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/administration-guide/pages/enabling-fuse-for-all-workspaces.adoc
+49-33Lines changed: 49 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,42 +7,19 @@
7
7
[id="enabling-fuse-overlayfs-for-all-workspaces"]
8
8
= Enabling fuse-overlayfs for all workspaces
9
9
10
+
Learn how to configure the workspace's container entrypoint script so that you can use fuse-overlayfs for all workspaces using that container.
11
+
12
+
The Universal Developer Image (UDI) already contains the necessary configuration by default.
13
+
However, you must configure the script manually if you use custom images due to Podman 5.x requiring the `/home/user/.config` folder to be owned by the current user.
14
+
10
15
.Prerequisites
11
16
12
-
* The xref:administration-guide:enabling-access-to-dev-fuse-for-openshift.adoc[] section has been completed. This is not required for OpenShift versions 4.15 and later.
17
+
* For OpenShift versions 4.14 and lower, the xref:administration-guide:enabling-access-to-dev-fuse-for-openshift.adoc[] section has been completed.
13
18
14
19
* An active `{orch-cli}` session with administrative permissions to the destination OpenShift cluster. See {orch-cli-link}.
15
20
16
21
.Procedure
17
22
18
-
. Create a ConfigMap that mounts the `storage.conf` file for all user workspaces.
WARNING: Creating this ConfigMap will cause all running workspaces to restart.
45
-
46
23
. Set the necessary annotation in the `spec.devEnvironments.workspacesPodAnnotations` field of the CheCluster custom resource.
47
24
+
48
25
====
@@ -59,12 +36,51 @@ spec:
59
36
+
60
37
[NOTE]
61
38
====
62
-
For OpenShift versions before 4.15, the `io.openshift.podman-fuse: ""` annotation is also required.
39
+
For OpenShift versions 4.14 and lower, the `io.openshift.podman-fuse: ""` annotation is also required.
40
+
====
41
+
42
+
. Optional: If you are using a custom image for the workspace container, create the `/home/user/.config` folder and configure the `storage.conf` file on runtime via the entrypoint.
43
+
To do this, add the following to the workspace container image's entrypoint script before building the image.
44
+
Creating the `/home/user/.config` folder in the entrypoint results in the folder being owned by the current user which is not known at image build time.
45
+
+
46
+
====
47
+
[source,subs="+quotes,+macros"]
48
+
----
49
+
# Configure container builds to use vfs or fuse-overlayfs
50
+
if [ ! -d "${HOME}/.config/containers" ]; then
51
+
mkdir -p ${HOME}/.config/containers
52
+
if [ -c "/dev/fuse" ] && [ -f "/usr/bin/fuse-overlayfs" ]; then
0 commit comments