Adding various things like upgrade of openebs
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: rclone-dropbox-config
|
||||
namespace: mailu
|
||||
apiVersion: v1
|
||||
data:
|
||||
rclone.conf: |
|
||||
[dropbox]
|
||||
type = dropbox
|
||||
token = {"access_token":"17hvEArIh3cAAAAAAAGTXUfwkGdz8EC_rDcEseLmSRltQoUz_AVceuUewx0sGMQ1","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
|
||||
---
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: backup-mailu
|
||||
namespace: mailu
|
||||
spec:
|
||||
schedule: "30 4 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: backup-mailu
|
||||
image: iptizer/swiss
|
||||
volumeMounts:
|
||||
- name: rclone-dropbox-config
|
||||
mountPath: /rclone.conf
|
||||
subPath: "rclone.conf"
|
||||
- mountPath: /data/
|
||||
name: data
|
||||
command:
|
||||
- "/bin/bash"
|
||||
- "-c"
|
||||
args:
|
||||
- "cd / && tar zcvf - /data/ | /usr/bin/rclone --config /rclone.conf -v rcat dropbox:server_backup/$( /bin/expr $( date +%m ) % 3 )_$( /bin/expr $( date +%j ) % 3 )_mailu.tar.gz"
|
||||
volumes:
|
||||
- name: rclone-dropbox-config
|
||||
configMap:
|
||||
name: rclone-dropbox-config
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: mailu-storage
|
||||
restartPolicy: Never
|
||||
@@ -0,0 +1,34 @@
|
||||
mailuVersion: master
|
||||
hostnames:
|
||||
- mail.moritzgraf.de
|
||||
- moritzgraf.de
|
||||
domain: moritzgraf.de
|
||||
secretKey: fa5faeD9aegietaesahbiequ5Pe9au
|
||||
subnet: 10.233.0.0/16
|
||||
|
||||
clamav:
|
||||
enabled: false
|
||||
|
||||
admin:
|
||||
resources:
|
||||
requests:
|
||||
memory: 200Mi
|
||||
cpu: 100m
|
||||
limits:
|
||||
memory: 500Mi
|
||||
cpu: 500m
|
||||
|
||||
dovecot:
|
||||
resources:
|
||||
requests:
|
||||
memory: 200Mi
|
||||
cpu: 100m
|
||||
limits:
|
||||
memory: 500Mi
|
||||
cpu: 500m
|
||||
|
||||
certmanager:
|
||||
issuerType: ClusterIssuer
|
||||
issuerName: "letsencrypt-prod"
|
||||
persistence:
|
||||
storageClass: openebs-hostpath
|
||||
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
run: restore
|
||||
name: restore
|
||||
spec:
|
||||
containers:
|
||||
- image: iptizer/swiss
|
||||
name: restore
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /data/
|
||||
name: data
|
||||
command:
|
||||
- "sleep"
|
||||
- "3600"
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: mailu-storage
|
||||
status: {}
|
||||
Reference in New Issue
Block a user