gitea/manifests/common/job.yaml

30 lines
620 B
YAML
Raw Permalink Normal View History

2024-05-10 09:36:32 +00:00
---
apiVersion: batch/v1
kind: Job
metadata:
2024-12-22 05:08:23 +00:00
name: migrate
2024-05-10 09:36:32 +00:00
spec:
template:
spec:
restartPolicy: Never
containers:
2024-12-22 05:08:23 +00:00
- name: migrate
2024-05-10 09:36:32 +00:00
image: "$IMAGEAPP"
command:
2024-12-22 05:08:23 +00:00
- gitea
- migrate
2024-05-10 09:36:32 +00:00
volumeMounts:
- name: config
mountPath: /etc/gitea/app.ini
subPath: app.ini
- name: secrets
mountPath: /etc/gitea/secrets/
volumes:
- name: config
configMap:
2024-05-15 21:40:08 +00:00
name: gitea
2024-05-10 09:36:32 +00:00
- name: secrets
secret:
2024-05-22 16:21:43 +00:00
secretName: gitea
2024-05-10 09:36:32 +00:00
backoffLimit: 4