谁可以在kubernetes中创建持久卷?

时间:2018-04-25 12:27:17

标签: kubernetes

在kubernetes官方网站上提及如下PV和PVC。

A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an administrator. It is a resource in the cluster just like a node is a cluster resource. PVs are volume plugins like Volumes, but have a lifecycle independent of any individual pod that uses the PV. This API object captures the details of the implementation of the storage, be that NFS, iSCSI, or a cloud-provider-specific storage system.

A PersistentVolumeClaim (PVC) is a request for storage by a user. It is similar to a pod. Pods consume node resources and PVCs consume PV resources. Pods can request specific levels of resources (CPU and Memory). Claims can request specific size and access modes (e.g., can be mounted once read/write or many times read-only).

谁是这里的管理员?当他们以持续量观点提及它时?

1 个答案:

答案 0 :(得分:1)

此上下文中的管理员是群集的管理员。谁在部署PV / PVC。 (运营工程师,系统工程师,SysAdmin)

例如,工程师可以将AWS弹性文件系统配置为在Kubernetes群集中有可用空间,然后使用PV / PVC使其可用于群集中的特定pod容器。这意味着如果pod因任何原因被销毁,则PVC 中的数据将保持并可供其他资源使用。