Re: [kubernetes-users] How to caclulate the resource usage in a particular namespace?

2016-11-28 Thread zzuwxf
Seems the tutorial is for kubernetes 1.2, it does not work for latest kubernetes, any formal way to calculate the resource usage if I want to do metering/billing? thanks a lot. On Monday, November 28, 2016 at 11:18:10 AM UTC+8, zzu...@gmail.com wrote: > Thanks a lot, I will have a try. > > On M

Re: [kubernetes-users] How to caclulate the resource usage in a particular namespace?

2016-11-27 Thread zzuwxf
Thanks a lot, I will have a try. On Monday, November 28, 2016 at 11:02:42 AM UTC+8, David Oppenheimer wrote: > You can do a watch on the pods to be notified when they start and stop. This > tutorial appears to show you how to do it (I skimmed it and it looks about > right). > > > As an alterna

Re: [kubernetes-users] How to caclulate the resource usage in a particular namespace?

2016-11-27 Thread zzuwxf
Thanks, so I need to call API periodically (for example, call API every five minutes)? but what if the containers are started/shutdown during the period(let's say, five minutes? in such condition, the usage won't be calculated. I am wondering if there is any container usage events which could

[kubernetes-users] How to caclulate the resource usage in a particular namespace?

2016-11-24 Thread zzuwxf
Hi, there I am a newbie to kubernetes, Anyone knows how to caclulate the resource usage (request usage) for a particular namespace in a period of time? Is there any api I could use? any suggestions? thanks a lot. -- You received this message because you are subscribed to the Google Groups "K