fix: output userdata fails, ignore numcpu for kubeadm (#398)

Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
This commit is contained in:
Spencer Smith 2019-02-20 11:48:54 -05:00 committed by Andrew Rynhard
parent b963f5a982
commit 8e30f95f9c
2 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ func initram() (err error) {
log.Printf("retrieving the user data")
var data *userdata.UserData
if data, err = p.UserData(); err != nil {
log.Printf("encountered error reading userdata: %v", err)
return err
}
// Perform rootfs/datafs installation if needed.

View File

@ -126,7 +126,7 @@ func (k *Kubeadm) Start(data *userdata.UserData) error {
args := runner.Args{
ID: k.ID(data),
}
ignore := "--ignore-preflight-errors=cri,kubeletversion,requiredipvskernelmodulesavailable"
ignore := "--ignore-preflight-errors=cri,kubeletversion,numcpu,requiredipvskernelmodulesavailable"
if data.IsBootstrap() {
args.ProcessArgs = []string{"kubeadm", "init", "--config=/etc/kubernetes/kubeadm-config.yaml", ignore, "--skip-token-print"}
} else {