简体   繁体   中英

What is the maximum storage capacity for kubernetes PersistentVolumes

Here is an example of .yml file to create an PersistentVolume on a kubernetes cluster:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: task-pv-volume
  namespace: prisma
  labels:
    type: local
spec:
  storageClassName: manual
  capacity:
    storage: xxGi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/data"

Can the storage capacity be more than the available storage capacity on the node with the smallest disk in the cluster? Or the maximum is the sum of available disk on the cluster nodes?

generally you are binding the pv to an external storage volume your cloud provider offers (for example - aws EBS), abstracted as a StorageClass , in a size that matches your needs. cluster nodes come and go, you shouldn't rely on their storage.

quick guides: gcp aws azure

The hostPath mode is intended only for local testing so the requested size does absolutely nothing I'm pretty sure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM