28 lines
681 B
YAML
28 lines
681 B
YAML
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: goeland
|
|
labels:
|
|
app.kubernetes.io/name: goeland
|
|
spec:
|
|
schedule: "0 0 * * Mon"
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: config
|
|
nfs:
|
|
server: 192.168.0.99
|
|
path: /mnt/test1/media/config/goeland/
|
|
containers:
|
|
- name: goeland
|
|
image: slurdge/goeland:latest
|
|
command: ["/bin/sh"]
|
|
args: ["-c","cd / && ./goeland -c data/config.toml run"]
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /data
|
|
|