title: How to install kube-apiserver on centos?
body: <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>