Bläddra i källkod

HUE-8744 [k8s] Use load balanced Hue address in thenotes if configured

Romain 6 år sedan
förälder
incheckning
4ba812acc7
2 ändrade filer med 12 tillägg och 3 borttagningar
  1. 11 2
      tools/kubernetes/helm/hue/templates/NOTES.txt
  2. 1 1
      tools/kubernetes/helm/hue/values.yaml

+ 11 - 2
tools/kubernetes/helm/hue/templates/NOTES.txt

@@ -13,11 +13,20 @@ Then opening-up:
 
   http://localhost:8888
 
-Or directly running below to get the URL:
 
-  export WEB_HOST=$(kubectl get node -o jsonpath="{.items[0].metadata.name}")
+Or running below commands to get the recommended URL:
+
+{{- if .Values.balancer.enabled -}}
+
+  export WEB_PORT=$(kubectl get service hue-balancer -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
+
+{{- else -}}
+
   export WEB_PORT=$(kubectl get service hue -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
 
+{{- end }}
+
   echo http://$WEB_HOST:$WEB_PORT
 
+
 Happy Querying!

+ 1 - 1
tools/kubernetes/helm/hue/values.yaml

@@ -31,7 +31,7 @@ hue:
     app_blacklist=filebrowser,search,hbase,security,jobbrowser,metastore
     django_debug_mode=true
 
-    use_cherrypy_server=false
+    use_cherrypy_server=true
     gunicorn_work_class=gevent
 
     [[task_server]]