<p>I have deployed a k8s cluster using "kubeadm init" successfully before. I re-install the k8s when meet a problem. Now I re-deploy the k8s cluster failed!</p>

<p>linux os</p>

<pre><code>uname -a
Linux kube-master 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>

<p>k8s env</p>

<pre><code>kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:17:28Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?

kubeadm version
kubeadm version: &amp;version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:14:39Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre>

<p>My deploy command:</p>

<pre><code>sudo kubeadm -v 10 init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.0.100 --kubernetes-version v1.11.2

[init] this might take a minute or longer if the control plane images have to be pulled
I0828 17:12:47.780302   28675 round_trippers.go:386] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubeadm/v1.11.2 (linux/amd64) kubernetes/bb9ffb1" 'https://192.168.0.100:6443/healthz?timeout=32s'
I0828 17:12:47.780492   28675 round_trippers.go:405] GET https://192.168.0.100:6443/healthz?timeout=32s  in 0 milliseconds
I0828 17:12:47.780500   28675 round_trippers.go:411] Response Headers:
I0828 17:12:48.280824   28675 round_trippers.go:386] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubeadm/v1.11.2 (linux/amd64) kubernetes/bb9ffb1" 'https://192.168.0.100:6443/healthz?timeout=32s'
I0828 17:12:48.281238   28675 round_trippers.go:405] GET https://192.168.0.100:6443/healthz?timeout=32s  in 0 milliseconds
I0828 17:12:48.281283   28675 round_trippers.go:411] Response Headers:
I0828 17:12:48.780836   28675 round_trippers.go:386] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubeadm/v1.11.2 (linux/amd64) kubernetes/bb9ffb1" 'https://192.168.0.100:6443/healthz?timeout=32s'
I0828 17:12:48.781171   28675 round_trippers.go:405] GET https://192.168.0.100:6443/healthz?timeout=32s  in 0 milliseconds
I0828 17:12:48.781199   28675 round_trippers.go:411] Response Headers:
I0828 17:12:49.281440   28675 round_trippers.go:386] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: kubeadm/v1.11.2 (linux/amd64) kubernetes/bb9ffb1" 'https://192.168.0.100:6443/healthz?timeout=32s'
</code></pre>

<p>Who can help me?</p>

<p>After <code>kubeadm init</code> you should copy <em>admin.conf</em> file into the home directory of the user who will use the <code>kubectl</code> command and set the config path into the <code>KUBECONFIG</code> system variable:</p>

<pre><code>sudo cp /etc/kubernetes/admin.conf $HOME/
sudo chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf
</code></pre>

<p>It is a configuration file from where the <code>kubectl</code> reads details required to make a connection into your K8s cluster.</p>
