apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: app: testnfs name: testnfs spec: replicas: 2 selector: matchLabels: app: testnfs strategy: {} template: metadata: creationTimestamp: null labels: app: testnfs spec: containers: - image: alpine name: alpine command: - /bin/sleep - 999d volumeMounts: - mountPath: /nfs-data name: nfs-volume volumes: - name: nfs-volume nfs: server: 192.168.208.99 path: /nfs/nfs1
标签:name,app,testnfs,ks8,nfs,volumes,pod From: https://www.cnblogs.com/jinzhenshui/p/16827731.html