video-iac/scripts/loki-port-forward.sh

9 lines
316 B
Bash
Raw Permalink Normal View History

2025-12-13 20:53:22 +00:00
#!/bin/bash
# Port forward Loki service to localhost:3101
# Usage: ./scripts/loki-port-forward.sh
# Keep this running in a separate terminal.
# Once running, you can use ./scripts/loki-query.sh to inspect logs.
echo "Port forwarding Loki to http://localhost:3101..."
kubectl -n loki port-forward svc/loki 3101:3100