k8s volumes

 

 NFS:

apiVersion: v1
kind: Pod
metadata:
  name: test-pd
spec:
  containers:
  - image: registry.k8s.io/test-webserver
    name: test-container
    volumeMounts:
    - mountPath: /my-nfs-data
      name: test-volume
  volumes:
  - name: test-volume
    nfs:
      server: my-nfs-server.example.com
      path: /my-nfs-volume
      readOnly: true

https://www.jianshu.com/p/8236cb452bcf

 

https://www.jianshu.com/p/8236cb452bcf

posted @ 2022-11-23 22:10  i舒  阅读(24)  评论(0编辑  收藏  举报