Give gluetun a writable /tmp/gluetun
gluetun logs "clearing public IP data: open /tmp/gluetun/ip: permission denied" every few seconds and never persists its public IP. It creates /tmp/gluetun with mode 0644, i.e. without the execute bit needed to enter the directory; it runs as root, but with all capabilities except NET_ADMIN dropped there is no DAC_OVERRIDE left to paper over the missing bit. An emptyDir provides the path with usable permissions.
This commit is contained in:
1 file changed
+12
@@ -158,6 +158,15 @@ spec:
|
|||||||
name: gluetun-config
|
name: gluetun-config
|
||||||
- mountPath: /dev/net/tun
|
- mountPath: /dev/net/tun
|
||||||
name: dev-net-tun
|
name: dev-net-tun
|
||||||
|
# gluetun creates /tmp/gluetun (its public-IP cache) mode 0644,
|
||||||
|
# i.e. without the execute bit it needs to enter its own
|
||||||
|
# directory. It runs as root but with all capabilities except
|
||||||
|
# NET_ADMIN dropped, so DAC_OVERRIDE no longer papers over that
|
||||||
|
# and every write fails with "clearing public IP data: open
|
||||||
|
# /tmp/gluetun/ip: permission denied". An emptyDir provides the
|
||||||
|
# path with usable permissions.
|
||||||
|
- mountPath: /tmp/gluetun
|
||||||
|
name: gluetun-tmp
|
||||||
{{- if .Values.qbittorrent.enabled }}
|
{{- if .Values.qbittorrent.enabled }}
|
||||||
- name: qbittorrent
|
- name: qbittorrent
|
||||||
image: "{{ .Values.qbittorrent.image.repository }}:{{ .Values.qbittorrent.image.tag }}"
|
image: "{{ .Values.qbittorrent.image.repository }}:{{ .Values.qbittorrent.image.tag }}"
|
||||||
@@ -422,6 +431,9 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: /dev/net/tun
|
path: /dev/net/tun
|
||||||
type: CharDevice
|
type: CharDevice
|
||||||
|
# Writable /tmp/gluetun for gluetun's public-IP cache (see the mount).
|
||||||
|
- name: gluetun-tmp
|
||||||
|
emptyDir: {}
|
||||||
{{- if or .Values.qbittorrent.enabled .Values.radarr.enabled .Values.sonarr.enabled }}
|
{{- if or .Values.qbittorrent.enabled .Values.radarr.enabled .Values.sonarr.enabled }}
|
||||||
- name: media-downloads
|
- name: media-downloads
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in new issue
Block a user