2022-08-24 07:42:18 +00:00
|
|
|
apiVersion: batch/v1
|
2022-05-14 09:47:19 +00:00
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: mastodon-media-remove
|
|
|
|
namespace: mastodon
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: mastodon
|
|
|
|
app.kubernetes.io/instance: "k8s.social"
|
|
|
|
app.kubernetes.io/component: utils
|
|
|
|
annotations:
|
|
|
|
description: |
|
|
|
|
Runs weekly to remove old media
|
|
|
|
spec:
|
|
|
|
schedule: 0 0 * * 0
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
backoffLimit: 3
|
|
|
|
ttlSecondsAfterFinished: 86400
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: mastodon-media-remove
|
|
|
|
spec:
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
containers:
|
|
|
|
- name: mastodon-media-remove
|
2022-05-27 03:20:44 +00:00
|
|
|
image: "tootsuite/mastodon:v3.5.3"
|
2022-05-14 09:47:19 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
command:
|
|
|
|
- bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
bin/tootctl media remove
|
|
|
|
bin/tootctl preview_cards remove
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: mastodon-env
|
|
|
|
- secretRef:
|
|
|
|
name: mastodon
|
|
|
|
env:
|
|
|
|
- name: "PORT"
|
|
|
|
value: "3000"
|
|
|
|
---
|
|
|
|
|
|
|
|
|
2022-08-24 07:42:18 +00:00
|
|
|
apiVersion: batch/v1
|
2022-05-14 09:47:19 +00:00
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: mastodon-assets-precompile
|
|
|
|
namespace: mastodon
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: mastodon
|
|
|
|
app.kubernetes.io/instance: "k8s.social"
|
|
|
|
app.kubernetes.io/component: utils
|
|
|
|
annotations:
|
|
|
|
description: |
|
|
|
|
Manually trigger post-install to pre-compile the assets
|
|
|
|
spec:
|
|
|
|
schedule: 0 0 * * 0
|
|
|
|
suspend: true
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
backoffLimit: 3
|
|
|
|
ttlSecondsAfterFinished: 86400
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: mastodon-assets-precompile
|
|
|
|
spec:
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
containers:
|
|
|
|
- name: mastodon-assets-precompile
|
2022-05-27 03:20:44 +00:00
|
|
|
image: "tootsuite/mastodon:v3.5.3"
|
2022-05-14 09:47:19 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
command:
|
|
|
|
- bash
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
bundle exec rake assets:precompile && yarn cache clean
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: mastodon-env
|
|
|
|
- secretRef:
|
|
|
|
name: mastodon
|
|
|
|
env:
|
|
|
|
- name: "PORT"
|
|
|
|
value: "3000"
|
|
|
|
---
|
|
|
|
|
2022-08-24 07:42:18 +00:00
|
|
|
apiVersion: batch/v1
|
2022-05-14 09:47:19 +00:00
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: mastodon-db-migrate
|
|
|
|
namespace: mastodon
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: mastodon
|
|
|
|
app.kubernetes.io/instance: "k8s.social"
|
|
|
|
app.kubernetes.io/component: utils
|
|
|
|
annotations:
|
|
|
|
description: |
|
|
|
|
Manually trigger post-install/upgrade to migrate the database schema
|
|
|
|
spec:
|
|
|
|
schedule: 0 0 * * 0
|
|
|
|
suspend: true
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
backoffLimit: 3
|
|
|
|
ttlSecondsAfterFinished: 86400
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: mastodon-db-migrate
|
|
|
|
spec:
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
containers:
|
|
|
|
- name: mastodon-db-migrate
|
2022-05-27 03:20:44 +00:00
|
|
|
image: "tootsuite/mastodon:v3.5.3"
|
2022-05-14 09:47:19 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
command:
|
|
|
|
- bundle
|
|
|
|
- exec
|
|
|
|
- rake
|
|
|
|
- db:migrate
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: mastodon-env
|
|
|
|
- secretRef:
|
|
|
|
name: mastodon
|
|
|
|
env:
|
|
|
|
- name: "PORT"
|
|
|
|
value: "3000"
|
|
|
|
---
|