Files
homelab-v/k8s/infra/vpn/netbird/agent/daemon-set.yaml
T
Vegard Hagen b605d48ec3 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]>
2025-08-05 21:05:34 +02:00

51 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: agent
namespace: netbird
spec:
selector:
matchLabels:
app: agent
template:
metadata:
labels:
app: agent
spec:
securityContext:
seccompProfile:
type: RuntimeDefault
sysctls:
# Considered unsafe, need to enable with kubelet argument.
# see https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls
- name: net.ipv4.conf.all.src_valid_mark
value: "1"
containers:
- name: agent
image: docker.io/netbirdio/netbird:0.52.2 # renovate: docker=docker.io/netbirdio/netbird
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: false
capabilities:
drop: [ ALL ]
add: [ NET_ADMIN, NET_RAW, PERFMON, BPF ]
envFrom:
- configMapRef:
name: agent-config
- secretRef:
name: agent-setup-key
volumeMounts:
- name: netbird
mountPath: /var/lib/netbird
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 4000m
volumes:
- name: netbird
emptyDir: { }