30 lines
620 B
YAML
30 lines
620 B
YAML
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: migrate
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: migrate
|
|
image: "$IMAGEAPP"
|
|
command:
|
|
- gitea
|
|
- migrate
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/gitea/app.ini
|
|
subPath: app.ini
|
|
- name: secrets
|
|
mountPath: /etc/gitea/secrets/
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: gitea
|
|
- name: secrets
|
|
secret:
|
|
secretName: gitea
|
|
backoffLimit: 4
|