- Your MOS version.
- A sanitized copy of your authentication configuration file.
- The full YAML of a failing mos-matlab-pool pod from kubectl get pod <pod-name> -o yaml.
EKS Deployment of Matlab Online Server does not properly bind EFS PVC
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MOS is having difficulty mounting an EFS persistent volume. Looking at the mos-matlab-pool deployment.yaml templates, it appears strings are not interpolated correctly.
fromMountPath: /pvcshared/home/subjectsubjectId/
The above should be userID, as my storage profile config is:
```
storage:
profiles:
- name: "home"
mounts:
- name: "home"
mountPath: "/home/${subject.subjectId}"
type: "pvc"
claimName: "pvc-example-efs-eks"
subPath: "/exports/home/${subject.subjectId}"
createIfNotExist: true
permissionType: "user"
uid: "${subject.uid}"
gid: "${subject.uid}"
startDirectory: "/home/${subject.subjectId}"
```
We didn't have this issue when deploying with K8 on an EC2, as we used a direct NFS for Kubernetes. However, it seems there is logic present in the matlab-pool templates that perform special operations on pvc mounts.
Rather than fromMountPath: /pvcshared/home/subjectsubjectId/, it should be fromMountPath: /pvcshared/home/johnDoe/
Has anyone had trouble mounting EFS PVC's with MOS on EKS?
1 Kommentar
Abhishek
am 1 Sep. 2025
Antworten (1)
Abhishek
am 3 Sep. 2025
Bearbeitet: Abhishek
am 4 Sep. 2025
I understand the issue you are facing with EFS persistent volume mounting in MATLAB Online Server (MOS) on EKS. Actually, the problem is with variable interpolation in the deployment templates, where placeholders like“${subject.subjectId}”are not being properly replaced with the actual values.
You should try the following to avoid the issue:
- Modify your storage profile configuration: Try updating the“matlab-pool.yaml”file in theoverrides “/<cluster-name>/<namespace-name>/”directory with more explicit configuration
…
uid: "${subject.uid}"
gid: "${subject.uid}"
resolvePlaceholders: true % Add this to ensure proper path resolution
…
- Verify EFS CSI driver configuration: Ensure the EFS CSI driver is properly installed and configured using the following command:
kubectl get csidriver
And check that the EFS volume is properly accessible. This can be checked using the following command:
kubectl describe pv pvc-example-efs-eks
For further reference, you can refer to the official MATLAB documentation for more information:
- EFS PVC Storage Profile: https://mathworks.com/help/releases/R2024b/matlab-online-server/admin/configure-matlab-storage.html#mw_b8f121fb-09e3-4bb9-b944-6f48a68d4246
- Persistent Volume Claim (PVC): https://mathworks.com/help/releases/R2024b/matlab-online-server/admin/configure-matlab-storage.html#mw_ea965e53-d2b4-4041-8fdf-f4da05b64744
I hope this helps.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Troubleshooting finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!