test cronob
This commit is contained in:
parent
cf7eb73818
commit
78f67a7acf
@ -35,3 +35,37 @@ spec:
|
|||||||
storage: 1000Mi
|
storage: 1000Mi
|
||||||
storageClassName: local-path
|
storageClassName: local-path
|
||||||
volumeName: pvc-rss-data
|
volumeName: pvc-rss-data
|
||||||
|
---
|
||||||
|
apiVersion: "batch/v1"
|
||||||
|
kind: "CronJob"
|
||||||
|
metadata:
|
||||||
|
name: {{ include "ttrss.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "ttrss.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
schedule: "25 9 * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
automountServiceAccountToken: false
|
||||||
|
containers:
|
||||||
|
- name: "mydl-mongo-dump"
|
||||||
|
image: "docker.io/library/mariadb:10.2"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command : ["/bin/sh", "-c"]
|
||||||
|
args: [ "echo toto" ]
|
||||||
|
# TODO: volumemount avec le pvc deja cree ?
|
||||||
|
# volumeMounts:
|
||||||
|
# - mountPath: "/dump"
|
||||||
|
# name: "mydl-mongo-dump"
|
||||||
|
# TODO: surement des envs ?
|
||||||
|
# env:
|
||||||
|
# - name: "MONGO_INITDB_ROOT_USERNAME"
|
||||||
|
# value: "toto"
|
||||||
|
restartPolicy: "OnFailure"
|
||||||
|
# TODO: volumemount avec le pvc deja cree ?
|
||||||
|
# volumes:
|
||||||
|
# - name: "mydl-mongo-dump"
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: "mydl-mongo-dump"
|
||||||
Loading…
x
Reference in New Issue
Block a user