<p>I have been trying to find how to do this but so far have found nothing, I am quite new to Kubernetes so I might just have looked over it. I want to use my own certificate for the Kubernetes API server, is this possible? And if so, can someone perhaps give me a link?</p>

Thijs van der Heijden
<p>Yes, you can use your own certificate and set inn the Kubernetes API server.</p>
<p>Suppose you have created the certificate move and save them to specific node directory:</p>
<pre><code>{
  sudo mkdir -p /var/lib/kubernetes/

  sudo mv ca.pem ca-key.pem kubernetes-key.pem kubernetes.pem \
    service-account-key.pem service-account.pem \
    encryption-config.yaml /var/lib/kubernetes/
}
</code></pre>
<p>The instance internal IP address will be used to advertise the API Server to members of the cluster. Get the internal IP:</p>
<pre><code>INTERNAL_IP=$(curl -s -H &quot;Metadata-Flavor: Google&quot; \
  http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip)
</code></pre>
<p>you can crate the service of API server and set it.</p>
<p><strong>Note</strong> : Above mentioned example is specifically with consider the GCP instances so you might have to change some commands like.</p>
<pre><code>INTERNAL_IP=$(curl -s -H &quot;Metadata-Flavor: Google&quot; \
      http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip) 
</code></pre>
<p>for the above command, you can provide the manual bare metal IP list instead of getting from GCP instance API if you are not using it.</p>
<p>Here we go please refer to this link : <a href="https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/08-bootstrapping-kubernetes-controllers.md#configure-the-kubernetes-api-server" rel="nofollow noreferrer">https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/08-bootstrapping-kubernetes-controllers.md#configure-the-kubernetes-api-server</a></p>
<p>here you can find all the details for creating and setting whole Kubernetes cluster from scratch along will detailed document and commands : <a href="https://github.com/kelseyhightower/kubernetes-the-hard-way" rel="nofollow noreferrer">https://github.com/kelseyhightower/kubernetes-the-hard-way</a></p>
