Welcome to the Linux Foundation Forum!

Lab 3.1 Step 15

Hi There,

I am trying to intialize the cp by running the below command,

root@master:~# kubeadm init --config=kubeadm-config.yaml --upload-certs | tee kubeadm-init.out

but I am getting the following error

invalid configuration for GroupVersionKind /, Kind=: kind and apiVersion is mandatory information that must be specified
To see the stack trace of this error execute with --v=5 or higher

here is my kubeadm-config.yaml

1 apiVersion: kubeadm.k8s.io/v1beta2
2 kind: ClusterConfiguration
3 kubernetesVersion: 1.21.1
4 controlPlaneEndpoint: "k8scp:6443"
5 networking:
6 podSubnet: 192.168.0.0/16

Comments

  • Hi @vijaykesari,

    From the code provided above it may seem that your manifest includes the line numbers as well, on each line. They should not be part of your manifest. This commonly happens when the yaml file was generated through copy/paste from the pdf lab guide. The recommendation is to use the yaml definition files from the SOLUTIONS tarball for all the labs of this course.

    Regards,
    -Chris

Categories

Upcoming Training