瀏覽代碼

HUE-8744 [k8s] Refactoring of the heml chart to offer any ini properties

Romain 6 年之前
父節點
當前提交
6bb5432308

+ 5 - 2
tools/kubernetes/helm/hue/README.md

@@ -11,8 +11,11 @@ View the configuration [values.yaml](values.yaml), edit if needed and run:
 
     helm install hue -n hue
 
+[values.yaml](values.yaml) contains the most important parameters in the `hue` section with for example which database to use. The `ini`
+section let you add any extra [regular parameter](https://docs.gethue.com/latest/administrator/configuration/server/).
 
-And follow-up the instructions printed on the screen for conneting to Hue.
+
+Then follow-up the instructions printed on the screen for getting the URL to connect to Hue.
 
 By default you should see these running containers:
 
@@ -21,6 +24,6 @@ By default you should see these running containers:
     hue-4n2ck                                     1/1       Running   0          3h
     hue-postgres-5jg77                            1/1       Running   0          12d
 
-## Un-install
+## Uninstall
 
     helm delete hue --purge

+ 1 - 0
tools/kubernetes/helm/hue/templates/configmap-hue.yaml

@@ -5,6 +5,7 @@ metadata:
 data:
   hue-ini: |
     [desktop]
+
     [[database]]
     engine={{ .Values.hue.database.engine }}
     host={{ .Values.hue.database.host }}

+ 6 - 0
tools/kubernetes/helm/hue/templates/replicationcontroller-hue.yaml

@@ -19,7 +19,13 @@ spec:
           - 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

+ 18 - 4
tools/kubernetes/helm/hue/values.yaml

@@ -10,10 +10,24 @@ hue:
     password: "hue"
     name: "hue"
   interpreters: |
-    [[[postgresql]]]
-      name = postgresql
-      interface=sqlalchemy
-      options='{"url": "postgresql://hue:hue@hue-database:5432/hue"}'
+    [[[impala]]]
+      name=Impala
+      interface=hiveserver2
+  ini: |
+    [desktop]
+    app_blacklist=filebrowser,oozie,search,hbase,security,jobbrowser,metastore
+
+    [impala]
+    server_host=172.31.114.171
+
+    [dashboard]
+    is_enabled=false
+    has_sql_enabled=false
+
+    [notebook]
+    show_notebooks=false
+
+    [hadoop]
 aws:
   accessKeyId: ""
   secretAccessKey: ""