This is an automated email from the ASF dual-hosted git repository.

innerpeacez 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 266b011  Improve notes.txt (#67)
266b011 is described below

commit 266b0112cedf0ea278a6932195b1abc3c5cf5e78
Author: Shiwen Cheng <chengshiwen0...@gmail.com>
AuthorDate: Thu Apr 15 15:08:15 2021 +0800

    Improve notes.txt (#67)
    
    Co-authored-by: innerpeacez <innerpeace.z...@gmail.com>
---
 chart/skywalking/templates/NOTES.txt | 3 +--
 chart/skywalking/values.yaml         | 4 ++++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/chart/skywalking/templates/NOTES.txt 
b/chart/skywalking/templates/NOTES.txt
index 38bdc2f..87304ff 100644
--- a/chart/skywalking/templates/NOTES.txt
+++ b/chart/skywalking/templates/NOTES.txt
@@ -42,9 +42,8 @@ Get the UI URL by running these commands:
   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 }} 
--namespace {{ .Release.Namespace }}
+  kubectl port-forward svc/{{ include "skywalking.ui.fullname" . }} 8080:{{ 
.Values.ui.service.externalPort }} --namespace {{ .Release.Namespace }}
 {{- end }}
 
 {{- if.Values.elasticsearch.enabled }}
diff --git a/chart/skywalking/values.yaml b/chart/skywalking/values.yaml
index 9e314f9..4a36230 100644
--- a/chart/skywalking/values.yaml
+++ b/chart/skywalking/values.yaml
@@ -97,6 +97,10 @@ ui:
     # clusterIP: None
     externalPort: 80
     internalPort: 8080
+    ## nodePort is the port on each node on which this service is exposed when 
type=NodePort
+    ## Default: auto-allocated port if not specified. 30080 is just an example
+    ##
+    # nodePort: 30080
     ## External IP addresses of service
     ## Default: nil
     ##

Reply via email to