Skip to content

Commit 6c9f601

Browse files
mads-hartmannroboquat
authored andcommitted
Port-forward directly to k3s
1 parent cc3033a commit 6c9f601

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dev/preview/util/portforward-monitoring-satellite-harvester.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ if [[ -z "${VM_NAME:-}" ]]; then
1111
VM_NAME="$(preview-name-from-branch)"
1212
fi
1313

14-
NAMESPACE="preview-${VM_NAME}"
15-
1614
echo "
1715
Starting port-forwarding:
1816
@@ -35,4 +33,4 @@ pkill -f "kubectl port-forward (.*)9090:9090"
3533
# 2. Deals with process termination. If you ^C this script xargs will kill the underlying
3634
#. processes.
3735
#
38-
echo "3000:3000 9090:9090" | xargs -n 1 -P 2 kubectl port-forward --context=harvester -n "${NAMESPACE}" svc/proxy
36+
echo "svc/grafana 3000:3000 svc/prometheus-k8s 9090:9090" | xargs -n 2 -P 2 kubectl port-forward --context="$VM_NAME" -n "monitoring-satellite"

0 commit comments

Comments
 (0)