mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-05 04:56:37 -03:00
change run user when userspace is not checked
This commit is contained in:
@@ -11,14 +11,23 @@ command: ["ash", "/tailscale/run.sh"]
|
||||
|
||||
tty: true
|
||||
|
||||
# It should run rootless. But needs test
|
||||
securityContext:
|
||||
{{- if .Values.addons.vpn.tailscale.userspace }}
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
runAsNonRoot: true
|
||||
readOnlyRootFilesystem: true
|
||||
{{- else }}
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
{{- end }}
|
||||
capabilities:
|
||||
add:
|
||||
- NET_ADMIN
|
||||
|
||||
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ $secretName }}
|
||||
|
||||
Reference in New Issue
Block a user