kubectl get ns
gives the following namespaces
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
However when I am running the following helm
command
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
I am getting the following error
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"
can anyone point me to the reason why I might be getting the error?