. Advertisement .
..3..
. Advertisement .
..4..
Here is the program I run:
portal-59978bff4d-2qkgf 0/1 Evicted 0 14m
release-mgmt-74995bc7dd-nzlgq 0/1 Evicted 0 8m20s
service-orchestration-79f8dc7dc-kx6g4 0/1 Evicted 0 7m31s
test-mgmt-7f977567d6-zl7cc 0/1 Evicted 0 8m17s
After I run, it returns an error:
The node was low on resource: ephemeral-storage
Does anyone have any suggestions for the problem below: the node was low on resource ephemeral storage in the programs – How to correct it?
The cause:
You are having troubles with this error because Pods are using the emptyDir volumes with no storage quotas, so they are excluded. Another reason is that there are a lot of log messages which consume the storage.
Solution:
You can limit the number of logs stored by configuring the Docker logging driver as the following:
To prevent containers from writing any amount of storage to their node filesystem, you also can install a quote like
limits.ephemeral-storage, requests.ephemeral-storage
.If you use emptyDir volumes, without storage quotas, your storage will be full.
To limit storage, set a quota
limits.ephemeral-storage, requests.ephemeral-storage
. Otherwise any container can write any amount to its node folder.A sample resource quota definition
Log files can also be a reason for this problem. This question is worth a look.