VolumeAttachment
apiVersion: storage.k8s.io/v1
import "k8s.io/api/storage/v1"
VolumeAttachment
VolumeAttachment 捕捉將指定的卷掛載或卸載到指定節點的意圖。
VolumeAttachment 物件是非命名空間的。
apiVersion: storage.k8s.io/v1
kind: VolumeAttachment
metadata (ObjectMeta)
標準物件中繼資料。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (VolumeAttachmentSpec), 必填
spec 代表所需掛載/卸載卷行為的規格。由 Kubernetes 系統填入。
status (VolumeAttachmentStatus)
status 代表 VolumeAttachment 請求的狀態。由完成掛載或卸載操作的實體(即 external-attacher)填入。
VolumeAttachmentSpec
VolumeAttachmentSpec 是 VolumeAttachment 請求的規格。
attacher (string), 必填
attacher 指出必須處理此請求的卷驅動程式名稱。這是 GetPluginName() 傳回的名稱。
nodeName (string), 必填
nodeName 代表卷應掛載到的節點。
source (VolumeAttachmentSource), 必填
source 代表應掛載的卷。
VolumeAttachmentSource 代表應掛載的卷。目前只有 PersistenVolumes 可以透過外部掛載程式掛載,未來我們也可能允許 Pod 中的內嵌卷。只能設定一個成員。
source.inlineVolumeSpec (PersistentVolumeSpec)
inlineVolumeSpec 包含掛載由 Pod 的內嵌 VolumeSource 定義的持久卷所需的所有資訊。此欄位僅針對 CSIMigration 功能填入。它包含從 Pod 的內嵌 VolumeSource 翻譯到 PersistentVolumeSpec 的欄位。此欄位為 Beta 級別,且僅由啟用 CSIMigration 功能的伺服器處理。
source.persistentVolumeName (string)
persistentVolumeName 代表要掛載的持久卷名稱。
VolumeAttachmentStatus
VolumeAttachmentStatus 是 VolumeAttachment 請求的狀態。
attached (boolean), 必填
attached 指出卷已成功掛載。此欄位必須僅由完成掛載操作的實體(即 external-attacher)設定。
attachError (VolumeError)
attachError 代表在掛載操作期間遇到的最後一個錯誤(如果有的話)。此欄位必須僅由完成掛載操作的實體(即 external-attacher)設定。
attachmentMetadata (map[string]string)
attachmentMetadata 填入掛載操作傳回的任何資訊,在成功掛載時,必須傳遞到後續的 WaitForAttach 或 Mount 呼叫中。此欄位必須僅由完成掛載操作的實體(即 external-attacher)設定。
detachError (VolumeError)
detachError 代表在卸載操作期間遇到的最後一個錯誤(如果有的話)。此欄位必須僅由完成卸載操作的實體(即 external-attacher)設定。
VolumeAttachmentList
VolumeAttachmentList 是 VolumeAttachment 物件的集合。
apiVersion: storage.k8s.io/v1
kind: VolumeAttachmentList
metadata (ListMeta)
標準清單中繼資料 更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
items ([]VolumeAttachment), 必填
items 是 VolumeAttachments 的清單
操作
get
讀取指定的 VolumeAttachment
HTTP 請求
GET /apis/storage.k8s.io/v1/volumeattachments/{name}
參數
name (在路徑中): string, 必填
VolumeAttachment 的名稱
pretty (在查詢中): string
回應
200 (VolumeAttachment): OK
401: 未經授權
get
讀取指定 VolumeAttachment 的狀態
HTTP 請求
GET /apis/storage.k8s.io/v1/volumeattachments/{name}/status
參數
name (在路徑中): string, 必填
VolumeAttachment 的名稱
pretty (在查詢中): string
回應
200 (VolumeAttachment): OK
401: 未經授權
list
列出或監看 VolumeAttachment 類型的物件
HTTP 請求
GET /apis/storage.k8s.io/v1/volumeattachments
參數
allowWatchBookmarks (在查詢中): boolean
continue (在查詢中): string
fieldSelector (在查詢中): string
labelSelector (在查詢中): string
limit (在查詢中): integer
pretty (在查詢中): string
resourceVersion (在查詢中): string
resourceVersionMatch (在查詢中): string
sendInitialEvents (在查詢中): boolean
timeoutSeconds (在查詢中): integer
watch (在查詢中): boolean
回應
200 (VolumeAttachmentList): OK
401: 未經授權
create
建立 VolumeAttachment
HTTP 請求
POST /apis/storage.k8s.io/v1/volumeattachments
參數
body: VolumeAttachment, 必填
dryRun (在查詢中): string
fieldManager (in query): 字串
fieldValidation (in query): 字串
pretty (在查詢中): string
回應
200 (VolumeAttachment): OK
201 (VolumeAttachment): 已建立
202 (VolumeAttachment): 已接受
401: 未經授權
update
取代指定的 VolumeAttachment
HTTP 請求
PUT /apis/storage.k8s.io/v1/volumeattachments/{name}
參數
name (在路徑中): string, 必填
VolumeAttachment 的名稱
body: VolumeAttachment, 必填
dryRun (在查詢中): string
fieldManager (in query): 字串
fieldValidation (in query): 字串
pretty (在查詢中): string
回應
200 (VolumeAttachment): OK
201 (VolumeAttachment): 已建立
401: 未經授權
update
取代指定 VolumeAttachment 的狀態
HTTP 請求
PUT /apis/storage.k8s.io/v1/volumeattachments/{name}/status
參數
name (在路徑中): string, 必填
VolumeAttachment 的名稱
body: VolumeAttachment, 必填
dryRun (在查詢中): string
fieldManager (in query): 字串
fieldValidation (in query): 字串
pretty (在查詢中): string
回應
200 (VolumeAttachment): OK
201 (VolumeAttachment): 已建立
401: 未經授權
patch
部分更新指定的 VolumeAttachment
HTTP 請求
PATCH /apis/storage.k8s.io/v1/volumeattachments/{name}
參數
name (在路徑中): string, 必填
VolumeAttachment 的名稱
body: Patch,必要
dryRun (在查詢中): string
fieldManager (in query): 字串
fieldValidation (in query): 字串
force (in query): 布林值
pretty (在查詢中): string
回應
200 (VolumeAttachment): OK
201 (VolumeAttachment): 已建立
401: 未經授權
patch
部分更新指定 VolumeAttachment 的狀態
HTTP 請求
PATCH /apis/storage.k8s.io/v1/volumeattachments/{name}/status
參數
name (在路徑中): string, 必填
VolumeAttachment 的名稱
body: Patch,必要
dryRun (在查詢中): string
fieldManager (in query): 字串
fieldValidation (in query): 字串
force (in query): 布林值
pretty (在查詢中): string
回應
200 (VolumeAttachment): OK
201 (VolumeAttachment): 已建立
401: 未經授權
delete
刪除 VolumeAttachment
HTTP 請求
DELETE /apis/storage.k8s.io/v1/volumeattachments/{name}
參數
name (在路徑中): string, 必填
VolumeAttachment 的名稱
body: DeleteOptions
dryRun (在查詢中): string
gracePeriodSeconds (in query): 整數
pretty (在查詢中): string
propagationPolicy (in query): 字串
回應
200 (VolumeAttachment): OK
202 (VolumeAttachment): 已接受
401: 未經授權
deletecollection
刪除 VolumeAttachment 集合
HTTP 請求
DELETE /apis/storage.k8s.io/v1/volumeattachments
參數
body: DeleteOptions
continue (在查詢中): string
dryRun (在查詢中): string
fieldSelector (在查詢中): string
gracePeriodSeconds (in query): 整數
labelSelector (在查詢中): string
limit (在查詢中): integer
pretty (在查詢中): string
propagationPolicy (in query): 字串
resourceVersion (在查詢中): string
resourceVersionMatch (在查詢中): string
sendInitialEvents (在查詢中): boolean
timeoutSeconds (在查詢中): integer
回應
200 (Status): 成功
401: 未經授權
此頁面為自動產生。
如果您計畫回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。 修正可能需要在 Kubernetes 專案的其他地方進行。