kubectl get ns提供了以下名称空间
communication-prod Active 69d
custom-metrics Active 164d
default Active 218d
kube-node-lease Active 218d
kube-public Active 218d
kube-system Active 218d
notification Active 191d
notification-stock Active 118d但是,当我运行以下helm命令时
helm install instana-agent \
--repo https://agents.instana.io/helm \
--namespace instana-agent \
--create-namespace \
--set agent.key=foo\
--set agent.downloadKey=bar \
--set agent.endpointHost=ingress-green-saas.instana.io \
--set agent.endpointPort=443 \
--set cluster.name='communication-engine-prod' \
--set zone.name='asia-south1' \
instana-agent我收到以下错误
Error: INSTALLATION FAILED: rendered manifests contain a resource that already
exists. Unable to continue with install: ClusterRole "instana-agent" 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
"instana-agent"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "instana-agent"有人能告诉我为什么我会犯这个错误吗?
发布于 2022-08-25 20:07:15
这看起来就像您使用kubectl安装了代理,然后在尝试helm之前删除了名称空间。您需要删除第一次安装尝试中创建的所有资源。最简单的方法是这样做:
kubectl delete -f configuration.yaml
使用用于安装代理的相同配置文件(如果不修改Instana仪表板,也可以从Instana仪表板生成一个新的配置文件)。您还可以使用kubectl get clusterroles和kubectl get clusterrolebindings获取需要用kubectl delete删除的实体。
https://stackoverflow.com/questions/72481357
复制相似问题