Thanks Stuart for the reply.
So below is th TF code…
resource “helm_release” “filebeat” {
count = var.install_filebeat ? 1 : 0
name = "filebeat"
repository = "https://helm.elastic.co"
chart = "filebeat"
version = "7.10.2"
namespace = var.monitoring_namespace
values = [templatefile("${path.module}/values.tmpl", {
cid: “omitted”,
cau: " omitted"
})]
}
AND below the template
filebeat.inputs:
- type: container
paths:
- /var/log/containers/*.log
processors:
- add_kubernetes_metadata:
matchers:
- logs_path:
logs_path: "/var/log/containers/"
cloud.id: {cid}**
**cloud.auth: {cau}
So no errors on TF plan and apply… but then the pod doesn’t get the new configuration at all neither restart or do anything. I also tried to scratch and rebuild everything but still nothing.
What’d be the problem? Obviously I’m doing something wrong but not sure what
Cheers