title: automate letsencrypt on a kubernetes app with lots of domains
body: <p>I have a node app that loads its data based on domain name. domains are configured with a CNAME like <code>app.service.com</code> (which is the node app). </p>
  
  <p>The Node app sees the request domain and sends a request to API to get app data.</p>
  
  <p>for example: <code>domain.com</code> CNAME <code>app.service.com</code>
  -> then node app asks api for domain.com data</p>
  
  <p>the problem is setting up HTTPS (with letsencrypt) for all the domains. I think cert-manager can help but have no idea how to automate this without the need to manually change config file for each new domain.</p>
  
  <p>or is there a better way to achieve this in Kubernetes?</p>