Skip to content

Commit

Permalink
Merge pull request #10 from rootfs/dev
Browse files Browse the repository at this point in the history
update example and readme
  • Loading branch information
rootfs authored Nov 27, 2017
2 parents a81d5b5 + ed20558 commit 6b5e93a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ Run a local kubernetes cluster built from latest master code

## Run Storage Provider

### Use Flex drivers
### Use HostPath drivers

Go to drivers and run:

```bash
_output/flexadapter --drivername mydriver --driverpath ./flexadapter/examples/simple-nfs-flexdriver/nfs --endpoint unix://tmp/csi.sock --nodeid foobar
_output/hostpath --drivername mydriver --endpoint unix://tmp/csi.sock --nodeid foobar -v=5
```

### Start external provisioner
Expand All @@ -31,12 +31,12 @@ _output/flexadapter --drivername mydriver --driverpath ./flexadapter/examples/si
_output/csi-provisioner -kubeconfig /var/run/kubernetes/admin.kubeconfig -alsologtostderr -provisioner csi-flex
```

### Create Storage class and PVC
### Create Storage class, PVC, and Pod

```bash
kubectl create -f examples/sc.yaml
kubectl create -f example/pvc1.yaml
kubectl describe pv
kubectl create -f example/pvc2.yaml
kubectl create -f example/pod.yaml
```

### Delete PVC
Expand Down
17 changes: 17 additions & 0 deletions examples/pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: web-server
spec:
containers:
- name: web-server
image: nginx
volumeMounts:
- mountPath: /var/lib/www/html
name: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: pv2
readOnly: false

0 comments on commit 6b5e93a

Please sign in to comment.