<p>I have two k8s deployments in one cluster GKE, for one web application, one is frontend(react) and the other is backend(python), the frontend is working fine but when I try to do something on the frontend that calls the backend i got <a href="https://prnt.sc/v8lvhj" rel="nofollow noreferrer">this</a> , I have ingress for the frontend, which works perfectly, the only thing i can't figure it out is why the frontend can't reach the backend, i want them to communicate via services. I have the following services:</p>
<p>Frontend service</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: frontend
spec:
  selector:
    app: hello
    tier: frontend
  ports:
  - protocol: &quot;TCP&quot;
    port: 80
    targetPort: 3000
</code></pre>
<p>Backend service</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: backend
spec:
  selector:
    app: hello
    tier: backend
    track: stable
  ports:
  - protocol: TCP
    port: 80
    targetPort: 8000 
</code></pre>
<p>Any fix suggestions?</p>

Шурбески Христијан
<p>When the applications are client side applications like react or Angular, the application runs on the client browser; not in the server side. In that case, the application in the client browser must invoke the APIs on the server (backend application).</p>
<p>In such a situation, even though the application is named backend; it must expose the APIs via the Ingress so that those APIs can be used by the frontend application running on the client browser.</p>
