Welcome to the Linux Foundation Forum!

Feedback: kubeadm init command uses incorrect syntax for version 1.29.1

The kubeadm init command given in the lab PDF seems to use the wrong syntax for version 1.29.1 which earlier steps in the tutorial ask us to install.

This is the instruction given in the PDF:

 kubeadm init --config=kubeadm-config.yaml --upload-certs \
| tee kubeadm-init.out                 #<-- Save output for future review

On running that command this is the output I received:

~# kubeadm init --config=kubeadm-config.yaml --upload-certs \ | tee kubeadm-init.out
unknown command " " for "kubeadm init"
To see the stack trace of this error execute with --v=5 or higher

The following works (removing the = between --config and the path to the file):

 kubeadm init --config kubeadm-config.yaml --upload-certs | tee kubeadm-init.out

The version I have installed is as instructed:

~# kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"29", GitVersion:"v1.29.1", GitCommit:"bc401b91f2782410b3fb3f9acf43a995c4de90d2", GitTreeState:"clean", BuildDate:"2024-01-17T15:49:02Z", GoVersion:"go1.21.6", Compiler:"gc", Platform:"linux/amd64"}

Comments

  • chrispokorni
    chrispokorni Posts: 2,301

    Hi @nkb,

    In both cases the syntax is correct, with and without the equal "=" symbol.

    Perhaps the command was incorrectly formatted on the first attempt. The multi-line backslash symbol "\" was left in the command, although it seems it was executed as a single-line command.

    Regards,
    -Chris

Categories

Upcoming Training