Polyaxon allows users to manage all logs generated by jobs, builds, and experiments containers in NFS.


This guide shows how to use an NFS server to mount a volume to collect logs of your jobs and experiments.

This guide uses the click-to-deploy single-node file server on Google Cloud Platform to create a ZFS file server running on a single Google Compute Engine instance, but the same principle applies to an NFS server running on any platform.

Create a Single Node Filer

Using click-to-deploy single-node file server, you need to create a filer: polyaxon-nfs, and keep the default value data, and check enable NFS sharing. You can set the storage to 50GB for example.

Create a folder for hosting your logs

Use ssh to create a folder for your logs plx-logs under /data:

gcloud --project "polyaxon-test" compute ssh --ssh-flag=-L3000:localhost:3000 --zone=us-central1-b polyaxon-nfs-vm
cd /data
mkdir -m 777 plx-logs

Get the ip address of the filer

gcloud --project "polyaxon-test" compute instances describe polyaxon-nfs-vm --zone=us-central1-b --format='value(networkInterfaces[0].networkIP)'

You might need to use the correct project name and zone.

Create a PVC with the correct ip addresses

Create logs-pvc.yml containing the following PVS definition:

apiVersion: v1
kind: PersistentVolume
  name: polyaxon-pv-logs
    storage: 45Gi
    - ReadWriteMany
    server:  # Use the right IP
    path: "/data/plx-logs"
    namespace: polyaxon
    name: polyaxon-pvc-logs
kind: PersistentVolumeClaim
apiVersion: v1
  name: polyaxon-pvc-logs
    - ReadWriteMany
      storage: 45Gi

Use kubectl to create the PVC based on the nfs server

Under the same namespace where you are deploying Polyaxon, e.g. polyaxon, create the PVC using kubectl

kubectl create -f logs-pvc.yml -n polyaxon

Now you can use this PVC to mount the logs volume to your experiments and jobs in Polyaxon

  existingClaim: polyaxon-pvc-logs
  mountPath: /plx-logs