当前位置: 首页 > news >正文

【k8s】存储 pvc 参数列表

相关文章:
【K8s】初识PV和PVC
【k8s】存储 pv 参数列表
【k8s】存储 pvc 参数列表

1. pv概述

2. 参数列表

[root@paas-controller-3:/home/ubuntu]$ kubectl explain pvc.spec
KIND:     PersistentVolumeClaim
VERSION:  v1RESOURCE: spec <Object>DESCRIPTION:Spec defines the desired characteristics of a volume requested by a podauthor. More info:https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaimsPersistentVolumeClaimSpec describes the common attributes of storagedevices and allows a Source for provider-specific attributesFIELDS:accessModes  <[]string>AccessModes contains the desired access modes the volume should have. Moreinfo:https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1dataSource   <Object>This field can be used to specify either: * An existing VolumeSnapshotobject (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC(PersistentVolumeClaim) If the provisioner or an external controller cansupport the specified data source, it will create a new volume based on thecontents of the specified data source. If the AnyVolumeDataSource featuregate is enabled, this field will always have the same contents as theDataSourceRef field.dataSourceRef        <Object>Specifies the object from which to populate the volume with data, if anon-empty volume is desired. This may be any local object from a non-emptyAPI group (non core object) or a PersistentVolumeClaim object. When thisfield is specified, volume binding will only succeed if the type of thespecified object matches some installed volume populator or dynamicprovisioner. This field will replace the functionality of the DataSourcefield and as such if both fields are non-empty, they must have the samevalue. For backwards compatibility, both fields (DataSource andDataSourceRef) will be set to the same value automatically if one of themis empty and the other is non-empty. There are two important differencesbetween DataSource and DataSourceRef: * While DataSource only allows twospecific types of objects, DataSourceRef allows any non-core object, aswell as PersistentVolumeClaim objects.* While DataSource ignores disallowed values (dropping them), DataSourceRefpreserves all values, and generates an error if a disallowed value isspecified. (Alpha) Using this field requires the AnyVolumeDataSourcefeature gate to be enabled.resources    <Object>Resources represents the minimum resources the volume should have. IfRecoverVolumeExpansionFailure feature is enabled users are allowed tospecify resource requirements that are lower than previous value but muststill be higher than capacity recorded in the status field of the claim.More info:https://kubernetes.io/docs/concepts/storage/persistent-volumes#resourcesselector     <Object>A label query over volumes to consider for binding.storageClassName     <string>Name of the StorageClass required by the claim. More info:https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1volumeMode   <string>volumeMode defines what type of volume is required by the claim. Value ofFilesystem is implied when not included in claim spec.volumeName   <string>VolumeName is the binding reference to the PersistentVolume backing thisclaim.
  • selector
    通过该标签,选定符合条件的pv
    注意:pvc没有亲和性参数
http://www.lryc.cn/news/355284.html

相关文章:

  • 数据集007:垃圾分类数据集(含数据集下载链接)
  • Spring常用注解(超全面)
  • HQL面试题练习 —— 合并活动日期
  • 基于SVm和随机森林算法模型的中国黄金价格预测分析与研究
  • Host头攻击-使用反向代理服务器或负载均衡器来传递路由信息
  • AWS容器之Amazon ECS
  • win10/win11 优先调用大核的电源计划性能设置
  • 模型实战(20)之 yolov8分类模型训练自己的数据集
  • 好消息!PMP纸质证书可以领取啦!(22年11月至23年8月)
  • select函数(Unix系统)
  • 设计模式16——策略模式
  • Putty: 随心御剑——远程启动服务工具plink
  • Vectorworks 2024 Mac安装包下载Vectorworks 2024安装教程3D建模设计工具
  • CSRF 攻击详解
  • 单链表OJ题(课堂总结)
  • cad角度如何精确到0.1
  • STM32H743+USBHID+CubeMX配置
  • 路由传参和获取参数的三种方式
  • 代码随想录算法训练营第四十一天|509. 斐波那契数、70. 爬楼梯、746. 使用最小花费爬楼梯
  • HTML5表单控件:新时代的交互魔法手册
  • WordPress安装插件失败No working transports found
  • 多线程理论及操作
  • 本周 MoonBit 核心库进行 API 整理工作、工具链持续完善
  • Golang net/http标准库常用方法(三)
  • 24校招总结
  • PHP APCu缓存使用与避坑
  • mybatis xml
  • “不是我兄弟”!刘强东内部“狼性训话”流出!
  • 函数调用时长的关键点:揭秘参数位置的秘密
  • 【数据分析面试】54.员工信息(HR)数据库搭建