Skip to content

Commit

Permalink
Don't pre register traefik ports
Browse files Browse the repository at this point in the history
Signed-off-by: Nino Kodabande <[email protected]>
  • Loading branch information
Nino-K committed Apr 30, 2024
1 parent fbd7545 commit b1ad811
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/rancher-desktop/backend/wsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@ export default class WSLBackend extends events.EventEmitter implements VMBackend
const k8sPortForwarding = `127.0.0.1:${ k8sPort }=${ gatewayIP }:${ k8sPort }`;

args.push('--port-forward', k8sPortForwarding);

if (this.cfg?.kubernetes.options.traefik) {
const ingressIP = this.cfg?.kubernetes.ingress.localhostOnly ? '127.0.0.1' : '0.0.0.0';

for (const port of [80, 443]) {
args.push('--port-forward', `${ ingressIP }:${ port }=${ gatewayIP }:${ port }`);
}
}
}

return childProcess.spawn(exe, args, {
Expand Down

0 comments on commit b1ad811

Please sign in to comment.