Skip to content

Commit

Permalink
fix: port
Browse files Browse the repository at this point in the history
  • Loading branch information
darioAnongba committed Oct 2, 2024
1 parent eb15ef6 commit 83e1107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/dashboard/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "dashboard.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
echo "Visit http://127.0.0.1:3000 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 3000:$CONTAINER_PORT
{{- end }}
2 changes: 1 addition & 1 deletion charts/dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ securityContext:

service:
type: ClusterIP
port: 8080
port: 3000

ingress:
enabled: true
Expand Down

0 comments on commit 83e1107

Please sign in to comment.