I have removed all storage classes, created a new one and did another research. Now everything works as I expect. Thanks for help.
W dniu wtorek, 30 maja 2017 18:21:46 UTC+2 użytkownik Michelle Au napisał: > > If in your PVC, you: > > 1. Specify a storage class: Will try to find an existing PV with the same > storageclass. If none exists, it will try to dynamically provision one. > 2. Don't specify a storage class: If you have a default storageclass in > your cluster, it will dynamically provision one. Otherwise it will look > for PVs with an empty storageclass > 3. Specify empty storage class: It will look for PVs with an empty > storageclass > > It looks like your gp2 storageclass is set to be the default, when you > look at the annotations. (I think there is a display bug in kubectl > describe that shows the field as false). > > > On Sat, May 27, 2017 at 11:38 AM, <kape...@gmail.com <javascript:>> wrote: > >> OK, I think I got this now. >> If I use storage class in PVClaim kubernetes will try to find existing PV >> first. If there is no one, then it will be created automatically regardless >> if selected class is default or not. >> Correct me someone if I'm wrong here ;) >> >> -- >> 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-use...@googlegroups.com <javascript:>. >> To post to this group, send email to kubernet...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/kubernetes-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.