【问题标题】:How can I run helm upgrade on velero deployment?如何在 velero 部署上运行 helm upgrade?
【发布时间】:2021-03-22 04:17:39
【问题描述】:

每当我尝试在 kubernetes(AKS) 中的 velero 部署上运行 helm upgrade 时,它​​都会尝试删除 velero 的 CRD,并在删除一些后失败。

helm upgrade velero vmware-tanzu/velero --namespace velero \
  --set-file credentials.secretContents.cloud=./credentials-velero \
  --set configuration.provider=azure \
  --set configuration.backupStorageLocation.name=azure \
  --set configuration.backupStorageLocation.bucket='velero' \
  --set configuration.backupStorageLocation.config.resourceGroup=us-dev \
  --set configuration.backupStorageLocation.config.storageAccount=store1 \
  --set snapshotsEnabled=true \
  --set deployRestic=true \
  --set configuration.volumeSnapshotLocation.name=azure \
  --set configuration.volumeSnapshotLocation.config.resourceGroup=us-dev \
  --set image.repository=velero/velero \
  --set image.pullPolicy=Always \
  --set initContainers[0].name=velero-plugin-for-microsoft-azure \
  --set initContainers[0].image=velero/velero-plugin-for-microsoft-azure:master \
  --set initContainers[0].volumeMounts[0].mountPath=/target \
  --set initContainers[0].volumeMounts[0].name=plugins

我什至尝试使用以下选项,但仍然出现同样的错误

--reuse-values

我做错了吗?

【问题讨论】:

    标签: azure kubernetes kubernetes-helm helmfile velero


    【解决方案1】:

    在回答你之前,我使用Install Velero with HELM in GCP 安装和测试。所以你可以从文章中找到我的Values.yaml内容。

    helm install vmware-tanzu/velero --name velero --namespace velero -f Values.yaml --version 2.8.7 --set imageTag=1.2.0安装成功

    回答您的问题后,我能够使用与您相同的命令升级velero

    helm upgrade velero vmware-tanzu/velero --namespace velero --reuse-values \
      --set image.pullPolicy=IfNotPresent
    
    

    很遗憾,还没有在 Azure 上进行检查。 请添加更多详细信息/日志,指定您无法删除的确切 CRD。

    【讨论】:

    • 以下是 helm upgrade 尝试删除的 crd backups.velero.io backupstoragelocations.velero.io deletebackuprequests.velero.io downloadrequests.velero.io podvolumebackups.velero.io podvolumerestores.velero。 io resticrepositories.velero.io restores.velero.io schedules.velero.io serverstatusrequests.velero.io volumesnapshotlocations.velero.io
    • 当我运行 helm upgrade 它失败并出现错误升级失败,无法删除 backupstoragelocations.velero.io
    猜你喜欢
    • 2021-10-01
    • 2021-01-27
    • 2021-12-13
    • 2018-11-08
    • 2020-04-22
    • 2022-11-11
    • 1970-01-01
    • 2018-11-29
    • 1970-01-01
    相关资源
    最近更新 更多