Skip to content

Commit

Permalink
Port-forward directly to k3s
Browse files Browse the repository at this point in the history
  • Loading branch information
mads-hartmann authored and roboquat committed Sep 26, 2022
1 parent cc3033a commit 6c9f601
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ if [[ -z "${VM_NAME:-}" ]]; then
VM_NAME="$(preview-name-from-branch)"
fi

NAMESPACE="preview-${VM_NAME}"

echo "
Starting port-forwarding:
Expand All @@ -35,4 +33,4 @@ pkill -f "kubectl port-forward (.*)9090:9090"
# 2. Deals with process termination. If you ^C this script xargs will kill the underlying
#. processes.
#
echo "3000:3000 9090:9090" | xargs -n 1 -P 2 kubectl port-forward --context=harvester -n "${NAMESPACE}" svc/proxy
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 comments on commit 6c9f601

Please sign in to comment.