Re: Mounting Volumes inside OpenShift

2018-03-05 Thread Vyacheslav Semushin
2018-03-04 10:16 GMT+01:00 Gaurav Ojha :

> So, previously on my docker machine, I had a nfs-share/php folder at
> /data/docker which I mounted inside the docker container.
>
> How do I do the same in case of OpenShift? Is there no way to simply mount
> the volume inside OpenShift, or is it a requirement to have a NFS setup and
> then mount the volume through PVC?
>


Have you seen these links? They could help you to achieve what you want:

https://kubernetes.io/docs/concepts/storage/volumes/#nfs
https://github.com/kubernetes/examples/blob/master/staging/volumes/nfs/README.md

HTH

-- 
Slava Semushin | OpenShift
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Mounting Volumes inside OpenShift

2018-03-04 Thread Gaurav Ojha
Hi,

I am in need of some help.

I had a couple of applications deployed using Docker on a single server.
Recently I migrated everything to a OpenShift cluster, but currently on a
minimal All-in-One cluster.

I have a few folders which I want to mount inside the OpenShift Application.

A quick comparison would be evident from (this is what I have in my
docker-compose.yml)

volumes:
 - /data/docker/nfs-share/php:/usr/share/php

So, previously on my docker machine, I had a nfs-share/php folder at
/data/docker which I mounted inside the docker container.

How do I do the same in case of OpenShift? Is there no way to simply mount
the volume inside OpenShift, or is it a requirement to have a NFS setup and
then mount the volume through PVC?

Regards
Gaurav
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users