{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/726","repository_url":"https://api.github.com/repos/kubernetes-incubator/external-storage","labels_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/726/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/726/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/726/events","html_url":"https://github.com/kubernetes-incubator/external-storage/issues/726","id":312991267,"number":726,"title":"[local-volume] running cockroach cluster in GKE local volumes fails","user":{"login":"lwsanty","id":10910699,"avatar_url":"https://avatars1.githubusercontent.com/u/10910699?v=4","gravatar_id":"","url":"https://api.github.com/users/lwsanty","html_url":"https://github.com/lwsanty","followers_url":"https://api.github.com/users/lwsanty/followers","following_url":"https://api.github.com/users/lwsanty/following{/other_user}","gists_url":"https://api.github.com/users/lwsanty/gists{/gist_id}","starred_url":"https://api.github.com/users/lwsanty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwsanty/subscriptions","organizations_url":"https://api.github.com/users/lwsanty/orgs","repos_url":"https://api.github.com/users/lwsanty/repos","events_url":"https://api.github.com/users/lwsanty/events{/privacy}","received_events_url":"https://api.github.com/users/lwsanty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-10T16:07:28Z","updated_at":"2018-04-11T09:49:52Z","closed_at":null,"author_association":"NONE","body":"**aim** I want to run a cockroach cluster in GKE using nodes local volumes as datadirs\r\n**steps**\r\n1) create cluster in GKE\r\n- api version `1.9.6-gke.0`\r\n- nodes number: 3\r\n- local SSDs per node: 1\r\n2) create cluster role binding for rbac\r\n```\r\nkubectl create clusterrolebinding myname-cluster-admin-binding --clusterrole=cluster-admin --user=myname@example.org\r\n```\r\n3) create provisioner (from readme)\r\n```\r\nkubectl create -f provisioner/deployment/kubernetes/gce/class-local-ssds.yaml\r\nkubectl create -f provisioner/deployment/kubernetes/gce/provisioner_generated_gce_ssd_volumes.yaml\r\n```\r\n4) run cockroach statefulset\r\n```\r\nkubectl create -f cockroachdb-statefulset.yaml\r\n```\r\nyou can watch config here https://raw.githubusercontent.com/cockroachdb/cockroach/master/cloud/kubernetes/cockroachdb-statefulset.yaml\r\n\r\nand it's tweaked a bit, in the next section by adding storage class name `local-nvme` which was created in 3 \r\n```\r\n      volumes:\r\n      - name: datadir\r\n        persistentVolumeClaim: \r\n          claimName: datadir\r\n  updateStrategy:\r\n    type: RollingUpdate  \r\n  volumeClaimTemplates:\r\n  - metadata:\r\n      name: datadir\r\n    spec:\r\n      accessModes:  \r\n        - \"ReadWriteOnce\"\r\n      storageClassName: \"local-nvme\"\r\n      resources:\r\n        requests:\r\n          storage: 1Gi\r\n```\r\n**result**\r\ncluster node is always in pending state\r\n**note** running statefulset without local volumes works fine\r\n\r\nPlease navigate me what am I doing wrong :)"},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/comments/380394416","html_url":"https://github.com/kubernetes-incubator/external-storage/issues/726#issuecomment-380394416","issue_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/726","id":380394416,"user":{"login":"lwsanty","id":10910699,"avatar_url":"https://avatars1.githubusercontent.com/u/10910699?v=4","gravatar_id":"","url":"https://api.github.com/users/lwsanty","html_url":"https://github.com/lwsanty","followers_url":"https://api.github.com/users/lwsanty/followers","following_url":"https://api.github.com/users/lwsanty/following{/other_user}","gists_url":"https://api.github.com/users/lwsanty/gists{/gist_id}","starred_url":"https://api.github.com/users/lwsanty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwsanty/subscriptions","organizations_url":"https://api.github.com/users/lwsanty/orgs","repos_url":"https://api.github.com/users/lwsanty/repos","events_url":"https://api.github.com/users/lwsanty/events{/privacy}","received_events_url":"https://api.github.com/users/lwsanty/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T09:49:52Z","updated_at":"2018-04-11T09:49:52Z","author_association":"NONE","body":"@msau42 ok, I'll do it running cluster from the scratch\r\n0) create binding\r\n```\r\nkubectl create clusterrolebinding myname-cluster-admin-binding --clusterrole=cluster-admin --user=myname@example.org\r\n```\r\n1) according to https://cloud.google.com/kubernetes-engine/docs/concepts/local-ssd\r\nI create cluster with alpha features and local ssd count of1 per node\r\n![dfdsfsdfsdf](https://user-images.githubusercontent.com/10910699/38608413-f0bc97ba-3d83-11e8-88ec-657295f3b766.png)\r\n2) create storage class\r\n```\r\napiVersion: storage.k8s.io/v1\r\nkind: StorageClass\r\nmetadata:\r\n  name: local-scsi\r\nprovisioner: kubernetes.io/no-provisioner\r\nvolumeBindingMode: WaitForFirstConsumer\r\n```\r\n3) provisioner\r\n```\r\nkubectl create -f provisioner_generated_gce_ssd_count.yaml\r\n```\r\n4) get storage class\r\n```\r\n```\r\n5) get cluster info\r\n```\r\nkubectl get all\r\nNAME                          DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE\r\nds/local-volume-provisioner   3         3         3         3            3           <none>          1m\r\nNAME                          AGE\r\nds/local-volume-provisioner   1m\r\n\r\nNAME                                READY     STATUS    RESTARTS   AGE\r\npo/local-volume-provisioner-ggtnx   1/1       Running   0          1m\r\npo/local-volume-provisioner-m8d45   1/1       Running   0          1m\r\npo/local-volume-provisioner-vr2tp   1/1       Running   0          1m\r\n\r\nNAME             TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)   AGE\r\nsvc/kubernetes   ClusterIP   ip   <none>        443/TCP   8m\r\n```"}}
{"actor":{"display_login":"lwsanty"}}