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.

48 lines
1.8 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. ### PVC - storage class ###
  25. on the volume stateful set added support for K8S PVC, currently example
  26. with the simple local-path-provisioner from Rancher (comes included with k3d / k3s)
  27. https://github.com/rancher/local-path-provisioner
  28. you can use ANY storage class you like, just update the correct storage-class
  29. for your deployment.
  30. ### current instances config (AIO):
  31. 1 instance for each type (master/filer+s3/volume)
  32. you can update the replicas count for each node type in values.yaml,
  33. need to add more nodes with the corresponding labels.
  34. most of the configuration are available through values.yaml