下面是我的PersistentVolume和PersistentVolumeClaim和config:
apiVersion: v1
kind: PersistentVolume
metadata:
name: elasticsearch-pv
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
hostPath:
path: "/data/elasticsearch"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: elasticsearch-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
容量和请求的资源仅为10Gb。但我的弹性搜索实例(其存储装载到elasticsearch-pvc
)目前在主机上占用大约30Gb。这是hostPath
PersistentVolume的预期行为吗?