Skip to content

Commit

Permalink
[networking] fixed unifi permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Dec 27, 2023
1 parent 1ce74c7 commit 234cfba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/networking/unifi/controller/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ spec:
containers:
- name: unifi-controller
image: jacobalberty/unifi:v7.4.162
lifecycle:
postStart:
exec:
command: ["sudo", "chown", "-R", "/unifi"]
securityContext:
runAsUser: 999
runAsGroup: 999
fsGroup: 999
fsGroupChangePolicy: OnRootMismatch
fsGroupChangePolicy: Always
allowPrivilegeEscalation: true
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "0"
envFrom:
- configMapRef:
name: unifi-controller-cm
Expand Down

0 comments on commit 234cfba

Please sign in to comment.