deployment-celery-workers.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{- if .Values.workers.enabled -}}
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: celery-worker
  6. labels:
  7. deployment: celery-worker
  8. spec:
  9. replicas: {{ .Values.workers.replicas }}
  10. selector:
  11. matchLabels:
  12. pod: celery-worker
  13. template:
  14. metadata:
  15. labels:
  16. pod: celery-worker
  17. annotations:
  18. checksum/config: {{ include (print $.Template.BasePath "/configmap-hue-extra.yaml") . | sha256sum }}
  19. spec:
  20. containers:
  21. - name: celery-worker
  22. image: {{ .Values.image.registry }}/hue:{{ .Values.image.tag }}
  23. imagePullPolicy: {{ .Values.image.pullPolicy }}
  24. command: ['./build/env/bin/hue', 'runcelery', 'worker', '--loglevel', 'info']
  25. resources:
  26. requests:
  27. # memory: "400Mi"
  28. cpu: "50m"
  29. volumeMounts:
  30. - name: config-volume
  31. mountPath: /usr/share/hue/desktop/conf/z-hue.ini
  32. subPath: hue-ini
  33. - name: config-volume-extra
  34. mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
  35. subPath: hue-ini
  36. volumes:
  37. - name: config-volume
  38. configMap:
  39. name: hue-config
  40. - name: config-volume-extra
  41. configMap:
  42. name: hue-config-extra
  43. {{- end -}}