40 lines
No EOL
1.2 KiB
YAML
40 lines
No EOL
1.2 KiB
YAML
# sX/vQ3gaDErEFr9wuYqlaJ/yWdswBMkY4wczeq6t3bEgwo2Ia+vHcN9pbf7dBjahEihjkZ7jS5W48DIfmOFsug==
|
|
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: migrate
|
|
namespace: darkdork-dev
|
|
spec:
|
|
template:
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: registry-credentials
|
|
containers:
|
|
- name: migrate
|
|
image: cr.forge.lan/darkdork-dev/pleroma:latest
|
|
command: [ "/bin/ash", "-c", "/opt/pleroma/bin/pleroma_ctl migrate" ]
|
|
env:
|
|
- name: DB_HOST
|
|
value: postgres
|
|
- name: DB_NAME
|
|
value: pleroma
|
|
- name: DB_USER
|
|
value: pleroma
|
|
- name: DB_PASS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: postgres
|
|
key: postgres-password
|
|
volumeMounts:
|
|
- name: pleroma-config-volume
|
|
mountPath: /etc/pleroma/config.exs
|
|
subPath: config.exs
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: pleroma-config-volume
|
|
configMap:
|
|
name: pleroma-config
|
|
defaultMode: 0640 # Pleroma is picky about config file permissions.
|
|
securityContext:
|
|
fsGroup: 1000 # Ensures pleroma can still read the config file |