3 * Version information
\r
6 root@proxy:~# cat /etc/issue
\r
7 Ubuntu 16.04.2 LTS \n \l
\r
10 * Version information
\r
13 root@proxy:~# docker version
\r
19 Built: Tue Jan 31 23:35:14 2017
\r
20 OS/Arch: linux/amd64
\r
27 Built: Tue Jan 31 23:35:14 2017
\r
28 OS/Arch: linux/amd64
\r
31 ### [kubernetes](https://github.com/kubernetes/kubernetes) local cluster
\r
32 * Version information
\r
34 root@proxy:~# kubectl version
\r
35 Client Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.0-beta.0-dirty", GitCommit:"a0fb3baa71f1559fd42d1acd9cbdd8a55ab4dfff", GitTreeState:"dirty", BuildDate:"2017-12-13T09:22:09Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
\r
36 Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.0-beta.0-dirty", GitCommit:"a0fb3baa71f1559fd42d1acd9cbdd8a55ab4dfff", GitTreeState:"dirty", BuildDate:"2017-12-13T09:22:09Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
\r
38 * You can startup the k8s local cluster by executing commands blow:
\r
42 git clone https://github.com/kubernetes/kubernetes.git
\r
46 echo alias kubectl='$HOME/kubernetes/cluster/kubectl.sh' >> /etc/profile
\r
47 RUNTIME_CONFIG=settings.k8s.io/v1alpha1=true AUTHORIZATION_MODE=Node,RBAC hack/local-up-cluster.sh -O
\r
51 ### [opensds](https://github.com/opensds/opensds) local cluster
\r
52 * For testing purposes you can deploy OpenSDS local cluster referring to ```ansible/README.md```. Besides, you need to deploy opensds flexvolume plugin refering to ```nbp-ansible/README.md```.
\r
56 * Create service account, role and bind them.
\r
58 cd /opt/opensds-k8s-linux-amd64/provisioner
\r
59 kubectl create -f serviceaccount.yaml
\r
60 kubectl create -f clusterrole.yaml
\r
61 kubectl create -f clusterrolebinding.yaml
\r
64 * Change the opensds endpoint IP in pod-provisioner.yaml
\r
65 The IP (192.168.56.106) should be replaced with the OpenSDS osdslet actual endpoint IP.
\r
70 name: opensds-provisioner
\r
72 serviceAccount: opensds-provisioner
\r
74 - name: opensds-provisioner
\r
75 image: opensdsio/opensds-provisioner
\r
78 - "-endpoint=http://192.168.56.106:50040" # should be replaced
\r
79 imagePullPolicy: "IfNotPresent"
\r
82 * Create provisioner pod.
\r
84 kubectl create -f pod-provisioner.yaml
\r
87 * You can use the following cammands to test the OpenSDS FlexVolume and Proversioner functions.
\r
90 kubectl create -f sc.yaml # Create StorageClass
\r
91 kubectl create -f pvc.yaml # Create PVC
\r
92 kubectl create -f pod-application.yaml # Create busybox pod and mount the block storage.
\r
95 Execute the `findmnt|grep opensds` to confirm whether the volume has been provided.
\r
97 ## Clean up steps ##
\r
100 kubectl delete -f pod-application.yaml
\r
101 kubectl delete -f pvc.yaml
\r
102 kubectl delete -f sc.yaml
\r
104 kubectl delete -f pod-provisioner.yaml
\r
105 kubectl delete -f clusterrolebinding.yaml
\r
106 kubectl delete -f clusterrole.yaml
\r
107 kubectl delete -f serviceaccount.yaml
\r