question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filebeat: wrong type for value, extraVolumes/extraVolumeMounts

See original GitHub issue

Chart version: 7.2.1-0

Kubernetes version: N/A

Kubernetes provider: E.g. GKE (Google Kubernetes Engine) Rancher

Helm Version: 2.9.1 and 3.0.0-alpha.2

Describe the bug: When helm templateing the filebeat chart I’m getting a type error for values passed in under extraVolumes and extraVolumeMounts

Steps to reproduce:

  1. apply the volume config below!

Expected behavior: Pass in extra volumes and mount them without error

Provide logs and/or server output (if relevant): filebeat/templates/daemonset.yaml:67:14: executing "filebeat/templates/daemonset.yaml" at <.Values.extraVolumes>: wrong type for value; expected string; got []interface {} Any additional context:

extraVolumeMounts:
  - name: varlog
    mounthPath: /var/log
    readOnly: true
  - name: rkelog
    mountPath: /var/lib/rancher/rke/log
    reandOnly: true
  # - name: extras
  #   mountPath: /usr/share/extras
  #   readOnly: true

extraVolumes:
  - name: varlog
    hostPath:
      path: /var/log
  - name: rkelog
    hostPath:
      path: /var/lib/rancher/rke/log
  # - name: extras
  #   emptyDir: {}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
spencergilbertcommented, Jul 29, 2019

@zeysh i talked to a team mate of mine and he pointed out if you put a | in front the valuemount key it should work…

extraVolumeMounts: | 
  - name: containerd
    mountPath: /var/log/containerd
    readOnly: true
1reaction
zeyshcommented, Jul 29, 2019

Hi,

Same problem for me. I have tried it for containerd logs.

extraVolumeMounts:
  - name: containerd
    mountPath: /var/log/containerd
    readOnly: true
==> Linting .
[ERROR] templates/: render error in "filebeat/templates/daemonset.yaml": template: filebeat/templates/daemonset.yaml:138:14: executing "filebeat/templates/daemonset.yaml" at <.Values.extraVolumeMounts>: wrong type for value; expected string; got []interface {}

Error: 1 chart(s) linted, 1 chart(s) failed
Read more comments on GitHub >

github_iconTop Results From Across the Web

Filebeat reading entire mounted azure file from start - Beats
Hi. I have an Azure file that I want to monitor using FileBeat. I am using the helm chart for this purpose, with...
Read more >
stable/filebeat/values.yaml - helm-charts
When a key contains a period, use this format for setting values on the command line: 46. # --set config."http\.enabled"=true.
Read more >
helm-charts - stable - filebeat - templates - daemonset.yaml
name: {{ template "filebeat.fullname" . }} ... type: RollingUpdate. 18. rollingUpdate: ... Values.annotations | indent 8 }}.
Read more >
K8s Elasticsearch with filebeat is keeping 'not ready' after ...
At the first time, It works fine with below installation. ## elasticsearch, filebeat # kubectl apply -f pv.yaml # helm install -f values.yaml...
Read more >
Kubernetes Observability - Part VII: Logging with Loki
Next, fill the extraVolumes and extraVolumeMounts variables in your loki-stack chart's custom-values.yaml file, so that the just-applied ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found