Skip to content

Commit

Permalink
make kube_proxy admin hack, work more often
Browse files Browse the repository at this point in the history
  • Loading branch information
KnicKnic committed Jul 28, 2020
1 parent 09dce8c commit 5f0ac92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ __pycache__
/tests/.vscode
/sonobuoy-output
*.tmp
t.ps1
k3s.exe
files.zip

3 changes: 2 additions & 1 deletion pkg/agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ func get(envInfo *cmds.Agent, proxy proxy.Proxy) (*config.Node, error) {
// hack due to kube-proxy needing to query nodes to get node ip
// C:\Users\Administrator\go\src\github.com\rancher\k3s\vendor\k8s.io\kubernetes\cmd\kube-proxy\app\server_windows.go
// line 112
kubeconfigKubeproxy = "C:\\tmp\\k3s\\server\\cred\\admin.kubeconfig"
// kubeconfigKubeproxy = "C:\\tmp\\k3s\\server\\cred\\admin.kubeconfig"
kubeconfigKubeproxy = filepath.Join(envInfo.DataDir, "..\\server\\cred\\admin.kubeconfig")

clientK3sControllerCert := filepath.Join(envInfo.DataDir, "client-k3s-controller.crt")
clientK3sControllerKey := filepath.Join(envInfo.DataDir, "client-k3s-controller.key")
Expand Down

0 comments on commit 5f0ac92

Please sign in to comment.