imfreedom/k8s-cluster

fc71e853c3aa
Add a new deployment for moving the imf wiki to mkdocs
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: reviews-reviewboard-update-search-index
spec:
schedule: "*/10 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: update-search-index
image: rwgrim/reviewboard-app:latest
imagePullPolicy: Always
command:
- "/venv/bin/python"
- "/venv/bin/rb-site"
- "manage"
- "/site"
- "update_index"
- "--"
- "--age"
- "1"
volumeMounts:
- mountPath: /site
name: reviews-reviewboard
readOnly: false
subPath: reviewboard
restartPolicy: OnFailure
securityContext:
runAsUser: 1001
runAsGroup: 1001
volumes:
- name: reviews-reviewboard
persistentVolumeClaim:
claimName: reviews-reviewboard
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: reviews-reviewboard-clear-expired-sessions
spec:
schedule: "0 6 * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: clear-expired-sessions
image: rwgrim/reviewboard-app:latest
imagePullPolicy: Always
command:
- "/venv/bin/python"
- "/venv/bin/rb-site"
- "manage"
- "/site"
- "clearsessions"
volumeMounts:
- mountPath: /site
name: reviews-reviewboard
readOnly: false
subPath: reviewboard
restartPolicy: OnFailure
securityContext:
runAsUser: 1001
runAsGroup: 1001
volumes:
- name: reviews-reviewboard
persistentVolumeClaim:
claimName: reviews-reviewboard
---