| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- {{- if .Values.workers.enabled -}}
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: celery-worker
- labels:
- deployment: celery-worker
- spec:
- replicas: {{ .Values.workers.replicas }}
- selector:
- matchLabels:
- pod: celery-worker
- template:
- metadata:
- labels:
- pod: celery-worker
- annotations:
- checksum/config: {{ include (print $.Template.BasePath "/configmap-hue-extra.yaml") . | sha256sum }}
- spec:
- containers:
- - name: celery-worker
- image: {{ .Values.image.registry }}/hue:{{ .Values.image.tag }}
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- command: ['./build/env/bin/hue', 'runcelery', 'worker', '--loglevel', 'info']
- resources:
- requests:
- # memory: "400Mi"
- cpu: "50m"
- volumeMounts:
- - name: config-volume
- mountPath: /usr/share/hue/desktop/conf/z-hue.ini
- subPath: hue-ini
- - name: config-volume-extra
- mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
- subPath: hue-ini
- volumes:
- - name: config-volume
- configMap:
- name: hue-config
- - name: config-volume-extra
- configMap:
- name: hue-config-extra
- {{- end -}}
|