</syntaxhighlight>
If you want to access to this global dataset, just tip
<syntaxhighlight lang="bash">
> kubectl get pvc
</syntaxhighlight>
If you want to bind your project to this global dataset, please change your '''job-script-pvc.yaml''' like following:
<syntaxhighlight lang="bash">
# list of mount paths within the container which will be
# bound to persistent volumes.
volumeMounts:
# /tmp/data is where mnist.py will download the training data, unless it is
# already there. This is the path where we mount the persistent volume.
# Thus, for the second run of this container, the data will
# not be downloaded again.
- mountPath: "/mnt/dataset_kitti"
# # name of the volume for this path (from the below list)
name: dataset-kitti-user
# login credentials to the docker registry.
# for convenience, a readonly credential is provided as a secret in each namespace.
imagePullSecrets:
- name: registry-ro-login
# containers will never restart
restartPolicy: Never
volumes:
# User-defined name of the persistent volume within this configuration.
# This can be different from the name of the PVC.
- name: dataset-kitti-user
persistentVolumeClaim:
# name of the PVC this volume binds to
claimName: dataset-kitti
</syntaxhighlight>