just always apply overlay
parent
5848bbe011
commit
e2467b2081
|
@ -46,7 +46,6 @@ type Bootstrapper interface {
|
|||
LogCommands(config.ClusterConfig, LogOptions) map[string]string
|
||||
SetupCerts(config.KubernetesConfig, config.Node) error
|
||||
GetAPIServerStatus(string, int) (string, error)
|
||||
ApplyCNI(config.ClusterConfig) error
|
||||
}
|
||||
|
||||
const (
|
||||
|
|
|
@ -226,11 +226,10 @@ func (k *Bootstrapper) init(cfg config.ClusterConfig) error {
|
|||
glog.Errorf("unable to create cluster role binding, some addons might not work: %v", err)
|
||||
}
|
||||
// the overlay is required for containerd and cri-o runtime: see #7428
|
||||
if config.MultiNode(cfg) || (driver.IsKIC(cfg.Driver) && cfg.KubernetesConfig.ContainerRuntime != "docker") {
|
||||
if err := k.applyKICOverlay(cfg); err != nil {
|
||||
glog.Errorf("failed to apply kic overlay: %v", err)
|
||||
}
|
||||
if err := k.applyKICOverlay(cfg); err != nil {
|
||||
glog.Errorf("failed to apply kic overlay: %v", err)
|
||||
}
|
||||
|
||||
wg.Done()
|
||||
}()
|
||||
|
||||
|
@ -809,10 +808,6 @@ func kubectlPath(cfg config.ClusterConfig) string {
|
|||
return path.Join(vmpath.GuestPersistentDir, "binaries", cfg.KubernetesConfig.KubernetesVersion, "kubectl")
|
||||
}
|
||||
|
||||
func (k *Bootstrapper) ApplyCNI(cfg config.ClusterConfig) error {
|
||||
return k.applyKICOverlay(cfg)
|
||||
}
|
||||
|
||||
// applyKICOverlay applies the CNI plugin needed to make kic work
|
||||
func (k *Bootstrapper) applyKICOverlay(cfg config.ClusterConfig) error {
|
||||
fmt.Println("APPLYING KIC OVERLAY")
|
||||
|
|
|
@ -169,10 +169,6 @@ func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
|
|||
if err = bs.JoinCluster(*starter.Cfg, *starter.Node, joinCmd); err != nil {
|
||||
return nil, errors.Wrap(err, "joining cluster")
|
||||
}
|
||||
|
||||
if err = cpBs.ApplyCNI(*starter.Cfg); err != nil {
|
||||
return nil, errors.Wrap(err, "applying CNI")
|
||||
}
|
||||
}
|
||||
|
||||
wg.Wait()
|
||||
|
|
Loading…
Reference in New Issue