deployment.yaml 866 B

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