You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

nginx-example.yaml 1.4 kB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. apiVersion: v1
  2. kind: PersistentVolume
  3. metadata:
  4. name: data-rclone-example
  5. labels:
  6. name: data-rclone-example
  7. spec:
  8. accessModes:
  9. - ReadWriteMany
  10. capacity:
  11. storage: 10Gi
  12. storageClassName: rclone
  13. csi:
  14. driver: csi-rclone
  15. volumeHandle: data-id
  16. volumeAttributes:
  17. remote: "s3"
  18. remotePath: "projectname/pvname"
  19. s3-provider: "Minio"
  20. s3-endpoint: "http://minio.minio:9000"
  21. s3-access-key-id: "ACCESS_KEY_ID"
  22. s3-secret-access-key: "SECRET_ACCESS_KEY"
  23. ---
  24. apiVersion: v1
  25. kind: PersistentVolumeClaim
  26. metadata:
  27. name: data-rclone-example
  28. spec:
  29. accessModes:
  30. - ReadWriteMany
  31. resources:
  32. requests:
  33. storage: 10Gi
  34. storageClassName: rclone
  35. selector:
  36. matchLabels:
  37. name: data-rclone-example
  38. ---
  39. apiVersion: v1
  40. kind: Pod
  41. metadata:
  42. name: nginx-example
  43. labels:
  44. run: nginx-example
  45. spec:
  46. containers:
  47. - image: nginx
  48. imagePullPolicy: Always
  49. name: nginx-example
  50. ports:
  51. - containerPort: 80
  52. protocol: TCP
  53. volumeMounts:
  54. - mountPath: /usr/share/nginx/html
  55. name: data-rclone-example
  56. volumes:
  57. - name: data-rclone-example
  58. persistentVolumeClaim:
  59. claimName: data-rclone-example
  60. ---
  61. apiVersion: v1
  62. kind: Service
  63. metadata:
  64. name: nginx-example
  65. labels:
  66. run: nginx-example
  67. spec:
  68. ports:
  69. - port: 80
  70. protocol: TCP
  71. selector:
  72. run: nginx-example

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。