fix(iam): give the SMTP->Gotify relay a writable /tmp
The relay stages each message in /tmp before pushing. readOnlyRootFilesystem left it with a read-only /tmp, so it answered '250 queued' and then dropped the message: no Gotify push, no error line. Mount an emptyDir at /tmp.
This commit is contained in:
@@ -36,6 +36,9 @@ spec:
|
|||||||
runAsGroup: 65534
|
runAsGroup: 65534
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- name: smtp-gotify
|
- name: smtp-gotify
|
||||||
image: quay.io/reiml/smtp-gotify:latest
|
image: quay.io/reiml/smtp-gotify:latest
|
||||||
@@ -58,6 +61,12 @@ spec:
|
|||||||
- name: smtp
|
- name: smtp
|
||||||
containerPort: 2525
|
containerPort: 2525
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
# The relay stages each message in /tmp before the Gotify push.
|
||||||
|
# With readOnlyRootFilesystem it accepted SMTP (250 queued) and
|
||||||
|
# then silently dropped the message: no push, no error.
|
||||||
|
- name: tmp
|
||||||
|
mountPath: /tmp
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
|||||||
Reference in New Issue
Block a user