<p>I have installed <code>etcd</code> and <code>kubernetes</code> on centos, now I wanna install <code>kube-apiserver</code>. I installed <code>kube-apiserver</code> by <code>snap</code>.</p>
<pre class="lang-sh prettyprint-override"><code>sudo yum install epel-release 
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install kube-apiserver
</code></pre>
<p>I start <code>kube-apiserver</code> with the guide by this <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/" rel="nofollow noreferrer">link</a>.<br />
Unfortunately, I got failed with <code>***error etcd certificate file not found in /etc/kubernetes/apiserver/apiserver.pem</code>. But I found that the certificate file exists, how to run the <code>kube-apiserver</code> successfully?</p>

<p>I don't know the reason of your failure. But I suggest you to install kubernetes by <code>kubeadm</code>, it's a great <code>k8s</code> tool. If you install <code>k8s</code> by <code>kubeadm</code>, the <code>kube-apiserver</code> will be installed as a k8s pod. The guide to install kubeadm via this <a href="https://phoenixnap.com/kb/how-to-install-kubernetes-on-centos" rel="noreferrer">link</a>.<br />
I run the command <code>kubectl get pods -A</code>,</p>
<pre><code>[karl@centos-linux ~]$ kubectl get pods -A
NAMESPACE     NAME                                          READY   STATUS    RESTARTS   AGE
kube-system   coredns-66bff467f8-64pt6                      1/1     Running   6          4d18h
kube-system   coredns-66bff467f8-xpnsr                      1/1     Running   6          4d18h
kube-system   etcd-centos-linux.shared                      1/1     Running   6          4d18h
kube-system   kube-apiserver-centos-linux.shared            1/1     Running   6          4d18h
kube-system   kube-controller-manager-centos-linux.shared   1/1     Running   6          4d18h
kube-system   kube-flannel-ds-amd64-48stf                   1/1     Running   8          4d18h
kube-system   kube-proxy-9w8gh                              1/1     Running   6          4d18h
kube-system   kube-scheduler-centos-linux.shared            1/1     Running   6          4d18h
</code></pre>
<p><code>kube-apiserver-centos-linux.shared</code> is a kube-apiserver pod, it is installed successfully.</p>
