Files
homelab-v/k8s/infra/vpn/netbird/agent/daemon-set.yaml
T
Vegard Hagen 5c0c3366b2 feat(netbird): add netbird router agent
This should allow me to connect to services from a Netbird VPN connection
2024-11-17 17:03:29 +01:00

42 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: netbird-agent
namespace: netbird
spec:
selector:
matchLabels:
app: netbird
template:
metadata:
labels:
app: netbird
spec:
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: netbird
image: netbirdio/netbird:0.28.7 # renovate: docker=netbirdio/netbird
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
add: [ NET_ADMIN, PERFMON, BPF ]
envFrom:
- configMapRef:
name: agent-config
env:
- name: NB_SETUP_KEY
valueFrom:
secretKeyRef:
name: agent-setup-key
key: setupKey
volumeMounts:
- name: config
mountPath: /config
volumes:
- name: config
emptyDir: { }