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:
- 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)
- Observe the logs of the apply-nbresource sidecar container.
- 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!
Problem:
When deploying the Netbird Operator on my Talos Kubernetes cluster, the sidecar container for the apply-nbresource service fails with the following error:
Details:
envsubstbinarySteps to Reproduce:
bash: envsubst: command not foundExpected Behavior:
envsubstso that startup scripts can run successfully.Potential Solution:
envsubstbinary (for Alpine images, useapk add --no-cache gettext; for Debian-based images, useapt-get install -y gettext-base).envsubstor use a different templating approach that does not require extra binaries.Environment:
Let me know if more details are needed!