gpt4 book ai didi

kubernetes - Rancher 的 Helm 操作失败

转载 作者:行者123 更新时间:2023-12-02 02:30:50 31 4
gpt4 key购买 nike

我已经使用 helm3 在 microk8s 上安装了新的 rancher,并且 helm 操作定期失败。我对去哪里寻找什么一无所知。你能指出我正确的方向吗?

Waiting for Kubernetes API to be available
helm upgrade --history-max=5 --install=true --namespace=rancher-operator-system --reset-values=true --timeout=5m0s --values=/home/shell/helm/values-rancher-operator-crd-0.1.100.yaml --version=0.1.100 --wait=true rancher-operator-crd /home/shell/helm/rancher-operator-crd-0.1.100.tgz
Release "rancher-operator-crd" does not exist. Installing it now.
W1129 15:37:01.028852 39 warnings.go:67] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
Error: rendered manifests contain a resource that already exists. Unable to continue with install: CustomResourceDefinition "clusters.rancher.cattle.io" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "rancher-operator-crd"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "rancher-operator-system"
Waiting for Kubernetes API to be available
helm upgrade --history-max=5 --install=true --namespace=fleet-system --reset-values=true --timeout=5m0s --version=0.3.100 --wait=true fleet-crd /home/shell/helm/fleet-crd-0.3.100.tgz
Release "fleet-crd" does not exist. Installing it now.
W1129 15:36:48.667489 41 warnings.go:67] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
Error: rendered manifests contain a resource that already exists. Unable to continue with install: CustomResourceDefinition "bundles.fleet.cattle.io" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "fleet-crd"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "fleet-system"

也许问题是我用helm3安装的?我想使用最新的技术,所以我想使用helm3。那可能吗?如果没有,是否可以并排使用两个 Helm ?

最佳答案

我想我找到了一个解决方案(至少是舰队部分,但这种方法可能会帮助您解决 Rancher 运算符(operator)部分)。

基本上:

完成此操作后,它创建了缺失的“fleet-local”命名空间、Fleet Cluster 和 Fleet Cluster Group。

来自最新 helm 存储库的 Rancher 版本 2.5.7。

引用:https://www.reddit.com/r/rancher/comments/md963s/rancher_25_inside_docker_desktop_single_node/

关于kubernetes - Rancher 的 Helm 操作失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65062528/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com