Discrepancy between persistent volume usage and ceph storage

Kubernetes does not release the blocks freed up by the filesystem.
Adding the discard mount option to the general storageclass and
allow the volume usage to track closer to the filesystem usage.

Change-Id: Ibd66ebcb578b74bf1cb8ae848f3b485fb1c14dfc
Closes-bug: 1869742
Signed-off-by: Elena Taivan <elena.taivan@windriver.com>
This commit is contained in:
Elena Taivan 2020-04-06 07:32:00 +00:00
parent d7474cf309
commit c608f2aaa9
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ parameters:
userSecretName: {{ $classConfig.userSecretName }}
imageFormat: {{ or $classConfig.imageFormat $defaults.imageFormat | quote }}
imageFeatures: {{ or $classConfig.imageFeatures $defaults.imageFeatures}}
mountOptions:
- discard
---
{{- end }}
{{- end }}