values.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # FIXME: Update tags once a stable version is released
  2. ocrImage:
  3. repository: dadoonet/fscrawler
  4. pullPolicy: IfNotPresent
  5. tag: 2.10-SNAPSHOT-ocr-es7
  6. noocrImage:
  7. repository: dadoonet/fscrawler
  8. pullPolicy: IfNotPresent
  9. tag: 2.10-SNAPSHOT-noocr
  10. resources:
  11. limits:
  12. cpu: 4000m
  13. memory: 8Gi
  14. fscrawlerConfig:
  15. imageSelector: ocrImage
  16. jobName: ''
  17. restart: false
  18. loop: -1
  19. additionalEnvs: []
  20. fscrawlerNetwork:
  21. hostNetwork: false
  22. enableRestApiService: false
  23. restPort: 30084
  24. fscrawlerStorage:
  25. jobs:
  26. type: ixVolume
  27. datasetName: jobs
  28. additionalStorages: []
  29. notes:
  30. custom: |
  31. ## FSCrawler
  32. {{- $path := (printf "/root/.fscrawler/%s/_settings.yaml (Inside the container)" .Values.fscrawlerConfig.jobName) -}}
  33. {{- if eq .Values.fscrawlerStorage.jobs.type "hostPath" -}}
  34. {{- $path = (printf "%s/%s/_settings.yaml" .Values.fscrawlerStorage.jobs.hostPath .Values.fscrawlerConfig.jobName) -}}
  35. {{- end }}
  36. You have to manually Edit/Create the job file at the path:
  37. ```shell
  38. {{ $path }}
  39. ```
  40. Until a valid job file is created, the FSCrawler container be in the Deploying state.
  41. A stop and start of the container will be required after the job file is created.
  42. {{- if .Values.fscrawlerNetwork.enableRestApiService }}
  43. Rest API Service is enabled. You have to include the following configuration in your job file:
  44. ```yaml
  45. # Your _settings.yaml file
  46. name: {{ .Values.fscrawlerConfig.jobName | quote }}
  47. rest:
  48. url: http://0.0.0.0:{{ .Values.fscrawlerNetwork.restPort }}/fscrawler
  49. # Optionally
  50. # enable_cors: true/false
  51. # ...other settings of the job file...
  52. ```
  53. {{- end }}