#1837·kubeshark

Helm chart fails when tap.tls is set to false

Author: alongirCreated Feb 6, 2026Updated Apr 27, 2026

Description

The Helm chart fails with an error when tap.tls is set to false in the Helm values.

Error Message

bash
Error: INSTALLATION FAILED: 1 error occurred:
    * DaemonSet.apps "kubeshark-worker-daemon-set" is invalid: [spec.template.spec.volumes[3].hostPath: Forbidden: may not specify more than 1 volume type, spec.template.spec.containers[0].volumeMounts[2].name: Not found: "data"

Root Cause

The - name: data volume definition is nested inside the {{- if .Values.tap.tls }} conditional block. When tap.tls is false, the volume name is not output, causing the subsequent volume attributes to be incorrectly appended to the previous volume definition.

Steps to Reproduce

  1. Set tap.tls: false in Helm values
  2. Install kubeshark using Helm
  3. Observe the installation failure

Expected Behavior

The Helm chart should install successfully regardless of the tap.tls setting.

Related

PR #1830