Manual mount volume
Persistence: manually add the volume part in deployment, NFS mode
Code Block title Manual 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
- 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/
Reinstall One ProjectÂ
Page Comparison
General
Content
Integrations