Hi Gaurav, We usually don't change a pod directly -- we change the deployment configuration (dc) that creates and manages the pod. Changing the dc automatically destroys existing pods and creates new ones, using the updated configuration.
[]s, Fernando Lozano On Wed, Mar 7, 2018 at 10:42 AM, Vyacheslav Semushin <[email protected]> wrote: > 2018-03-07 4:00 GMT+01:00 Gaurav Ojha <[email protected]>: > >> Hi, >> >> I would like some help from you guys if possible. >> >> I am trying to mount a directory on my host machine to my OpenShift >> instance. >> >> As per the kubernetes document here >> <https://kubernetes.io/docs/concepts/storage/volumes/#hostpath> , it >> mentions that changing the pod spec by simply adding the hostPath volume >> should work, however, when I do that, OpenShift throws an error whereby it >> says that I am not permitted to modify other than a few handful. >> > > If you provide also error message, we'll be able to provide a better > solution for you. > > As far I remember Kubernetes doesn't allow to _modify_ all the pod fields > but only subset of them. Have you tried to _create_ a pod instead of > editing it? > > Is there any way to get this permission? I already have added set the >> allowHostDirVolumePlugin to true and my containers run as root. >> > > So, you've already seen this https://docs.openshift.org/1. > 2/admin_guide/manage_scc.html#use-the-hostpath-volume-plugin ? > > > -- > Slava Semushin | OpenShift > > _______________________________________________ > users mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > >
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
