Skip to content

Commit

Permalink
Merge pull request #6167 from jandubois/tls-san
Browse files Browse the repository at this point in the history
Make sure the apiserver can be accessed from WSL via the internal gateway
  • Loading branch information
jandubois authored Dec 9, 2023
2 parents f0d9e7a + b0a0949 commit 88d859a
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 88d859a

Please sign in to comment.