Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent storage doesn't work #6

Open
richarddli opened this issue Aug 17, 2017 · 3 comments
Open

Persistent storage doesn't work #6

richarddli opened this issue Aug 17, 2017 · 3 comments
Assignees

Comments

@richarddli
Copy link
Contributor

I tried to deploy a mongoDB. kubectl describe pod mongodb says:

` FirstSeen LastSeen Count From SubObjectPath Type Reason Message


5m 29s 22 {default-scheduler } Warning FailedScheduling PersistentVolumeClaim is not bound: "todo-db-persistent-storage-todo-db-0"`

@plombardi89 plombardi89 self-assigned this Aug 17, 2017
@plombardi89
Copy link
Contributor

Adding some additional context I received (internally found issue):

kubectl describe pod todo-db-0
Name:        todo-db-0
Namespace:    default
Node:        /
Labels:        controller-revision-hash=todo-db-437957389
        environment=test
        role=todo-db
Status:        Pending
IP:
Controllers:    StatefulSet/todo-db
Containers:
  mongo:
    Image:    mongo
    Port:    27017/TCP
    Command:
      mongod
      --replSet
      rs0
      --smallfiles
      --noprealloc
    Volume Mounts:
      /data/db from todo-db-persistent-storage (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-mszg6 (ro)
    Environment Variables:    <none>
  mongo-sidecar:
    Image:    cvallance/mongo-k8s-sidecar
    Port:
    Volume Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-mszg6 (ro)
    Environment Variables:
      MONGO_SIDECAR_POD_LABELS:    role=todo-db,environment=test
Conditions:
  Type        Status
  PodScheduled     False
Volumes:
  todo-db-persistent-storage:
    Type:    PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:    todo-db-persistent-storage-todo-db-0
    ReadOnly:    false
  default-token-mszg6:
    Type:    Secret (a volume populated by a Secret)
    SecretName:    default-token-mszg6
QoS Class:    BestEffort
Tolerations:    <none>
Events:
  FirstSeen    LastSeen    Count    From            SubObjectPath    Type        Reason            Message
  ---------    --------    -----    ----            -------------    --------    ------            -------
  21s        6s        6    {default-scheduler }            Warning        FailedScheduling    PersistentVolumeClaim is not bound: “todo-db-persistent-storage-todo-db-0”

@plombardi89
Copy link
Contributor

Reproduction steps:

  1. Clone out TODO
  2. Forge deploy

@plombardi89
Copy link
Contributor

This looks like a case where there is no default storage class for the instance. We should probably install one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants