fix(netbird): update config after update

Default config moved with introduction of profiles in 0.52.
config.json is now called default.json. Removed env-var for config and
it resolves itself.

Also re-enabled the sysctls after getting related error in log

Signed-off-by: Vegard Hagen <[email protected]>
This commit is contained in:
Vegard Hagen
2025-08-05 21:05:34 +02:00
parent 3f90c83f26
commit b605d48ec3
2 changed files with 6 additions and 7 deletions
+5 -5
View File
@@ -15,11 +15,11 @@ spec:
securityContext: securityContext:
seccompProfile: seccompProfile:
type: RuntimeDefault type: RuntimeDefault
# sysctls: sysctls:
# # Considered unsafe, need to enable with kubelet argument. # Considered unsafe, need to enable with kubelet argument.
# # see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls # see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls
# - name: net.ipv4.conf.all.src_valid_mark - name: net.ipv4.conf.all.src_valid_mark
# value: "1" value: "1"
containers: containers:
- name: agent - name: agent
image: docker.io/netbirdio/netbird:0.52.2 # renovate: docker=docker.io/netbirdio/netbird image: docker.io/netbirdio/netbird:0.52.2 # renovate: docker=docker.io/netbirdio/netbird
@@ -6,10 +6,9 @@ configMapGenerator:
namespace: netbird namespace: netbird
literals: literals:
- NB_HOSTNAME="talos-agent" - NB_HOSTNAME="talos-agent"
- NB_LOG_LEVEL="warn" - NB_LOG_LEVEL="info"
- NB_MANAGEMENT_URL="https://netbird.stonegarden.dev" - NB_MANAGEMENT_URL="https://netbird.stonegarden.dev"
- NB_ADMIN_URL="https://netbird.stonegarden.dev" - NB_ADMIN_URL="https://netbird.stonegarden.dev"
- NB_CONFIG="/var/lib/netbird/config.json"
resources: resources:
- agent-setup-key.yaml - agent-setup-key.yaml