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
       spec:
          containers:
          - image: hub.baidubce.com/duanshuaixing/tools:v3
            imagePullPolicy: IfNotPresent
            name: test-volume
            resources: {}
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /root/
              name: nfs-test
          dnsPolicy: ClusterFirst
          restartPolicy: Always
          schedulerName: default-scheduler
          securityContext: {}
          terminationGracePeriodSeconds: 30
          volumes:
          - name: nfs-test
            nfs:
              path: /dockerdata-nfs/test-volume/
              server: 10.0.0.7