Skip to content

Issue with upgrading helm release version from "6.50.8" to "8.8.5" #3556

Open
@Prince300892

Description

I am facing an Issue while updating the helm release version of grafana from "6.50.8" to "8.8.5". I took below steps but I am still facing errors.

  1. simply updating the version to latest 8.8.5
  2. there is a pod anti affinity rule applied in grafana helm values in my terraform script which does not allow any new pod with label "grafana" to get deployed in grafana namespace. So I changed the labels but I get the below error.

anti-affinity block in my terraform script:
affinity = {
podAntiAffinity = {
requiredDuringSchedulingIgnoredDuringExecution = [
{
labelSelector = {
matchExpressions = [
{
key = "app.kubernetes.io/name"
operator = "In"
values = ["grafana"]
}
]
}
topologyKey = "kubernetes.io/hostname"
}
]
}
}


│ Error: "grafana" has no deployed releases

│ with module.grafana.helm_release.this,
│ on ../modules/grafana/main.tf line 158, in resource "helm_release" "this":
│ 158: resource "helm_release" "this" {

  1. tried deploying the pod by changing namespace name from "grafana" to "monitoring" and also the label in pod anti affinity rule value from "grafana" to "monitoring"

tried commenting the whole anti affinity block

Got Error as:
module.external_dns.kubernetes_service_account.this["grafana"]: Destroying... [id=grafana/external-dns]
module.external_dns.kubernetes_service_account.this["grafana"]: Destruction complete after 0s
module.external_dns_irsa.aws_iam_role.this[0]: Modifying... [id=cdhnonprod-core-cluster-external-dns]
module.external_dns_irsa.aws_iam_role.this[0]: Modifications complete after 1s [id=cdhnonprod-core-cluster-external-dns]

│ Error: failed to delete release: grafana

ERRO[0196] terraform invocation failed in /home/admin/Desktop/cdh-terraform-aws/env/nonprod/core-tier/.terragrunt-cache/cCvWM9IlukH82lxs-SuW4gu1YPE/BTnLPO3tjN_PBpTjstjhR45kKIM/core-tier prefix=[/home/admin/Desktop/cdh-terraform-aws/env/nonprod/core-tier]
ERRO[0196] 1 error occurred:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions