我对CSI应该如何在k8s中工作感到有点困惑。
我想做的是在我的k8s集群中设置Veeam备份。当我运行precheck for Kasten installation - curl https://docs.kasten.io/tools/k10_primer.sh | bash时,它还显示了合并错误:
Missing/Failed to Fetch CSIDriver Object
CSI Provisioner doesn't have VolumeSnapshotClass - Error我的集群位于Azure AKS。我看到的存储类如下:
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
azurefile file.csi.azure.com Delete Immediate true 19d
azurefile-csi file.csi.azure.com Delete Immediate true 88d
azurefile-csi-premium file.csi.azure.com Delete Immediate true 88d
azurefile-premium file.csi.azure.com Delete Immediate true 19d
default (default) disk.csi.azure.com Delete WaitForFirstConsumer true 88d
managed disk.csi.azure.com Delete WaitForFirstConsumer true 19d
managed-csi disk.csi.azure.com Delete WaitForFirstConsumer true 88d
managed-csi-premium disk.csi.azure.com Delete WaitForFirstConsumer true 88d
managed-premium disk.csi.azure.com Delete WaitForFirstConsumer true 19d
nfs-client cluster.local/nfs-subdir-external-provisioner Delete Immediate true 10d我主要使用的是default存储类(我的数据库正在使用这个类,我真的很想备份它)。
所以我用的是CSI供给器。错误说它需要VolumeSnapshotClass。但是应该在其他一些k8s对象中引用它,比如存储类吗?我不明白的是它是如何联系在一起的。
谢谢您的澄清。
编辑
所以我补充说:
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
driver: disk.csi.azure.com
metadata:
annotations:
k10.kasten.io/is-snapshot-class: "true"
name: csi-azure-disk-snapclass
deletionPolicy: RetainCSI Provisioner doesn't have VolumeSnapshotClass - Error误差消失。唯一剩下的就是这个:Missing/Failed to Fetch CSIDriver Object
发布于 2022-02-04 10:40:33
回答我自己的问题。我需要补充一句:
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
driver: disk.csi.azure.com
metadata:
annotations:
k10.kasten.io/is-snapshot-class: "true"
name: csi-azure-disk-snapclass
deletionPolicy: Retain根据这个博客,https://blog.kasten.io/protect-cloud-native-applications-on-hpe-ezmeral-with-kasten-k10 Missing/Failed to Fetch CSIDriver Object可以被忽略:
缺少/未能获取CSIDriver对象错误可被忽略,因为并非所有CSI实现都有CSIDriver对象
。
https://stackoverflow.com/questions/70984563
复制相似问题