{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/12136","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/12136/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/12136/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/12136/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/12136","id":98671257,"number":12136,"title":"after kubernetes upgrade, all mongodb databases are gone","user":{"login":"Hokutosei","id":96331,"avatar_url":"https://avatars.githubusercontent.com/u/96331?v=3","gravatar_id":"","url":"https://api.github.com/users/Hokutosei","html_url":"https://github.com/Hokutosei","followers_url":"https://api.github.com/users/Hokutosei/followers","following_url":"https://api.github.com/users/Hokutosei/following{/other_user}","gists_url":"https://api.github.com/users/Hokutosei/gists{/gist_id}","starred_url":"https://api.github.com/users/Hokutosei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hokutosei/subscriptions","organizations_url":"https://api.github.com/users/Hokutosei/orgs","repos_url":"https://api.github.com/users/Hokutosei/repos","events_url":"https://api.github.com/users/Hokutosei/events{/privacy}","received_events_url":"https://api.github.com/users/Hokutosei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/area/storage","name":"area/storage","color":"006b75"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/support","name":"kind/support","color":"eb6420"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/master","name":"team/master","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"davidopp","id":8264113,"avatar_url":"https://avatars.githubusercontent.com/u/8264113?v=3","gravatar_id":"","url":"https://api.github.com/users/davidopp","html_url":"https://github.com/davidopp","followers_url":"https://api.github.com/users/davidopp/followers","following_url":"https://api.github.com/users/davidopp/following{/other_user}","gists_url":"https://api.github.com/users/davidopp/gists{/gist_id}","starred_url":"https://api.github.com/users/davidopp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidopp/subscriptions","organizations_url":"https://api.github.com/users/davidopp/orgs","repos_url":"https://api.github.com/users/davidopp/repos","events_url":"https://api.github.com/users/davidopp/events{/privacy}","received_events_url":"https://api.github.com/users/davidopp/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-08-03T04:53:38Z","updated_at":"2015-08-04T08:18:11Z","closed_at":null,"body":"Greetings,\r\n\r\ncontinuation from this problem https://github.com/GoogleCloudPlatform/kubernetes/issues/12134\r\nthanks brendan, after the update, nodes were restarted and all containers started without problems, but there is one thing I am really afraid of my `mongodb` instances.\r\n\r\nI'm using this yaml file, just cut the container list.\r\n```\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  name: mongodb-shard1-controller\r\nspec:\r\n  replicas: 2\r\n  selector:\r\n    name: mongodb-shard1-controller\r\n    version: v0\r\n  template:\r\n    metadata:\r\n      labels:\r\n        name: mongodb-shard1-controller\r\n        version: v0\r\n    spec:\r\n      containers:\r\n      - name: mongodb-node1\r\n        image: gcr.io/app/mongodb3.0.4\r\n        ports:\r\n        - containerPort: 27017\r\n          hostPort: 27031\r\n        env:\r\n          - name: REPL_SET\r\n            value: kube_shard1\r\n        volumeMounts:\r\n          - mountPath: /data/db\r\n            name: db-path\r\n      volumes:\r\n        - name: db-path\r\n          source:\r\n            emptyDir: {}\r\n```\r\n\r\nit may not be the best, but I am using it in production. after the nodes restarted, all replica sets of mongodb instances, could not connect on to each other, and other than that, databases are gone. and I could not get it back up w/databases. i don't know where is `/data/db` gone?\r\n\r\nI'm using `GCP`, what is the best practice for database storages? "},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/127519039","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/12136#issuecomment-127519039","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/12136","id":127519039,"user":{"login":"Hokutosei","id":96331,"avatar_url":"https://avatars.githubusercontent.com/u/96331?v=3","gravatar_id":"","url":"https://api.github.com/users/Hokutosei","html_url":"https://github.com/Hokutosei","followers_url":"https://api.github.com/users/Hokutosei/followers","following_url":"https://api.github.com/users/Hokutosei/following{/other_user}","gists_url":"https://api.github.com/users/Hokutosei/gists{/gist_id}","starred_url":"https://api.github.com/users/Hokutosei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hokutosei/subscriptions","organizations_url":"https://api.github.com/users/Hokutosei/orgs","repos_url":"https://api.github.com/users/Hokutosei/repos","events_url":"https://api.github.com/users/Hokutosei/events{/privacy}","received_events_url":"https://api.github.com/users/Hokutosei/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T08:18:11Z","updated_at":"2015-08-04T08:18:11Z","body":"Greetings,\r\n\r\nthat looks much more clearer! thanks @roberthbailey  I was looking at kubernetes storages, but then, i just lost around 300k records...\r\n\r\nthis looks resolved to me, please close this thread?"}}