Skip to content

Commit c50d675

Browse files
huw0nineinchnick
authored andcommitted
Simplify port-forward command in Trino NOTES
1 parent 71423c0 commit c50d675

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: charts/trino/templates/NOTES.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Get the application URL by running these commands:
44
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
55
echo http://$NODE_IP:$NODE_PORT
66
{{- else if contains "ClusterIP" .Values.service.type }}
7-
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} --selector "app.kubernetes.io/name={{ template "trino.name" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=coordinator" --output name)
7+
kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ template "trino.fullname" . }} 8080:{{ .Values.service.port }}
88
echo "Visit http://127.0.0.1:8080 to use your application"
9-
kubectl port-forward $POD_NAME 8080:8080
109
{{- end }}

0 commit comments

Comments
 (0)