Skip to content

Commit 85505a5

Browse files
committed
updated examples to 0.3.0
1 parent 80dbac0 commit 85505a5

23 files changed

+111
-373
lines changed

example/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## How to test CernVM-FS CSI plugin with Kubernetes 1.11
2+
3+
You can use `plugin-deploy.sh` and `plugin-teardown.sh` helper scripts to help you deploy/tear down RBACs, sidecar containers and the plugin in one go. By default, they look for the YAML manifests in `../deploy/kubernetes`. You can override this path by running e.g. `$ ./plugin-deploy.sh /path/to/my/manifests`.
4+
5+
Once the plugin is successfuly deployed, you'll need to customize `storageclass.yaml` manifest to reflect your CVMFS setup. Please consult the documentation for info about available parameters.
6+
7+
After configuring the secrets, monitors, etc. you can deploy a testing Pod mounting a CVMFS volume:
8+
```bash
9+
$ kubectl create -f storageclass.yaml
10+
$ kubectl create -f pvc.yaml
11+
$ kubectl create -f pod.yaml
12+
```
13+
14+
Other helper scripts:
15+
* `logs.sh` output of the plugin
16+
* `exec-bash.sh` logs into the plugin's container and runs bash

example/base-deploy.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

example/base-teardown.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

example/csi-cvmfsplugin-attacher-rbac.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

example/csi-cvmfsplugin-attacher.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

example/csi-cvmfsplugin-provisioner-rbac.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

example/csi-cvmfsplugin-provisioner.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

example/csi-cvmfsplugin-rbac.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

example/csi-cvmfsplugin.yaml

Lines changed: 0 additions & 92 deletions
This file was deleted.

example/deployment.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: csicvmfs-demo-depl
5+
labels:
6+
app: csicvmfs-demo
7+
spec:
8+
replicas: 1
9+
selector:
10+
matchLabels:
11+
app: csicvmfs-demo
12+
template:
13+
metadata:
14+
labels:
15+
app: csicvmfs-demo
16+
spec:
17+
containers:
18+
- name: demo
19+
image: busybox
20+
imagePullPolicy: IfNotPresent
21+
command: [ "/bin/sh", "-c", "trap : TERM INT; (while true; do sleep 1000; done) & wait" ]
22+
volumeMounts:
23+
- name: mypvc
24+
mountPath: /cms.cern.ch
25+
volumes:
26+
- name: mypvc
27+
persistentVolumeClaim:
28+
claimName: csi-cvmfs-pvc
29+
readOnly: false

0 commit comments

Comments
 (0)