소스 검색

HUE-8744 [k8s] Also add ingress and ssl Hue address in the notes if configured

Romain 6 년 전
부모
커밋
b01c78b421
1개의 변경된 파일16개의 추가작업 그리고 4개의 파일을 삭제
  1. 16 4
      tools/kubernetes/helm/hue/templates/NOTES.txt

+ 16 - 4
tools/kubernetes/helm/hue/templates/NOTES.txt

@@ -16,17 +16,29 @@ Then opening-up:
 
 Or running below commands to get the recommended URL:
 
-{{- if .Values.balancer.enabled -}}
+  export WEB_HOST=$(kubectl get node -o jsonpath="{.items[0].metadata.name}")
+
+{{ if and .Values.ingress.create (eq .Values.ingress.type "nginx") }}
+
+  echo http://$WEB_HOST
+
+{{ else if and .Values.ingress.create (eq .Values.ingress.type "nginx-ssl") }}
+
+  echo https://$WEB_HOST
+
+{{ else if .Values.balancer.enabled }}
 
   export WEB_PORT=$(kubectl get service hue-balancer -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
 
-{{- else -}}
+  echo http://$WEB_HOST:$WEB_PORT
 
-  export WEB_PORT=$(kubectl get service hue -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
+{{ else }}
 
-{{- end }}
+  export WEB_PORT=$(kubectl get service hue -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
 
   echo http://$WEB_HOST:$WEB_PORT
 
+{{ end }}
+
 
 Happy Querying!