<p>I have very little knowledge of how kubernetes works and I’m trying to learn. I have some difficulties to understand how I can use kubernetes to deploy my DB (CouchDB) the reverse proxy (nginx) and the ssl certificate (letsencrypt with certbot-auto).</p>

<p>I run CentOS 8 and have installed podman for the containers. I can install each one in different containers within the same pod and I can make them communicate properly.</p>

<p>What I don’t understand is how can I use kubernetes to properly deploy all of these containers and scale them in a cluster.</p>

<p>My questions are the following:</p>

<ul>
<li>Where should I start to make kubernetes work with these three components? Should I install the three containers first with their configuration (the DB can be configured to handle clusters but my understanding is that kubernetes handles clusters. So I’m wondering if I have to configure the DB for the cluster and hence install two nodes)</li>
<li>Should I install letsencrypt with certbot? I don’t understand how kubernetes can deploy new pods to have them work with letsencrypt automatically configured</li>
</ul>

<p>If anyone can give me the steps to get this done it would be really great...I just don’t really know where to start and the docs and tutorials are a bit confusing.</p>

Nate
<p>I think you need to deploy two applications for your DB and Nginx, but for your certificates, we have different methods to have letsencrypt on kubernetes</p>

<p>for letsencrypt and nginx these two articles could help you to get some insights about what you need to do </p>

<p><a href="https://dev.to/chrisme/setting-up-nginx-ingress-w-automatically-generated-letsencrypt-certificates-on-kubernetes-4f1k" rel="nofollow noreferrer">Nginx &amp; LetsEncrypt</a> and this one <a href="https://runnable.com/blog/how-to-use-lets-encrypt-on-kubernetes" rel="nofollow noreferrer">Let’s Encrypt on Kubernetes</a></p>

<p>and for CouchDB this article may help you <a href="https://medium.com/faun/deploying-a-couchdb-cluster-on-kubernetes-d4eb50a08b34" rel="nofollow noreferrer">CouchDB on Kubernetes</a>, in this article mentions NFS as storage but you can have your own</p>
