Skip to content

Commit

Permalink
Merge pull request #4972 from rancher-sandbox/stop-traefik-port-forwa…
Browse files Browse the repository at this point in the history
…rding

Don't pre register traefik ports
  • Loading branch information
mook-as authored May 9, 2024
2 parents 0dd26b4 + a3dc519 commit f60c1c9
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 f60c1c9

Please sign in to comment.