I'm going through your repo here in an effort to deploy a rails app to GC. When I follow your tutorial I run:
$ kubectl run db --image=postgres --port=5432
deployment "db" created
Then I wait for the pod to start and when it does I see:
$ kubectl get po
NAME READY STATUS RESTARTS AGE
db-3402021059-64hv8 1/1 Running 0 25s
I then run the next command you list (step 3 in GCE deploy):
$ kubectl expose rc db
Error from server (NotFound): replicationcontrollers "db" not found
I believe this command sets up a load balancer so the database can receive traffic from other pods but I'm not 100% sure.
I'm going through your repo here in an effort to deploy a rails app to GC. When I follow your tutorial I run:
Then I wait for the pod to start and when it does I see:
I then run the next command you list (step 3 in GCE deploy):
I believe this command sets up a load balancer so the database can receive traffic from other pods but I'm not 100% sure.