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

40 lines
1.5 KiB

  1. ## SEAWEEDFS - helm chart (2.x)
  2. ### info:
  3. * master/filer/volume are stateful sets with anti-affinity on the hostname,
  4. so your deployment will be spread/HA.
  5. * chart is using memsql(mysql) as the filer backend to enable HA (multiple filer instances)
  6. and backup/HA memsql can provide.
  7. * mysql user/password are created in a k8s secret (secret-seaweedfs-db.yaml) and injected to the filer
  8. with ENV.
  9. * cert config exists and can be enabled, but not been tested.
  10. ### prerequisites
  11. kubernetes node have labels which help to define which node(Host) will run which pod.
  12. s3/filer/master needs the label **sw-backend=true**
  13. volume need the label **sw-volume=true**
  14. to label a node to be able to run all pod types in k8s:
  15. ```
  16. kubectl label node YOUR_NODE_NAME sw-volume=true,sw-backend=true
  17. ```
  18. on production k8s deployment you will want each pod to have a different host,
  19. especially the volume server & the masters, currently all pods (master/volume/filer)
  20. have anti-affinity rule to disallow running multiple pod type on the same host.
  21. if you still want to run multiple pods of the same type (master/volume/filer) on the same host
  22. please set/update the corresponding affinity rule in values.yaml to an empty one:
  23. ```affinity: ""```
  24. ### current instances config (AIO):
  25. 1 instance for each type (master/filer+s3/volume)
  26. you can update the replicas count for each node type in values.yaml,
  27. need to add more nodes with the corresponding labels.
  28. most of the configuration are available through values.yaml