From 6a166b8ac087a98a7b6c156fca6d754995f0dbd0 Mon Sep 17 00:00:00 2001 From: Reditus Date: Thu, 14 May 2026 05:36:55 +0100 Subject: [PATCH] fix: use sudo for kubectl port-forward commands --- start.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.ps1 b/start.ps1 index a404974..25e958b 100644 --- a/start.ps1 +++ b/start.ps1 @@ -176,7 +176,7 @@ if ($pfCheck) { } $RemotePort = 15432 -$remoteCmd = 'nohup kubectl port-forward -n ' + $Namespace + ' svc/' + $DBService + ' ' + $LocalPort + ':' + $RemotePort + ' > /tmp/pf.log 2>&1 &' +$remoteCmd = 'nohup sudo kubectl port-forward -n ' + $Namespace + ' svc/' + $DBService + ' ' + $LocalPort + ':' + $RemotePort + ' > /tmp/pf.log 2>&1 &' $remoteCmdEscaped = $remoteCmd -replace '&', '`&' $pfRemote = 'ssh -i "' + $SSHKey + '" -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=30 ' + $SSHUser + '@' + $ServerHost + ' "' + $remoteCmdEscaped + '"' cmd /c $pfRemote