@@ -0,0 +1,37 @@
+{{- if .Values.scheduler.enabled -}}
+apiVersion: apps/v1beta2
+kind: Deployment
+metadata:
+ name: celery-beat
+ labels:
+ deployment: celery-beat
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ pod: celery-beat
+ template:
+ metadata:
+ spec:
+ containers:
+ - name: celery-beat
+ image: {{ .Values.registry }}/hue:{{ .Values.tag }}
+ imagePullPolicy: Always
+ command: ['./build/env/bin/celery', 'beat', '-A', 'desktop', '-l', 'info']
+ 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
+ volumes:
+ configMap:
+ name: hue-config
+ name: hue-config-extra
+{{- end -}}
@@ -16,7 +16,11 @@ hue:
[[[mysql]]]
name = MySQL
interface=sqlalchemy
- options='{"url": "mysql://hue:datasshue@10.1.1.1:3306/hue"}'
+ options='{"url": "mysql://hue:datasshue@romain:3306/hue"}'
+ [[[postgresql]]]
+ name = postgresql
+ interface=sqlalchemy
+ options='{"url": "postgresql://hue:hue@hue-postgres:30445/hue"}'
ini: |
[desktop]
app_blacklist=filebrowser,search,hbase,security,jobbrowser,metastore
@@ -42,6 +46,8 @@ balancer:
workers:
enabled: true
replicas: 1
+scheduler:
+ enabled: true
aws:
accessKeyId: ""
secretAccessKey: ""