Skip to content

Netbird Operator fails with 'envsubst: command not found' error #18

@mercedesyenzzz

Description

@mercedesyenzzz

Problem:

When deploying the Netbird Operator on my Talos Kubernetes cluster, the sidecar container for the apply-nbresource service fails with the following error:

bash: envsubst: command not found

Details:

  • This error occurs inside the apply-nbresource sidecar.
  • The failure suggests that the container image used for this sidecar does not contain the envsubst binary
  • As a result, the operator cannot render templates or complete its tasks as expected.

Steps to Reproduce:

  1. Deploy Netbird Operator in a Talos-managed Kubernetes cluster (my Talos cluster is using the following extensions: iscsi-tools, qemu-guest-agent, util-linux-tools)
  2. Observe the logs of the apply-nbresource sidecar container.
  3. Error appears: bash: envsubst: command not found

Expected Behavior:

  • The sidecar container should include envsubst so that startup scripts can run successfully.

Potential Solution:

  • Update the container image for the sidecar to include the envsubst binary (for Alpine images, use apk add --no-cache gettext; for Debian-based images, use apt-get install -y gettext-base).
  • Alternatively, modify the initialization scripts to avoid using envsubst or use a different templating approach that does not require extra binaries.

Environment:

  • Kubernetes: Talos
  • Operator: Netbird
  • Sidecar: apply-nbresource

Let me know if more details are needed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions