Application not accessible

Please kindly help- GCP DevOps Project!!

I don’t know why i can’t access the application. All the containers are healthy and in running state. Attached below is the error from the logs.


I just resolved it by using LoadBalancer instead of NodePort type service. But don’t know why is not possible with NodePort service type. Any idea?

Hi @Sammy-Chuks,

  • When you use NodePort it means you open a port on every worker node in the cluster that has a pod for that service and to connect you need to specify the port (ex: http://<worker_ip_addr>:31200)

  • Loadbalancer is the same thing on on premise installation but additionally, he adds a loadbalancer link to expose your cluster to your cloud kubernetes service like EKS and GKE.

Thanks for your reply @ mmkmou_KodeKloud. I understand what you mean but the issue is when i copy and paste the url on my browser, it returns time out error even though i have provided the correct url: http://<worker_ip_addr>:. I have also opened all port on my firewall too but it still does not work. So am kind of don’t know what could be the problem and how to fix it?

Here is the error from the logs
{ insertId: "2ml56t5phqfj3z41" labels: {4} logName: "projects/refined-clarity-385311/logs/stderr" receiveTimestamp: "2023-05-01T16:04:34.263079342Z" resource: {2} severity: "ERROR" textPayload: "/bin/sh: 1: [: python3,: unexpected operator" timestamp: "2023-05-01T16:04:32.132577398Z" }