EKS Deployment of Matlab Online Server does not properly bind EFS PVC

5 visualizaciones (últimos 30 días)
Shane
Shane el 21 de Ag. de 2025
Editada: Abhishek el 4 de Sept. de 2025
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 comentario
Abhishek
Abhishek el 1 de Sept. de 2025
Hi @Shane, could you please post the following?
  1. Your MOS version.
  2. A sanitized copy of your authentication configuration file.
  3. The full YAML of a failing mos-matlab-pool pod from kubectl get pod <pod-name> -o yaml.

Iniciar sesión para comentar.

Respuestas (1)

Abhishek
Abhishek el 3 de Sept. de 2025
Editada: Abhishek el 4 de Sept. de 2025
Hello @Shane,
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 thematlab-pool.yamlfile 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.

Categorías

Más información sobre Troubleshooting en Help Center y File Exchange.

Productos


Versión

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by