Skip to content

Commit c02e93a

Browse files
Merge branch 'main' of github.com:abcdesktopio/newdocs
2 parents 7e6e1e0 + c648c11 commit c02e93a

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

opsdocs/docs/advanced/4.4/storage/hostpath.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Define hostPath folder and update od.config
88

99
On your node, create a folder that will be the mount point for your user's home directories. For example `mnt/abcdesktop_volumes/`.
10-
Then you have to edit your `od.config` file. First set `desktop.homedirectorytype` to `'hostPath'` and then add a `desktop.hostPathRoot` whose value will be the path to the mont point you previously created.
10+
Then you have to edit your `od.config` file. First set `desktop.homedirectorytype` to `'hostPath'` and then add a `desktop.hostPathRoot` whose value will be the path to the mount point you previously created.
1111

1212
```
1313
desktop.homedirectorytype: 'hostPath'
@@ -20,6 +20,13 @@ desktop.hostPathRoot: '/mnt/abcdesktop_volumes'
2020

2121
Kubernetes will automatically create a folder for each of your users if it does not already exists.
2222

23+
Finally, update the configmap and restart pyos by running the commands below
24+
25+
```
26+
kubectl create -n abcdesktop configmap abcdesktop-config --from-file=od.config -o yaml --dry-run=client | kubectl replace -n abcdesktop -f -
27+
kubectl rollout restart deploy pyos-od -n abcdesktop
28+
```
29+
2330
## Check if user's homedir is persistent
2431

2532
You can now connect to your abcdesktop and login as a user.
@@ -75,3 +82,5 @@ Then perform a logoff to destroy your pod and recreates it, once reconnected on
7582

7683
![check peristent user homedir](./img/nfs_check_persistent_homedir.png)
7784

85+
Great ! Now you can configure home directory persistency using hostPath !
86+
-961 KB
Binary file not shown.
-997 KB
Binary file not shown.

0 commit comments

Comments
 (0)