You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to deploy grafana and prometheus helm chart using terraform. I am facing issue while trying to setup annotations for ingress controller.
Here is the configuration I am using
resource "helm_release" "monitoring-stack" {
count = var.create_monitoring_stack ? 1 : 0
name = "monitor"
repository = "https://prometheus-community.github.io/helm-charts"
chart = "kube-prometheus-stack"
version = "35.5.1"
namespace = local.namespace
create_namespace = true
values = [
"${file(".${path.module}/values/grafana-values.yaml")}"
]
set {
name = "grafana.ingress.enabled"
value = "true"
}
set {
name = "grafana.ingress.hosts"
value = "[${var.monitor_host}]"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/group.name:shared-ingress"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/healthcheck-path:/health"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/success-codes:200"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/listen-ports:'[{\"HTTP\":80},{\"HTTPS\":443}]'"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/load-balancer-attributes:deletion_protection.enabled=true"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/scheme:internet-facing"
}
set {
name = "grafana.ingress.annotations"
value = "kubernetes.io/ingress.class:alb"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/certificate-arn:${var.certificate_arn}"
}
set {
name = "grafana.ingress.annotations"
value = "alb.ingress.kubernetes.io/target-type:ip"
}
}
What is the issue?
When running the apply, it is failing with the following error
Error: failed parsing key "grafana.ingress.annotations" with value alb.ingress.kubernetes.io/listen-ports:'[{"HTTP":80},{"HTTPS":443}]', key "{\"HTTPS\":443}]'" has no value
I tried escaping with \ and : itself, but nothing seems to work.
Would appreciate your help on this. Thank You.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Question
Hi, I am trying to deploy grafana and prometheus helm chart using terraform. I am facing issue while trying to setup annotations for ingress controller.
Here is the configuration I am using
What is the issue?
When running the apply, it is failing with the following error
I tried escaping with
\
and:
itself, but nothing seems to work.Would appreciate your help on this. Thank You.
The text was updated successfully, but these errors were encountered: