mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-05 05:19:59 +00:00
initial refactor
This commit is contained in:
51
apps/roundcube/roundcubemail-cronjob-cleandb.yaml
Normal file
51
apps/roundcube/roundcubemail-cronjob-cleandb.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: cleandb
|
||||
namespace: roundcube
|
||||
spec:
|
||||
schedule: "@daily"
|
||||
concurrencyPolicy: Replace
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
name: cleandb
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
containers:
|
||||
- name: roundcubemail
|
||||
image: roundcube/roundcubemail:latest-fpm-alpine
|
||||
imagePullPolicy: ""
|
||||
env:
|
||||
- name: ROUNDCUBEMAIL_DB_TYPE
|
||||
value: pgsql
|
||||
- name: ROUNDCUBEMAIL_DB_HOST
|
||||
value: roundcubedb
|
||||
- name: ROUNDCUBEMAIL_DB_NAME
|
||||
value: roundcube
|
||||
- name: ROUNDCUBEMAIL_DB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: roundcubemail-shared-secret
|
||||
key: DB_USER
|
||||
- name: ROUNDCUBEMAIL_DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: roundcubemail-shared-secret
|
||||
key: DB_PASSWORD
|
||||
- name: ROUNDCUBEMAIL_DES_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: roundcubemail-shared-secret
|
||||
key: DES_KEY
|
||||
- name: ROUNDCUBEMAIL_DEFAULT_HOST
|
||||
value: tls://mail.michaelthomson.dev
|
||||
- name: ROUNDCUBEMAIL_SMTP_SERVER
|
||||
value: tls://mail.michaelthomson.dev
|
||||
- name: ROUNDCUBEMAIL_SKIN
|
||||
value: elastic
|
||||
- name: ROUNDCUBEMAIL_PLUGINS
|
||||
value: archive,zipdownload,newmail_notifier
|
||||
args:
|
||||
- bin/cleandb.sh
|
||||
Reference in New Issue
Block a user