(kubernetes) lpabon@localhost : ~/git/golang/kubernetes/src/k8s.io/kubernetes
$ ALLOW_PRIVILEGED=true AllAlpha=true ./hack/local-up-cluster.sh
** On another window I run the fake (in-memory) OpenStorage CSI driver (you can do the same with the mock driver):
(osd) lpabon@localhost : ~/git/golang/osd/src/github.com/libopenstorage/openstorage
$ sudo $GOPATH/bin/osd -d --driver=name=fake
INFO[0000] OSD enabling cluster mode.
...
INFO[0000] CSI gRPC Server ready on /var/lib/osd/driver/fake-csi.sock
...
** On a third window I run the cluster-driver-registrar:
(csi-test) lpabon@localhost : ~/git/golang/csi-test/src/github.com/kubernetes-csi/cluster-driver-registrar
$ sudo ./bin/cluster-driver-registrar --driver-requires-attachment=false --pod-info-mount-version=v1 -v=5 --kubeconfig=/var/run/kubernetes/admin.kubeconfig --csi-address=/var/lib/osd/driver/fake-csi.sock
I1206 23:58:58.675919 103690 main.go:77] Version: v1.0.0-rc1-0-gcf8a8554
I1206 23:58:58.675978 103690 main.go:80] Attempting to open a gRPC connection with: "/var/lib/osd/driver/fake-csi.sock"
I1206 23:58:58.675985 103690 connection.go:68] Connecting to /var/lib/osd/driver/fake-csi.sock
I1206 23:58:58.676248 103690 connection.go:95] Still trying, connection is CONNECTING
I1206 23:58:58.676381 103690 connection.go:92] Connected
I1206 23:58:58.676391 103690 main.go:88] Calling CSI driver to discover driver name.
I1206 23:58:58.676396 103690 connection.go:136] GRPC call: /csi.v1.Identity/GetPluginInfo
I1206 23:58:58.676399 103690 connection.go:137] GRPC request:
I1206 23:58:58.677359 103690 connection.go:139] GRPC response: name:"com.openstorage.fake" vendor_version:"0.2.0" manifest:<key:"driver" value:"fake" >
I1206 23:58:58.677413 103690 connection.go:140] GRPC error: <nil>
I1206 23:58:58.677419 103690 main.go:96] CSI driver name: "com.openstorage.fake"
I1206 23:58:58.677423 103690 main.go:100] Loading kubeconfig.
I1206 23:58:58.679844 103690 k8s_register.go:54] AttachRequired: false
I1206 23:58:58.679877 103690 k8s_register.go:55] PodInfoOnMountVersion: v1
I1206 23:58:58.679882 103690 k8s_register.go:58] Registering csidrivers
I1206 23:58:58.698919 103690 k8s_register.go:67] CSIDriver CRD registered
I1206 23:58:58.707564 103690 k8s_register.go:113] CSIDRiver object created for driver com.openstorage.fake
** Lastly I check the object:
(kubernetes) lpabon@localhost : ~/git/golang/kubernetes/src/k8s.io/kubernetes
$ cluster/kubectl.sh get csidrivers -o yaml
apiVersion: v1
items:
- apiVersion: csi.storage.k8s.io/v1alpha1
kind: CSIDriver
metadata:
creationTimestamp: "2018-12-07T04:58:58Z"
generation: 1
name: com.openstorage.fake
resourceVersion: "578"
selfLink: /apis/csi.storage.k8s.io/v1alpha1/csidrivers/com.openstorage.fake
uid: ce7a6403-f9dc-11e8-99a5-00155d0af703
spec:
attachRequired: false
podInfoOnMountVersion: v1
kind: List
metadata:
resourceVersion: ""
selfLink: ""
** All looks good
- Luis