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:
Paul Morie 2016-05-07 09:17:06 -04:00
parent 6f288b31cf
commit 3567b1f9c4

View File

@ -107,7 +107,10 @@ func (sv *configMapVolume) GetAttributes() volume.Attributes {
// This is the spec for the volume that this plugin wraps.
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 {