Files
homelab-v/k8s/infra/vpn/netbird/management/deployment.yaml
T
renovate[bot]andVegard Hagen 77923604f2 chore(deps): renovate 2025-02-08
chore(deps): update ghcr.io/prometheus-community/charts/kube-prometheus-stack docker tag to v68

chore(deps): update helm release argo-cd to v7.8.2

chore(deps): update helm release argo-cd to v7.8.2

chore(deps): update netbird to v0.36.5

chore(deps): update netbirdio/relay docker tag to v0.36.5

chore(deps): update dependency crossplane-contrib/function-auto-ready to v0.4.1

chore(deps): update dependency crossplane-contrib/function-go-templating to v0.9.1

chore(deps): update dependency siderolabs/talos to v1.9.3

chore(deps): update keycloak docker tag to v24.4.9

chore(deps): update ghcr.io/prometheus-community/charts/kube-prometheus-stack docker tag to v68.5.0

chore(deps): update intel device plugins to v0.32.0

chore(deps): update cloudflare/cloudflared docker tag to v2025.2.0

chore(deps): update helm release authelia to v0.9.15

chore(deps): update proxmox-csi-plugin docker tag to v0.3.5

chore(deps): update sealed-secrets docker tag to v2.5.6

chore(deps): update terraform proxmox to v0.70.1

chore(deps): update cilium to v1.17.0

chore(deps): update dependency cert-manager/cert-manager to v1.17.0

chore(deps): update dependency crossplane-contrib/provider-keycloak to v1.11.0

chore(deps): update ghcr.io/onedr0p/radarr docker tag to v5.18.4

chore(deps): update ghcr.io/prometheus-community/charts/kube-prometheus-stack docker tag to v69
2025-02-08 22:08:28 +01:00

98 lines
2.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: management
namespace: netbird
spec:
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: management
template:
metadata:
labels:
app.kubernetes.io/name: management
annotations:
kubectl.kubernetes.io/default-container: management
spec:
nodeSelector:
topology.kubernetes.io/zone: abel
dnsConfig:
# Internal AdGuard Home DNS
nameservers:
- 192.168.1.253
dnsPolicy: None
securityContext:
seccompProfile:
type: RuntimeDefault
initContainers:
- name: configure
image: golang:latest
command: [ /bin/sh, -c ]
args:
- >
go install github.com/drone/envsubst/cmd/envsubst@latest &&
envsubst < /tmp/netbird/management.json.tmpl > /etc/netbird/management.json
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: false
capabilities:
drop: [ ALL ]
envFrom:
- configMapRef:
name: management-auth-config
- configMapRef:
name: management-connection-config
- secretRef:
name: authelia-oidc-credentials
- secretRef:
name: relay-secret
- secretRef:
name: coturn-credentials
volumeMounts:
- name: config
mountPath: /etc/netbird
- name: config-template
mountPath: /tmp/netbird
containers:
- name: management
image: docker.io/netbirdio/management:0.36.5 # renovate: docker=docker.io/netbirdio/management
args: [ --dns-domain, $(DNS_DOMAIN), --log-level, $(LOG_LEVEL), --log-file, console, --idp-sign-key-refresh-enabled ]
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: false
capabilities:
drop: [ ALL ]
add: [ NET_ADMIN, NET_RAW, PERFMON, BPF ]
envFrom:
- configMapRef:
name: management-runtime-config
volumeMounts:
- name: config
mountPath: /etc/netbird
- name: management
mountPath: /var/lib/netbird
ports:
- name: http
containerPort: 80
resources:
requests:
memory: 64Mi
cpu: 200m
limits:
memory: 512Mi
cpu: 4000m
volumes:
- name: config
emptyDir:
medium: Memory
- name: config-template
configMap:
defaultMode: 0644
name: management-config-template
- name: management
persistentVolumeClaim:
claimName: management