Re: [kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread 'Tim Hockin' via Kubernetes user discussion and Q
If you repeatedly. Curl it always gives the right answer? Can you verify that from both VMs? What is the error case? You said "the home page" - is that your apps home page or something else? On Nov 22, 2017 5:23 PM, wrote: > Thanks for sticking with me Tim. > > So what

Re: [kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread tomnolan95
Thanks for sticking with me Tim. So what I currently have is a pod that has two containers in it. One container has the port 5000 and one has the port 5432. When I run `kubectl get pods` I can see my the IP for my pod and I can curl that from any machine. I exposed this deployment using

Re: [kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Sorry. When you `kubectl get services` you get a listing which includes the "cluster IP" of a service. This is a VIP that is reachable by your cluster nodes. You can SSH into a VM and curl your cluster IP and it will give us a clue where the process is breaking down. In particular, curl it 100

Re: [kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread tomnolan95
When you say curl the Services custerIP, what do you mean? Which service? I'm relatively new to kubernetes/GCP so still finding my feet. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q" group. To unsubscribe from this group and

Re: [kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Log in to each VM and try accessing the service's clusterIP, eg with curl. Try connecting to the VM IP on the service node port. On Wed, Nov 22, 2017 at 1:39 PM, wrote: > So the application is created using Flask, which is a python web-framework. > Logging into the

Re: [kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Things to try: Log in to each VM and try accessing the service's clusterIP, eg with curl. Make sure kube-proxy is running on both VMs. Check kube-proxy logs for any obvious errors, like failure to sync with master. Try connecting to the VM IP on the service node port. On Nov 22, 2017 5:49

Re: [kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread Rodrigo Campos
If I have to bet, I'd bet it's the application. But okay, that is what you see. But else do you see in Kubernetes? Logs of kube-proxy, etc.? How do you keep the users logged in the application? Is there any container restart when this happens? Are you using GKE? And how do you connect, via a

[kubernetes-users] Unexpected Behavior When Scaling Application

2017-11-22 Thread tomnolan95
Hi there, I’ve deployed an application to a Google Cloud Kubernete Cluster. The application is built using the Python web-framework Flask and uses a CloudSQL Postgres database for persistence. The script I used to deploy the application is this: