summaryrefslogtreecommitdiffstats
path: root/docs/samples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/samples')
-rw-r--r--docs/samples/remote_storage/lsdf/lsdf-test.yml44
-rw-r--r--docs/samples/remote_storage/lsdf/lsdf.yml38
2 files changed, 82 insertions, 0 deletions
diff --git a/docs/samples/remote_storage/lsdf/lsdf-test.yml b/docs/samples/remote_storage/lsdf/lsdf-test.yml
new file mode 100644
index 0000000..c02a888
--- /dev/null
+++ b/docs/samples/remote_storage/lsdf/lsdf-test.yml
@@ -0,0 +1,44 @@
+apiVersion: template.openshift.io/v1
+kind: Template
+metadata:
+ annotations:
+ name: lsdf-test
+objects:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
+ name: lsdf-ips
+ spec:
+ volumeName: lsdf-ips
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: "10Ti"
+ - apiVersion: v1
+ kind: DeploymentConfig
+ metadata:
+ name: lsdf-test
+ spec:
+ replicas: 1
+ selector:
+ name: lsdf-test
+ strategy:
+ type: Recreate
+ template:
+ metadata:
+ labels:
+ name: lsdf-test
+ name: lsdf-test
+ spec:
+ volumes:
+ - name: lsdf-ips
+ persistentVolumeClaim:
+ claimName: lsdf-ips
+ containers:
+ - image: registry.access.redhat.com/rhel7/rhel:7.6
+ name: cifs-app
+ command: ["/bin/bash", "-c", "while true; do sleep 10; done"]
+ volumeMounts:
+ - name: lsdf-ips
+ mountPath: /mnt/lsdf
diff --git a/docs/samples/remote_storage/lsdf/lsdf.yml b/docs/samples/remote_storage/lsdf/lsdf.yml
new file mode 100644
index 0000000..c091870
--- /dev/null
+++ b/docs/samples/remote_storage/lsdf/lsdf.yml
@@ -0,0 +1,38 @@
+apiVersion: v1
+kind: Template
+metadata:
+ name: lsdf
+ annotations:
+ descriptions: "LSDF volumes"
+objects:
+ - apiVersion: v1
+ kind: Secret
+ metadata:
+ name: lsdf-csa
+ type: openshift.io/cifs
+ stringData:
+ username: "gf6501"
+ password: "<put_the_password_here>"
+ - apiVersion: v1
+ kind: PersistentVolume
+ metadata:
+ name: lsdf-ips
+ spec:
+ persistentVolumeReclaimPolicy: Retain
+ accessModes:
+ - ReadWriteMany
+ capacity:
+ storage: 100Ti
+ claimRef:
+ name: lsdf-ips
+ namespace: test
+ flexVolume:
+ driver: openshift.io/cifs
+ fsType: cifs
+ secretRef:
+ name: lsdf-csa
+ options:
+ networkPath: "//os.lsdf.kit.edu/ips-projects"
+ mountOptions: "vers=2.0,domain=os.lsdf.kit.edu,file_mode=0664,dir_mode=0775"
+
+ \ No newline at end of file