我如何阻止OpenEBS卷由于磁盘压力而在Kubernetes 1.12中被驱逐?

时间:2019-01-17 05:10:46

标签: kubernetes openebs

我的OpenEBS卷被逐出。进一步分析,我发现以下状态:

$ ko get po --all-namespaces -o json | jq  '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | "\(.metadata.name): \(.status.message)"'

"monitoring-data-elasticsearch-master-0-4102165699-target-55n979: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5c9kmm: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5gv6wr: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5jb94k: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5jbwp6: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5lwj84: The node was low on resource: ephemeral-storage. Container cstor-volume-mgmt was using 44Ki, which exceeds its request of 0. Container cstor-istgt was using 28804832Ki, which exceeds its request of 0. Container maya-volume-exporter was using 33064Ki, which exceeds its request of 0. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5mrg69: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5pg6lv: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5sbm5n: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5wdx5k: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5xxxl4: Pod The node was low on resource: [DiskPressure]. "
"monitoring-data-elasticsearch-master-0-4102165699-target-5z7dgq: Pod The node was low on resource: [DiskPressure]. "

根本原因如下:

  

该节点的资源不足:临时存储。容器cstor-volume-mgmt使用的是44Ki,超出了其0的请求。容器cstor-istgt使用的是28804832Ki,超出了其0的请求。容器maya-volume-exporter使用了33064Ki,超出了其0的请求。 / p>

似乎我的POD逐渐被微量资源驱逐,例如28804832Ki〜27 Gi。

如何在OpenEBS卷上设置临时存储请求?

0 个答案:

没有答案