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
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumes:
|
||||
- name: tmp
|
||||
emptyDir: {}
|
||||
containers:
|
||||
- name: smtp-gotify
|
||||
image: quay.io/reiml/smtp-gotify:latest
|
||||
@@ -58,6 +61,12 @@ spec:
|
||||
- name: smtp
|
||||
containerPort: 2525
|
||||
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:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
|
||||
Reference in New Issue
Block a user