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.

rclone-agent.yaml.template 1.5 kB

1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apiVersion: v1
  2. kind: PersistentVolumeClaim
  3. metadata:
  4. name: rclone-{{NODE_NAME}}
  5. spec:
  6. accessModes:
  7. - ReadWriteMany
  8. storageClassName: rclone
  9. resources:
  10. requests:
  11. storage: 10Gi
  12. selector:
  13. matchLabels:
  14. name: rclone-{{NODE_NAME}}
  15. ---
  16. apiVersion: apps/v1
  17. kind: DaemonSet
  18. metadata:
  19. labels:
  20. app: agent-{{NODE_NAME}}
  21. name: agent-{{NODE_NAME}}
  22. namespace: default
  23. spec:
  24. selector:
  25. matchLabels:
  26. app: agent-{{NODE_NAME}}
  27. template:
  28. metadata:
  29. labels:
  30. app: agent-{{NODE_NAME}}
  31. spec:
  32. containers:
  33. - name: agentservice
  34. image: {{IMAGE_REGISTRY_ADDRESS}}/agentservice-arm64:latest
  35. imagePullPolicy: Always
  36. #command: ["tail","-f","/etc/hosts"]
  37. ports:
  38. - containerPort: 5010
  39. protocol: TCP
  40. volumeMounts:
  41. - name: agentconfig
  42. mountPath: /opt/confs
  43. - name: rclone-pvc
  44. mountPath: /opt/storage
  45. volumes:
  46. - name: agentconfig
  47. configMap:
  48. name: agent-{{NODE_NAME}}-config
  49. - name: rclone-pvc
  50. persistentVolumeClaim:
  51. claimName: rclone-{{NODE_NAME}}
  52. dnsPolicy: Default
  53. nodeSelector:
  54. nodetype: {{NODE_NAME}}
  55. restartPolicy: Always
  56. ---
  57. apiVersion: v1
  58. kind: Service
  59. metadata:
  60. labels:
  61. app: agent-{{NODE_NAME}}
  62. name: agent-{{NODE_NAME}}
  63. namespace: default
  64. spec:
  65. ports:
  66. - port: 5010
  67. protocol: TCP
  68. targetPort: 5010
  69. nodePort: {{NODE_PORT}}
  70. selector:
  71. app: agent-{{NODE_NAME}}
  72. type: NodePort

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