cat loki-pvc.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: loki
namespace: monitoring #---指定namespace为monitoring
spec:
storageClassName: nfs-storage #---需要与上面创建的storageclass的名称一致
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi