deployment-celery-flower.yaml 1.3 KB

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