4 * Version information
\r
7 root@proxy:~# cat /etc/issue
\r
8 Ubuntu 16.04.2 LTS \n \l
\r
12 * Version information
\r
15 root@proxy:~# docker version
\r
21 Built: Tue Jan 31 23:35:14 2017
\r
22 OS/Arch: linux/amd64
\r
29 Built: Tue Jan 31 23:35:14 2017
\r
30 OS/Arch: linux/amd64
\r
33 ### [kubernetes](https://github.com/kubernetes/kubernetes) local cluster
\r
34 * You can startup `v1.10.0` k8s local cluster by executing commands blow:
\r
38 git clone https://github.com/kubernetes/kubernetes.git
\r
40 git checkout v1.10.0
\r
42 echo alias kubectl='$HOME/kubernetes/cluster/kubectl.sh' >> /etc/profile
\r
43 ALLOW_PRIVILEGED=true FEATURE_GATES=CSIPersistentVolume=true,MountPropagation=true RUNTIME_CONFIG="storage.k8s.io/v1alpha1=true" LOG_LEVEL=5 hack/local-up-cluster.sh
\r
46 ### [opensds](https://github.com/opensds/opensds) local cluster
\r
47 * For testing purposes you can deploy OpenSDS refering to [OpenSDS Cluster Installation through Ansible](https://github.com/opensds/opensds/wiki/OpenSDS-Cluster-Installation-through-Ansible).
\r
51 * Change the workplace
\r
54 cd /opt/opensds-k8s-linux-amd64
\r
57 * Create example nginx application
\r
60 kubectl create -f csi/examples/kubernetes/nginx.yaml
\r
63 This example will mount a opensds volume into ```/var/lib/www/html```.
\r
65 You can use the following command to inspect into nginx container to verify it.
\r
68 docker exec -it <nginx container id> /bin/bash
\r
71 ## Clean up steps ##
\r
73 Clean up example nginx application and opensds CSI pods by the following commands.
\r
76 kubectl delete -f csi/examples/kubernetes/nginx.yaml
\r
77 kubectl delete -f csi/deploy/kubernetes
\r