change container to use alpine instead of curl
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: nextcloud-contact-backup
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
schedule: "0 0 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
ttlSecondsAfterFinished: 100
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: contact-backup
|
||||
image: alpine/curl
|
||||
env:
|
||||
- name: PI_USER_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-credentials
|
||||
key: PI_USER_USERNAME
|
||||
- name: PI_USER_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-credentials
|
||||
key: PI_USER_PASSWORD
|
||||
args:
|
||||
- -u
|
||||
- $(PI_USER_USERNAME):$(PI_USER_PASSWORD)
|
||||
- https://nextcloud.tryton.geeraert.eu/remote.php/dav/addressbooks/users/pi/contacts/?export
|
||||
- -o
|
||||
- /backup/contact.vcf
|
||||
volumeMounts:
|
||||
- name: contact
|
||||
mountPath: /backup
|
||||
volumes:
|
||||
- name: contact
|
||||
persistentVolumeClaim:
|
||||
claimName: contact
|
||||
restartPolicy: Never
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: contact
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
storageClassName: nfs-backup-storage-intelligent
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
Reference in New Issue
Block a user