Hi I am getting below error while creating master..pls help

sudo kubeadm init --pod-network-cidr=

sudo: unable to resolve host srinivasab031.mylabserver.com

[init] using Kubernetes version: v1.11.3

[preflight] running pre-flight checks

I1009 03:24:21.140277 17394 kernel_validator.go:81] Validating kernel version

I1009 03:24:21.140382 17394 kernel_validator.go:96] Validating kernel config

[WARNING Hostname]: hostname "srinivasab031.mylabserver.com" could not be reached

[WARNING Hostname]: hostname "srinivasab031.mylabserver.com" lookup srinivasab031.mylabserver.com on no such host

[preflight/images] Pulling images required for setting up a Kubernetes cluster

[preflight/images] This might take a minute or two, depending on the speed of your internet connection

[preflight/images] You can also perform this action in beforehand using 'kubeadm config images pull'

[kubelet] Writing kubelet environment file with flags to file "/var/lib/kubelet/kube

  • post-author-pic
    Will B

    It looks like that is just a warning. Did the kubeadm init command finish? Sometimes it takes a few minutes.

Looking For Team Training?

Learn More