fix: output userdata fails, ignore numcpu for kubeadm (#398)
Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
This commit is contained in:
parent
b963f5a982
commit
8e30f95f9c
@ -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.
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user