fix(netbird-dashboard): harden security

This commit is contained in:
Vegard Hagen
2025-01-05 14:59:24 +01:00
parent c9ffd698c8
commit 1c585e2ce4

View File

@@ -12,23 +12,38 @@ spec:
labels:
app.kubernetes.io/name: dashboard
spec:
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: dashboard
image: docker.io/netbirdio/dashboard:v2.8.2 # renovate: docker=docker.io/netbirdio/dashboard
envFrom:
- configMapRef:
name: dashboard-config
ports:
- name: http
containerPort: 80
readinessProbe:
httpGet:
path: /
port: http
resources:
requests:
memory: 32Mi
cpu: 10m
limits:
memory: 128Mi
cpu: 2000m
- name: dashboard
image: docker.io/netbirdio/dashboard:v2.8.2 # renovate: docker=docker.io/netbirdio/dashboard
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
capabilities:
drop: [ ALL ]
add: [ NET_BIND_SERVICE, CHOWN, SETGID, SETUID, DAC_OVERRIDE ]
envFrom:
- configMapRef:
name: dashboard-config
ports:
- name: http
containerPort: 80
volumeMounts:
- name: tmp
mountPath: /tmp
readinessProbe:
httpGet:
path: /
port: http
resources:
requests:
memory: 32Mi
cpu: 10m
limits:
memory: 128Mi
cpu: 2000m
volumes:
- name: tmp
emptyDir: { }