Yes, I meant dynamically, like I would $USER in linux. Is it possible? On Friday, 10 November 2017 10:55:58 UTC+8, Rodrigo Campos wrote: > > On Thursday, November 9, 2017, lppier <mads...@gmail.com <javascript:>> > wrote: > >> In my pod yaml file, I need to mount the user's current directory for use >> within the container. >> >> - hostPath: >> path: /nfs/data1/home/cys >> >> >> where cys is the user. >> How can I grab the current linux user in the pod spec? I can't seem to >> find any info on this. >> > > What do you mean with "current user"? The user running the pod? That can > be specified in the yaml statically. I can't think of anything dynamic, so > not sure what you mean :-/ > >
-- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.