imfreedom/k8s-cluster

Parents 998736369c9b
Children 94ae2c7d3b0b
Move to the internal cron in reviewboard that actually works and gave reviewboard some more ram to handle it.
--- a/50-reviews.imfreedom.org/reviewboard/cron.yaml Sun Jul 10 21:41:09 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
----
-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
----
--- a/50-reviews.imfreedom.org/reviewboard/kustomization.yaml Sun Jul 10 21:41:09 2022 -0500
+++ b/50-reviews.imfreedom.org/reviewboard/kustomization.yaml Tue Aug 30 15:53:52 2022 -0500
@@ -14,5 +14,4 @@
role: reviewboard
resources:
- manifest.yaml
- - cron.yaml
---
--- a/50-reviews.imfreedom.org/reviewboard/manifest.yaml Sun Jul 10 21:41:09 2022 -0500
+++ b/50-reviews.imfreedom.org/reviewboard/manifest.yaml Tue Aug 30 15:53:52 2022 -0500
@@ -132,16 +132,18 @@
key: db
- name: MEMCACHED_SERVER
value: reviews-memcached
+ - name: REVIEWBOARD_CRONTAB
+ value: /site/conf/cron.conf
ports:
- name: http
containerPort: 8080
resources:
limits:
cpu: 500m
- memory: 768Mi
+ memory: 1024Mi
requests:
cpu: 250m
- memory: 384Mi
+ memory: 512Mi
volumeMounts:
- mountPath: /site
name: reviews-reviewboard