apiVersion: v1
kind: ReplicationController
metadata:
  name: nfs-test
spec:
  replicas: 1
  selector:
    name: nfs-test
  template:
    metadata:
      labels:
        name: nfs-test
    spec:
      containers:
      - image: busybox
        command:
          - sh
          - -c
          - 'while true; do sleep $(($RANDOM % 5 + 5)); ls -lah /mnt/;  done'
        imagePullPolicy: IfNotPresent
        name: busybox
        volumeMounts:
          # name must match the volume name below
          - name: test-bucket-nfs-server-claim
            mountPath: "/mnt"
      volumes:
      - name: test-bucket-nfs-server-claim
        persistentVolumeClaim:
          claimName: test-bucket-nfs-server-claim