Set up on Ubuntu Link and make sure to grant NFS Share Access to your Kubernetes cluster.
kind: ConfigMap
apiVersion: v1
metadata:
name: mount-config
namespace: azureml
data:
mounts.yaml: |
mountPoints:
- mountPath: /nfs_share
mountType: nfs
name: nfs-name
path: /path/to/shared-folder
server: nfs-server.domain-name.comkubectl apply -f mount-config.yaml
mountPath: defines the path that the NFS volume will be mounted into inside your jobmountType: must benfsname: arbitrary symbolic name for your mount. If you define multiple mounts then this must be unique per mountpath: path (on the server) to the folder you want to mountserver: NFS server address
Multiple NFS mounts may be defined under mountPoints
The rest of the mount-config.yaml file must be exactly as above
All jobs will look for the 'mount-config' ConfigMap. If this ConfigMap is missing or malformed then no mounts will be applied.