You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/11/01 06:44:15 UTC
[skywalking-kubernetes] branch master updated: modify notes.txt
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 921a22a modify notes.txt
new 0f67fa8 Merge pull request #23 from innerpeacez/modify-notes
921a22a is described below
commit 921a22a715666f1e64854ae1cf6920185e7bcf46
Author: innerpeacez <in...@gmail.com>
AuthorDate: Fri Nov 1 14:37:05 2019 +0800
modify notes.txt
---
helm-chart/helm3/6.4.0/skywalking/templates/NOTES.txt | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
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 f5378d4..65edc2e 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