Skip to content

Commit

Permalink
do not require downloading k0s binaries from the internet (#202)
Browse files Browse the repository at this point in the history
* do not require downloading k0s binaries from the internet

this would save install time when installing on a different host than the embedded-cluster binary, but that is not currently supported

* specify the path to the binary on the host
  • Loading branch information
laverya authored Dec 5, 2023
1 parent 472d120 commit 5c00ec4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/config/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/k0sproject/rig/log"
"github.com/sirupsen/logrus"

"github.com/replicatedhq/embedded-cluster/pkg/defaults"
pb "github.com/replicatedhq/embedded-cluster/pkg/progressbar"
)

Expand All @@ -30,10 +31,11 @@ func (h *hostcfg) render() *cluster.Host {
}
ifls = append(ifls, labelsToArg(h.Labels)...)
return &cluster.Host{
Role: h.Role,
UploadBinary: false,
NoTaints: h.Role == "controller+worker",
InstallFlags: ifls,
Role: h.Role,
UploadBinary: true,
K0sBinaryPath: defaults.K0sBinaryPath(),
NoTaints: h.Role == "controller+worker",
InstallFlags: ifls,
Connection: rig.Connection{
SSH: &rig.SSH{
Address: h.Address,
Expand Down

0 comments on commit 5c00ec4

Please sign in to comment.