课时 10 自测题
使用存儲快照功能需要用到哪些 Kubernetes API 資源對象?(多選題)
A. VolumeSnapshot
B. VolumeSnapshotClass
C. VolumeSnapshotContent
D. PersistentVolumeClaim
Kubernetes 中基于 CSI 實現存儲快照(snapshot&restore)功能需要的組件有?(多選題)
A. Kubernetes csi-snapshotter Controller
B. 云存儲廠商基于存儲快照的 OpenAPI 實現的 Driver: Kubernetes csi-snapshotter GRPC server
C. Kubernetes csi-provisioner Controller
D. 云存儲廠商基于存儲快照 create 存儲的 OpenAPI 實現的 Driver: Kubernetes csi-provisioner GRPC server
下列有關使用存儲拓撲調度時對 StorageClass 的配置正確的有?(多選題)
A. 需要通過設置 .volumeBindingMode: WaitForFirstConsumer 來聲明 PVC 延時處理
B. 可以通過 .allowedTopologies 限制動態生成的 PV 的拓撲限制,拓撲限制會寫到動態生成的 PV .spec.nodeAffinity中
C. 可以干預哪些需要使用該 StorageClass 動態生成 PV 對象的 PVC 的使用方 Pod 的可調度的 Node
Kubernetes csi-snapshotter Controller 中實現的功能包括?(多選題)
A. watch VolumeSnapshot&&VolumeSnapshotContent 等 API 資源對象變化
B. 根據 VolumeSnapshot API 資源對象聲明調用相應云存儲 Driver(即 csi-snapshotter GRPC server)創建快照,并生成 VolumeSnapshotContent
C. bind VolumeSnapshot and VolumeSnapshotContent
D. 根據存儲快照 restore 數據到新的 PV 對象中
Kubernetes 中 Node 的拓撲信息記錄在哪里?(單選題)
A. .metadata.annotations
B. .metadata.labels
在 Kubernetes 中使用自定義的拓撲(如 rack, foo, bar)是否需要相關組件做修改?(單選題)
A. 是
B. 否
可以限制 PV 對象可被訪問拓撲位置限制的地方?(多選題)
A. StorageClass: .allowedTopologies
B. PV: .spec.nodeAffinity
C. Node: .metadata.labels
下列有關如何使用存儲拓撲調度的說法正確的有?(多選題)
A. 聲明 delay binding 的 StorageClass 對象(.volumeBindingMode=WaitForFirstConsumer)
B. PVC 對象 .spec.storageClassName 指定為聲明了 delay binding 的 StorageClass 對象
C. 在靜態(預)創建的 PV 上的 .spec.nodeAffinity 添加對使用該 PV 的 Pod 所在 Node 拓撲限制
D. 在需要動態創建的 PV 所使用的 StorageClass 的 .allowedTopologies 中限制動態創建的存儲能被使用的拓撲限制
Kubernetes 中為了支持存儲拓撲調度相關組件做的改變有?(多選題)
A. PersistentVolumeController 支持 PVC 與 PV 的 delay binding
B. 動態創建 PV 的 csi-provisioner 支持將第一個使用 PV 的 Pod 待運行 Node 的拓撲信息以及 StorageClass .allowedTopologies 傳遞給創建存儲的 Driver
C. Kube-Scheduler 結合 Pod 使用的 PVCs,預分配的 PV Node Affinity 以及 StorageClass .allowedTopologies 選擇合適的Node
下面在 Kube-Scheduler 中結合 Pod 中聲明的 PVCs 選擇 Node 過程描述正確的有?(單選題)
A. Pod 中已經 Bound 的 PVCs 在 Kube-Scheduler 不做處理
B. Pod 中所有 UnBound 的 PVCs 會先找到能匹配的 PV 列表,并 check PV 的 NodeAffinity 與 Node Labals 中的拓撲信息是否匹配
C. Pod 中需要 Dynamic Provisioning PV 的 PVCs,check StorageClass .allowedTopologies 與 Node Labals 中的拓撲信息是否匹配
總結
- 上一篇: 应用存储和持久化数据卷:核心知识
- 下一篇: 应用存储和持久化数据卷:存储快照与拓扑调