diff --git a/helm-chart/helm3/6.4.0/skywalking/templates/NOTES.txt b/helm-chart/helm3/6.4.0/skywalking/templates/NOTES.txt index f5378d41639c3ee4e0ad47ebb9cf92295ca263d7..65edc2e0fe761e899ba2abe2975234c4e3e19d7d 100644 --- a/helm-chart/helm3/6.4.0/skywalking/templates/NOTES.txt +++ b/helm-chart/helm3/6.4.0/skywalking/templates/NOTES.txt @@ -4,9 +4,22 @@ Your release is named {{ .Release.Name }}. Learn more, please visit https://skywalking.apache.org/ -{{- if .Values.ui.ingress.enabled }} Get the UI URL by running these commands: +{{- if .Values.ui.ingress.enabled }} {{- range .Values.ui.ingress.hosts }} http{{ if $.Values.ui.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ui.ingress.path }} {{- end }} -{{- end }} +{{- else if contains "NodePort" .Values.ui.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "skywalking.ui.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.ui.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get svc -w {{ include "skywalking.ui.fullname" . }} -n {{ .Release.Namespace }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "skywalking.ui.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + echo http://$SERVICE_IP:{{ .Values.ui.service.externalPort }} +{{- else if contains "ClusterIP" .Values.ui.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "skywalking.name" . }},release={{ .Release.Name }},component={{ .Values.ui.name }}" -o jsonpath="{.items[0].metadata.name}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl port-forward $POD_NAME 8080:{{ .Values.ui.service.internalPort }} +{{- end }} \ No newline at end of file