Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Manual mount volume
    Persistence: manually add the volume part in deployment, NFS mode
    Code Block
    titleManual mount volume
  2. spec:
  3.  containers:
  4.  
  5. - image: hub.baidubce.com/duanshuaixing/tools:v3
  6.  
  7. imagePullPolicy: IfNotPresent
  8.  
  9. name: test-volume
  10.  
  11. resources: {}
  12.  
  13. terminationMessagePath: /dev/termination-log
  14.  terminationMessagePolicy: File
  15.  volumeMounts:
  16.  
  17. - mountPath: /root/
  18.  
  19. name: nfs-test
  20.  
  21. dnsPolicy: ClusterFirst
  22.  restartPolicy: Always
  23.  
  24. schedulerName: default-scheduler
  25.  
  26. securityContext: {}
  27.  
  28. terminationGracePeriodSeconds: 30
  29.  
  30. volumes:
  31.  
  32. - name: nfs-test
  33.  
  34. nfs:
  35.  
  36. path: /dockerdata-nfs/test-volume/
  37.  
  38. server: 10.0.0.7


  39. Restart the node to check the nfs automount

    Restart node and see whether nfs client auto-mounts nfs or not, if not, you should munually mount it.

    df -Th |grep nfs

    sudo mount $MASTER_IP:/dockerdata-nfs /dockerdata-nfs/

  40. Reinstall One ProjectÂ