assuming that i have a working kubernetes cluster installed
if i create a pod with a persistent volume claim requesting 1GB of storage and i bind it to a local directory or nfs server
will kubernetes monitor the amount of data in the volume and stop if from exceeding 1GB? if not how can i implement such quota management?
in short how can i limit the amount of persistent volume for a pod or deployment or namespace?
Asked
Active
Viewed 58 times
0
moses
- 83
- 1
- 12
-
It's up to the storage to do this, not Kubernetes. Which storage are you using? – Michael Hampton Dec 04 '18 at 15:58
-
not decided yet but any storage i can setup myself will do. like freenas – moses Dec 05 '18 at 19:21
-
https://kubernetes.io/docs/concepts/storage/storage-classes/ – Michael Hampton Dec 05 '18 at 19:54
1 Answers
0
kubernetes does not actually set any limits on storage.
it just uses the values specified to bind persistent volumes and persistent volume claims to each other
moses
- 83
- 1
- 12