Skip to content

Commit

Permalink
Make sure the apiserver can be accessed from WSL via the internal gat…
Browse files Browse the repository at this point in the history
…eway

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Dec 8, 2023
1 parent ae0d2ba commit b0a0949
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/rancher-desktop/backend/wsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,9 @@ export default class WSLBackend extends events.EventEmitter implements VMBackend
USE_CRI_DOCKERD: BackendHelper.requiresCRIDockerd(config.containerEngine.name, version).toString(),
};

// Make sure the apiserver can be accessed from WSL through the internal gateway
k3sConf.ADDITIONAL_ARGS += ' --tls-san gateway.rancher-desktop.internal';

if (!config.kubernetes.options.flannel) {
console.log(`Disabling flannel and network policy`);
k3sConf.ADDITIONAL_ARGS += ' --flannel-backend=none --disable-network-policy';
Expand Down

0 comments on commit b0a0949

Please sign in to comment.