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.

415 lines
12 KiB

3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. # Available parameters and their default values for the SeaweedFS chart.
  2. global:
  3. registry: ""
  4. repository: ""
  5. imageName: chrislusf/seaweedfs
  6. imagePullPolicy: IfNotPresent
  7. imagePullSecrets: imagepullsecret
  8. restartPolicy: Always
  9. loggingLevel: 1
  10. enableSecurity: false
  11. monitoring:
  12. enabled: false
  13. gatewayHost: null
  14. gatewayPort: null
  15. # if enabled will use global.replicationPlacment and override master & filer defaultReplicaPlacement config
  16. enableReplication: false
  17. # replication type is XYZ:
  18. # X number of replica in other data centers
  19. # Y number of replica in other racks in the same data center
  20. # Z number of replica in other servers in the same rack
  21. replicationPlacment: "001"
  22. extraEnvironmentVars:
  23. WEED_CLUSTER_DEFAULT: "sw"
  24. WEED_CLUSTER_SW_MASTER: "seaweedfs-master:9333"
  25. WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client:8888"
  26. image:
  27. registry: ""
  28. repository: ""
  29. master:
  30. enabled: true
  31. repository: null
  32. imageName: null
  33. imageTag: null
  34. imageOverride: null
  35. restartPolicy: null
  36. replicas: 1
  37. port: 9333
  38. grpcPort: 19333
  39. ipBind: "0.0.0.0"
  40. volumePreallocate: false
  41. #Master stops directing writes to oversized volumes
  42. volumeSizeLimitMB: 30000
  43. loggingOverrideLevel: null
  44. #number of seconds between heartbeats, default 5
  45. pulseSeconds: null
  46. #threshold to vacuum and reclaim spaces, default 0.3 (30%)
  47. garbageThreshold: null
  48. #Prometheus push interval in seconds, default 15
  49. metricsIntervalSec: 15
  50. # replication type is XYZ:
  51. # X number of replica in other data centers
  52. # Y number of replica in other racks in the same data center
  53. # Z number of replica in other servers in the same rack
  54. defaultReplication: "000"
  55. # Disable http request, only gRpc operations are allowed
  56. disableHttp: false
  57. extraVolumes: ""
  58. extraVolumeMounts: ""
  59. # storage and storageClass are the settings for configuring stateful
  60. # storage for the master pods. storage should be set to the disk size of
  61. # the attached volume. storageClass is the class of storage which defaults
  62. # to null (the Kube cluster will pick the default).
  63. storage: 25Gi
  64. storageClass: null
  65. # Resource requests, limits, etc. for the master cluster placement. This
  66. # should map directly to the value of the resources field for a PodSpec,
  67. # formatted as a multi-line string. By default no direct resource request
  68. # is made.
  69. resources: null
  70. # updatePartition is used to control a careful rolling update of SeaweedFS
  71. # masters.
  72. updatePartition: 0
  73. # Affinity Settings
  74. # Commenting out or setting as empty the affinity variable, will allow
  75. # deployment to single node services such as Minikube
  76. affinity: |
  77. podAntiAffinity:
  78. requiredDuringSchedulingIgnoredDuringExecution:
  79. - labelSelector:
  80. matchLabels:
  81. app: {{ template "seaweedfs.name" . }}
  82. release: "{{ .Release.Name }}"
  83. component: master
  84. topologyKey: kubernetes.io/hostname
  85. # Toleration Settings for master pods
  86. # This should be a multi-line string matching the Toleration array
  87. # in a PodSpec.
  88. tolerations: ""
  89. # nodeSelector labels for master pod assignment, formatted as a muli-line string.
  90. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
  91. # Example:
  92. # nodeSelector: |
  93. # beta.kubernetes.io/arch: amd64
  94. nodeSelector: |
  95. sw-backend: "true"
  96. # used to assign priority to master pods
  97. # ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
  98. priorityClassName: ""
  99. extraEnvironmentVars:
  100. WEED_MASTER_VOLUME_GROWTH_COPY_1: 7
  101. WEED_MASTER_VOLUME_GROWTH_COPY_2: 6
  102. WEED_MASTER_VOLUME_GROWTH_COPY_3: 3
  103. WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
  104. volume:
  105. enabled: true
  106. repository: null
  107. imageName: null
  108. imageTag: null
  109. imageOverride: null
  110. restartPolicy: null
  111. port: 8080
  112. grpcPort: 18080
  113. metricsPort: 9327
  114. ipBind: "0.0.0.0"
  115. replicas: 1
  116. loggingOverrideLevel: null
  117. # number of seconds between heartbeats, must be smaller than or equal to the master's setting
  118. pulseSeconds: null
  119. # Choose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance., default memory
  120. index: null
  121. # limit file size to avoid out of memory, default 256mb
  122. fileSizeLimitMB: null
  123. # minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly
  124. minFreeSpacePercent: 7
  125. # can use ANY storage-class , example with local-path-provisner
  126. # data:
  127. # type: "persistentVolumeClaim"
  128. # size: "24Ti"
  129. # storageClass: "local-path-provisioner"
  130. data:
  131. type: "hostPath"
  132. size: ""
  133. storageClass: ""
  134. idx:
  135. type: "hostPath"
  136. size: ""
  137. storageClass: ""
  138. logs:
  139. type: "hostPath"
  140. size: ""
  141. storageClass: ""
  142. # limit background compaction or copying speed in mega bytes per second
  143. compactionMBps: "50"
  144. # Directories to store data files. dir[,dir]... (default "/tmp")
  145. dir: "/data"
  146. # Directories to store index files. dir[,dir]... (default is the same as "dir")
  147. dir_idx: null
  148. # Maximum numbers of volumes, count[,count]...
  149. # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
  150. maxVolumes: "0"
  151. # Volume server's rack name
  152. rack: null
  153. # Volume server's data center name
  154. dataCenter: null
  155. # Redirect moved or non-local volumes. (default proxy)
  156. readMode: proxy
  157. # Comma separated Ip addresses having write permission. No limit if empty.
  158. whiteList: null
  159. # Adjust jpg orientation when uploading.
  160. imagesFixOrientation: false
  161. extraVolumes: ""
  162. extraVolumeMounts: ""
  163. # Affinity Settings
  164. # Commenting out or setting as empty the affinity variable, will allow
  165. # deployment to single node services such as Minikube
  166. affinity: |
  167. podAntiAffinity:
  168. requiredDuringSchedulingIgnoredDuringExecution:
  169. - labelSelector:
  170. matchLabels:
  171. app: {{ template "seaweedfs.name" . }}
  172. release: "{{ .Release.Name }}"
  173. component: volume
  174. topologyKey: kubernetes.io/hostname
  175. # Resource requests, limits, etc. for the server cluster placement. This
  176. # should map directly to the value of the resources field for a PodSpec,
  177. # formatted as a multi-line string. By default no direct resource request
  178. # is made.
  179. resources: null
  180. # Toleration Settings for server pods
  181. # This should be a multi-line string matching the Toleration array
  182. # in a PodSpec.
  183. tolerations: ""
  184. # nodeSelector labels for server pod assignment, formatted as a muli-line string.
  185. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
  186. # Example:
  187. # nodeSelector: |
  188. # beta.kubernetes.io/arch: amd64
  189. nodeSelector: |
  190. sw-volume: "true"
  191. # used to assign priority to server pods
  192. # ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
  193. priorityClassName: ""
  194. filer:
  195. enabled: true
  196. repository: null
  197. imageName: null
  198. imageTag: null
  199. imageOverride: null
  200. restartPolicy: null
  201. replicas: 1
  202. port: 8888
  203. grpcPort: 18888
  204. metricsPort: 9327
  205. loggingOverrideLevel: null
  206. # replication type is XYZ:
  207. # X number of replica in other data centers
  208. # Y number of replica in other racks in the same data center
  209. # Z number of replica in other servers in the same rack
  210. defaultReplicaPlacement: "000"
  211. # turn off directory listing
  212. disableDirListing: false
  213. # split files larger than the limit, default 32
  214. maxMB: null
  215. # encrypt data on volume servers
  216. encryptVolumeData: false
  217. # Whether proxy or redirect to volume server during file GET request
  218. redirectOnRead: false
  219. # Limit sub dir listing size (default 100000)
  220. dirListLimit: 100000
  221. # Turn off directory listing
  222. disableDirListing: false
  223. # Disable http request, only gRpc operations are allowed
  224. disableHttp: false
  225. # storage and storageClass are the settings for configuring stateful
  226. # storage for the master pods. storage should be set to the disk size of
  227. # the attached volume. storageClass is the class of storage which defaults
  228. # to null (the Kube cluster will pick the default).
  229. storage: 25Gi
  230. storageClass: null
  231. extraVolumes: ""
  232. extraVolumeMounts: ""
  233. # Affinity Settings
  234. # Commenting out or setting as empty the affinity variable, will allow
  235. # deployment to single node services such as Minikube
  236. affinity: |
  237. podAntiAffinity:
  238. requiredDuringSchedulingIgnoredDuringExecution:
  239. - labelSelector:
  240. matchLabels:
  241. app: {{ template "seaweedfs.name" . }}
  242. release: "{{ .Release.Name }}"
  243. component: filer
  244. topologyKey: kubernetes.io/hostname
  245. # updatePartition is used to control a careful rolling update of SeaweedFS
  246. # masters.
  247. updatePartition: 0
  248. # Resource requests, limits, etc. for the server cluster placement. This
  249. # should map directly to the value of the resources field for a PodSpec,
  250. # formatted as a multi-line string. By default no direct resource request
  251. # is made.
  252. resources: null
  253. # Toleration Settings for server pods
  254. # This should be a multi-line string matching the Toleration array
  255. # in a PodSpec.
  256. tolerations: ""
  257. # nodeSelector labels for server pod assignment, formatted as a muli-line string.
  258. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
  259. # Example:
  260. # nodeSelector: |
  261. # beta.kubernetes.io/arch: amd64
  262. nodeSelector: |
  263. sw-backend: "true"
  264. # used to assign priority to server pods
  265. # ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
  266. priorityClassName: ""
  267. # extraEnvVars is a list of extra enviroment variables to set with the stateful set.
  268. extraEnvironmentVars:
  269. WEED_MYSQL_ENABLED: "true"
  270. WEED_MYSQL_HOSTNAME: "mysql-db-host"
  271. WEED_MYSQL_PORT: "3306"
  272. WEED_MYSQL_DATABASE: "sw_database"
  273. WEED_MYSQL_CONNECTION_MAX_IDLE: "5"
  274. WEED_MYSQL_CONNECTION_MAX_OPEN: "75"
  275. # "refresh" connection every 10 minutes, eliminating mysql closing "old" connections
  276. WEED_MYSQL_CONNECTION_MAX_LIFETIME_SECONDS: "600"
  277. # enable usage of memsql as filer backend
  278. WEED_MYSQL_INTERPOLATEPARAMS: "true"
  279. WEED_LEVELDB2_ENABLED: "false"
  280. # with http DELETE, by default the filer would check whether a folder is empty.
  281. # recursive_delete will delete all sub folders and files, similar to "rm -Rf"
  282. WEED_FILER_OPTIONS_RECURSIVE_DELETE: "false"
  283. # directories under this folder will be automatically creating a separate bucket
  284. WEED_FILER_BUCKETS_FOLDER: "/buckets"
  285. s3:
  286. enabled: true
  287. port: 8333
  288. #allow empty folders
  289. allowEmptyFolder: false
  290. # Suffix of the host name, {bucket}.{domainName}
  291. domainName: ""
  292. # enable user & permission to s3 (need to inject to all services)
  293. enableAuth: false
  294. skipAuthSecretCreation: false
  295. s3:
  296. enabled: false
  297. repository: null
  298. imageName: null
  299. imageTag: null
  300. restartPolicy: null
  301. replicas: 1
  302. port: 8333
  303. metricsPort: 9327
  304. loggingOverrideLevel: null
  305. #allow empty folders
  306. allowEmptyFolder: true
  307. # enable user & permission to s3 (need to inject to all services)
  308. enableAuth: false
  309. skipAuthSecretCreation: false
  310. # Suffix of the host name, {bucket}.{domainName}
  311. domainName: ""
  312. extraVolumes: ""
  313. extraVolumeMounts: ""
  314. # Resource requests, limits, etc. for the server cluster placement. This
  315. # should map directly to the value of the resources field for a PodSpec,
  316. # formatted as a multi-line string. By default no direct resource request
  317. # is made.
  318. resources: null
  319. # Toleration Settings for server pods
  320. # This should be a multi-line string matching the Toleration array
  321. # in a PodSpec.
  322. tolerations: ""
  323. # nodeSelector labels for server pod assignment, formatted as a muli-line string.
  324. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
  325. # Example:
  326. # nodeSelector: |
  327. # beta.kubernetes.io/arch: amd64
  328. nodeSelector: |
  329. sw-backend: "true"
  330. # used to assign priority to server pods
  331. # ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
  332. priorityClassName: ""
  333. logs:
  334. type: "hostPath"
  335. size: ""
  336. storageClass: ""
  337. cronjob:
  338. enabled: true
  339. master: "seaweedfs-master:9333"
  340. filer: "seaweedfs-filer-client:8888"
  341. tolerations: ""
  342. nodeSelector: |
  343. sw-backend: "true"
  344. replication:
  345. enable: true
  346. collectionPattern: ""
  347. schedule: "*/7 * * * *"
  348. resources: null
  349. # balance all volumes among volume servers
  350. # ALL|EACH_COLLECTION|<collection_name>
  351. collection: ""
  352. certificates:
  353. commonName: "SeaweedFS CA"
  354. ipAddresses: []
  355. keyAlgorithm: rsa
  356. keySize: 2048
  357. duration: 2160h # 90d
  358. renewBefore: 360h # 15d