{"action":"closed","issue":{"url":"https://api.github.com/repos/luxas/kubernetes-on-arm/issues/45","labels_url":"https://api.github.com/repos/luxas/kubernetes-on-arm/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/luxas/kubernetes-on-arm/issues/45/comments","events_url":"https://api.github.com/repos/luxas/kubernetes-on-arm/issues/45/events","html_url":"https://github.com/luxas/kubernetes-on-arm/issues/45","id":125584095,"number":45,"title":"Only one volume being mounted?","user":{"login":"sokoow","id":4134127,"avatar_url":"https://avatars.githubusercontent.com/u/4134127?v=3","gravatar_id":"","url":"https://api.github.com/users/sokoow","html_url":"https://github.com/sokoow","followers_url":"https://api.github.com/users/sokoow/followers","following_url":"https://api.github.com/users/sokoow/following{/other_user}","gists_url":"https://api.github.com/users/sokoow/gists{/gist_id}","starred_url":"https://api.github.com/users/sokoow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokoow/subscriptions","organizations_url":"https://api.github.com/users/sokoow/orgs","repos_url":"https://api.github.com/users/sokoow/repos","events_url":"https://api.github.com/users/sokoow/events{/privacy}","received_events_url":"https://api.github.com/users/sokoow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-08T10:32:29Z","updated_at":"2016-01-09T14:15:41Z","closed_at":"2016-01-09T14:15:41Z","body":"Hey, I have a following config:\r\n```---\r\nkind: PersistentVolume\r\napiVersion: v1\r\nmetadata:\r\n  name: pv0001\r\n  labels:\r\n    type: local\r\nspec:\r\n  capacity:\r\n    storage: 1Gi\r\n  accessModes:\r\n    - ReadWriteOnce\r\n  hostPath:\r\n    path: \"/volumes/first\"\r\n---\r\nkind: PersistentVolume\r\napiVersion: v1\r\nmetadata:\r\n  name: pv0002\r\n  labels:\r\n    type: local\r\nspec:\r\n  capacity:\r\n    storage: 1Gi\r\n  accessModes:\r\n    - ReadWriteOnce\r\n  hostPath:\r\n    path: \"/volumes/second\"\r\n---\r\nKind: Pod\r\n...\r\n      volumeMounts:\r\n      - mountPath: \"/etc/sudoers.d\"\r\n        name: mypv1\r\n      volumeMounts:\r\n      - mountPath: \"/var/lib\"\r\n        name: mypv2\r\n  volumes:\r\n    - name: mypv1\r\n      persistentVolumeClaim:\r\n       claimName: myclaim1\r\n    - name: mypv2\r\n      persistentVolumeClaim:\r\n       claimName: myclaim2\r\n```\r\n\r\nkubectl get pv \r\nNAME      LABELS       CAPACITY   ACCESSMODES   STATUS    CLAIM              REASON    AGE\r\npv0001    type=local   1Gi        RWO           Bound     default/myclaim2             6s\r\npv0002    type=local   1Gi        RWO           Bound     default/myclaim1             6s\r\n\r\nkubectl get pvc\r\nNAME       LABELS    STATUS    VOLUME    CAPACITY   ACCESSMODES   AGE\r\nmyclaim1   <none>    Bound     pv0002    1Gi        RWO           55s\r\nmyclaim2   <none>    Bound     pv0001    1Gi        RWO           54s\r\n\r\nFIrst thing that doesn't work when we have volumes attached is kube exec:\r\n\r\nkubectl exec -t -i volume-test /bin/bash\r\nerror: unexpected response status code 500 (Internal Server Error)\r\n\r\nBut when I exec directly from docker, here's what I have:\r\n\r\nmounts:\r\n\r\n        {\r\n            \"Name\": \"f1736e7aa452778344c10acb0df3ae08ab5283136a7b59d6d26d39a58993bd73\",\r\n            \"Source\": \"/media/docker/volumes/f1736e7aa452778344c10acb0df3ae08ab5283136a7b59d6d26d39a58993bd73/_data\",\r\n            \"Destination\": \"/etc/sudoers.d\",\r\n            \"Driver\": \"local\",\r\n            \"Mode\": \"\",\r\n            \"RW\": true\r\n        },\r\n        {\r\n            \"Source\": \"/volumes/first\",\r\n            \"Destination\": \"/var/lib\",\r\n            \"Mode\": \"\",\r\n            \"RW\": true\r\n        }\r\n\r\nSo, first volume is being mounted to a docker directory, second volume is actually a mount, not a volume, but seems to be ok. Could somebody test same please? Just create two volumes, two claims, and attach to docker."}}