mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Use local disk for ConfigMap volume instead of tmpfs
So that ConfigMap volumes are counted against pod's storage quota.
This commit is contained in:
parent
6f288b31cf
commit
3567b1f9c4
@ -107,7 +107,10 @@ func (sv *configMapVolume) GetAttributes() volume.Attributes {
|
|||||||
|
|
||||||
// This is the spec for the volume that this plugin wraps.
|
// This is the spec for the volume that this plugin wraps.
|
||||||
var wrappedVolumeSpec = volume.Spec{
|
var wrappedVolumeSpec = volume.Spec{
|
||||||
Volume: &api.Volume{VolumeSource: api.VolumeSource{EmptyDir: &api.EmptyDirVolumeSource{Medium: api.StorageMediumMemory}}},
|
// This should be on a tmpfs instead of the local disk; the problem is
|
||||||
|
// charging the memory for the tmpfs to the right cgroup. We should make
|
||||||
|
// this a tmpfs when we can do the accounting correctly.
|
||||||
|
Volume: &api.Volume{VolumeSource: api.VolumeSource{EmptyDir: &api.EmptyDirVolumeSource{}}},
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *configMapVolumeMounter) SetUp(fsGroup *int64) error {
|
func (b *configMapVolumeMounter) SetUp(fsGroup *int64) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user