diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-08-07 18:47:39 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-08-07 18:47:39 +0200 |
commit | 79b191d207d7670295781c550847ce7d695cc388 (patch) | |
tree | 2b6fb60e40ab98b68d1bce6f8e96a528e99df265 /docs | |
parent | 9481fe4541a4f0abab6a4e76931a3d6bd9a5b8b0 (diff) | |
download | ands-79b191d207d7670295781c550847ce7d695cc388.tar.gz ands-79b191d207d7670295781c550847ce7d695cc388.tar.bz2 ands-79b191d207d7670295781c550847ce7d695cc388.tar.xz ands-79b191d207d7670295781c550847ce7d695cc388.zip |
Support for Samba/CIFS storage and a sample how to mount LSDF shares
Diffstat (limited to 'docs')
-rw-r--r-- | docs/samples/remote_storage/lsdf/lsdf-test.yml | 44 | ||||
-rw-r--r-- | docs/samples/remote_storage/lsdf/lsdf.yml | 38 |
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 |