nfs-deployment.yaml 836 B

123456789101112131415161718192021222324252627282930313233
  1. kind: Deployment
  2. apiVersion: extensions/v1beta1
  3. metadata:
  4. name: nfs-client-provisioner
  5. spec:
  6. replicas: 1
  7. strategy:
  8. type: Recreate
  9. template:
  10. metadata:
  11. labels:
  12. app: nfs-client-provisioner
  13. spec:
  14. serviceAccountName: nfs-client-provisioner
  15. containers:
  16. - name: nfs-client-provisioner
  17. image: quay.io/external_storage/nfs-client-provisioner:latest
  18. volumeMounts:
  19. - name: nfs-client-root
  20. mountPath: /persistentvolumes
  21. env:
  22. - name: PROVISIONER_NAME
  23. value: fuseim.pri/ifs
  24. - name: NFS_SERVER
  25. value: 10.0.0.1
  26. - name: NFS_PATH
  27. value: /work/k8s
  28. volumes:
  29. - name: nfs-client-root
  30. nfs:
  31. server: 10.0.0.1
  32. path: /work/k8s