Skip to content
Discussion options

You must be logged in to vote

There are two separate issues here:

  1. The official chart renders customConfig through Helm's tpl, so Helm tries to evaluate Vector's {{ ... }} expression first.
  2. Filebeat's Kubernetes paths are not Vector's default paths. With the default legacy namespace, Vector uses .kubernetes.node_labels and .kubernetes.pod_namespace.

Escape the complete Vector expression through Helm's print function, while leaving the inner braces for Vector:

customConfig:
  sinks:
    kafka:
      # ...the rest of the Kafka sink config...
      topic: |-
        {{ print "{{ .kubernetes.node_labels.kubcluster_name }}-{{ .kubernetes.pod_namespace }}" }}

Then render the chart before deploying:

helm template my-vector …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mgfnv9
Comment options

Answer selected by mgfnv9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants