<p>Having built a static frontend, my thought was to deploy this to a static assets server like S3, while deploying my microservices backend using kubernetes to a compute service like EC2 or EKS.</p>
<p>However, my research has only turned up one approach: <a href="https://kubernetes.io/docs/tasks/access-application-cluster/connecting-frontend-backend/" rel="nofollow noreferrer">building the frontend as a service</a> in my kubernetes cluster.</p>
<p>My questions:</p>
<ol>
<li>Is it possible to have two deployment targets like my thought above?</li>
<li>If possible, what are the pros/cons to doing so (in particular, will communication between frontend &amp; backend be tricky?)</li>
<li>Are there any other deployment approaches to consider besides these two?</li>
</ol>
<p>For additional context, my frontend is a React app built through create-react-app, and I've already extracted by production build. My backend comprises of several NodeJS microservices.</p>

Rahul Nallappa
<blockquote>
<p>Is it possible to have two deployment targets like my thought above?</p>
</blockquote>
<p>Yes, it is possible.</p>
<blockquote>
<p>If possible, what are the pros/cons to doing so (in particular, will communication between frontend &amp; backend be tricky?)</p>
</blockquote>
<p>In the case of a static frontend, the browser (client) talks to the backend, as long as the user is able to communicate with the backend, everything should be fine.</p>
<blockquote>
<p>Are there any other deployment approaches to consider besides these two?</p>
</blockquote>
<p>You can deploy your frontend anywhere, you can check out other options like <a href="https://www.netlify.com/" rel="nofollow noreferrer">https://www.netlify.com/</a> and <a href="https://vercel.com/" rel="nofollow noreferrer">https://vercel.com/</a></p>
<p>This article should give you a better understanding of Kubernetes with similar architecture <a href="https://www.freecodecamp.org/news/learn-kubernetes-in-under-3-hours-a-detailed-guide-to-orchestrating-containers-114ff420e882/" rel="nofollow noreferrer">https://www.freecodecamp.org/news/learn-kubernetes-in-under-3-hours-a-detailed-guide-to-orchestrating-containers-114ff420e882/</a></p>
