Skip to content

Error from server (NotFound): replicationcontrollers "db" not found #1

Description

@allcentury

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions