zl程序教程

您现在的位置是:首页 >  其它

当前栏目

课时 10 自测题

10 课时 自测题
2023-09-11 14:15:43 时间
  1. 使用存储快照功能需要用到哪些 Kubernetes API 资源对象?(多选题)
    A. VolumeSnapshot
    B. VolumeSnapshotClass
    C. VolumeSnapshotContent
    D. PersistentVolumeClaim

  2. 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

  3. 下列有关使用存储拓扑调度时对 StorageClass 的配置正确的有?(多选题)
    A. 需要通过设置 .volumeBindingMode: WaitForFirstConsumer 来声明 PVC 延时处理
    B. 可以通过 .allowedTopologies 限制动态生成的 PV 的拓扑限制,拓扑限制会写到动态生成的 PV .spec.nodeAffinity中
    C. 可以干预哪些需要使用该 StorageClass 动态生成 PV 对象的 PVC 的使用方 Pod 的可调度的 Node

  4. 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 对象中

  5. Kubernetes 中 Node 的拓扑信息记录在哪里?(单选题)
    A. .metadata.annotations
    B. .metadata.labels

  6. 在 Kubernetes 中使用自定义的拓扑(如 rack, foo, bar)是否需要相关组件做修改?(单选题)
    A. 是
    B. 否

  7. 可以限制 PV 对象可被访问拓扑位置限制的地方?(多选题)
    A. StorageClass: .allowedTopologies
    B. PV: .spec.nodeAffinity
    C. Node: .metadata.labels

  8. 下列有关如何使用存储拓扑调度的说法正确的有?(多选题)
    A. 声明 delay binding 的 StorageClass 对象(.volumeBindingMode=WaitForFirstConsumer)
    B. PVC 对象 .spec.storageClassName 指定为声明了 delay binding 的 StorageClass 对象
    C. 在静态(预)创建的 PV 上的 .spec.nodeAffinity 添加对使用该 PV 的 Pod 所在 Node 拓扑限制
    D. 在需要动态创建的 PV 所使用的 StorageClass 的 .allowedTopologies 中限制动态创建的存储能被使用的拓扑限制

  9. 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

  10. 下面在 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 中的拓扑信息是否匹配