<p>Because I have modified the source codes of k8s and want to debug the k8s, I would like to build and install kubelet, kubectl, kubeadm from source codes. Now I have built the <code>kubelet, kubectl, kubeadm</code> and get the bin files. When I want to run <code>kubedam</code> to deploy a cluster, I found just copying them to <code>/usr/local/bin/</code> does not work for me and I got the following errors:</p>

<pre><code>kubeadm init --apiserver-advertise-address=x.x.x.x --pod-network-cidr=10.244.0.0/16
W0204 20:55:28.785179    5682 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.17.2
[preflight] Running pre-flight checks
    [WARNING Service-Kubelet]: kubelet service does not exist
error execution phase preflight: [preflight] Some fatal errors occurred:
    [ERROR FileExisting-conntrack]: conntrack not found in system path
    [ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.18.0-alpha.2.355+845b23232125ca" Control plane version: "1.17.2"
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
</code></pre>

<p>Could anyone help me about how to install <code>kubelet, kubectl, kubeadm</code> correctly from source codes? </p>

<p>Thank you very much.</p>

Jeffrey
<p>If you have modified kubernetes source code and what to test those changes I suggest to follow the <a href="https://github.com/kubernetes/community/tree/master/contributors/devel" rel="nofollow noreferrer">developer guide</a> for that. It's hard to use kubeadm for testing modified kubernetes because kubeadm comes packaged with officially released  kubernetes and it's hard to make it use your modified kubernetes. </p>

<p>If you have modified kubeadm and want to test that you can follow the <a href="https://github.com/kubernetes/kubeadm/blob/master/kinder/README.md" rel="nofollow noreferrer">doc</a></p>
