我正在运行一个包含 8 个工作节点和 3 个主节点的 k8 集群。我的 Pod 因临时存储问题而不断被驱逐。以下是我在 Evicted pod 上遇到的错误:
Message: The node was low on resource: ephemeral-storage. Container xpaas-logger was using 30108Ki, which exceeds its request of 0. Container wso2am-gateway-am was using 406468Ki, which exceeds its request of 0.
Run Code Online (Sandbox Code Playgroud)
为了克服上述错误,我向我的命名空间添加了临时存储限制和请求。
apiVersion: v1
kind: LimitRange
metadata:
name: ephemeral-storage-limit-range
spec:
limits:
- default:
ephemeral-storage: 2Gi
defaultRequest:
ephemeral-storage: 130Mi
type: Container
Run Code Online (Sandbox Code Playgroud)
即使在将上述限制和请求添加到我的命名空间之后,我的 pod 仍达到其限制,然后被驱逐。
Message: Pod ephemeral local storage usage exceeds the total limit of containers 2Gi.
Run Code Online (Sandbox Code Playgroud)
如何监控我的临时存储,它存储在我的实例上的什么位置?如何根据大小将 docker logrotate …