cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 5cee384d5173eadd25a377e2c4414e42ebaf3e43
parent cd351f013e0c5729e8bf84594219eda95c2c602f
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Fri,  6 Mar 2026 11:02:03 +0100

finish gotosocial migration

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>

Diffstat:
Aapps/talos_cluster/gotosocial/gotosocial-s3-sync-job.yaml | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
Mapps/talos_cluster/gotosocial/release.yaml | 25++++++++++++++++++++++---
2 files changed, 74 insertions(+), 3 deletions(-)

diff --git a/apps/talos_cluster/gotosocial/gotosocial-s3-sync-job.yaml b/apps/talos_cluster/gotosocial/gotosocial-s3-sync-job.yaml @@ -0,0 +1,52 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: gotosocial-s3-sync + namespace: gotosocial +spec: + template: + spec: + restartPolicy: Never + securityContext: + runAsNonRoot: true + runAsUser: 1000 + runAsGroup: 1000 + seccompProfile: + type: RuntimeDefault + containers: + - name: sync + image: amazon/aws-cli:latest + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + command: + - aws + - s3 + - sync + - /storage/ + - s3://midnightthoughts-gotosocial/ + - --endpoint-url + - https://hel1.your-objectstorage.com + env: + - name: AWS_ACCESS_KEY_ID + valueFrom: + secretKeyRef: + name: gotosocial-s3-secret + key: s3_access_key + - name: AWS_SECRET_ACCESS_KEY + valueFrom: + secretKeyRef: + name: gotosocial-s3-secret + key: s3_secret_key + - name: AWS_DEFAULT_REGION + value: hel1 + volumeMounts: + - name: storage + mountPath: /storage + subPath: storage + volumes: + - name: storage + persistentVolumeClaim: + claimName: gotosocial diff --git a/apps/talos_cluster/gotosocial/release.yaml b/apps/talos_cluster/gotosocial/release.yaml @@ -61,6 +61,28 @@ spec: key: smtp_password - name: GTS_SMTP_FROM value: "noreply@midnightthoughts.space" + - name: GTS_STORAGE_BACKEND + value: s3 + - name: GTS_STORAGE_S3_ENDPOINT + value: hel1.your-objectstorage.com + - name: GTS_STORAGE_S3_BUCKET + value: midnightthoughts-gotosocial + - name: GTS_STORAGE_S3_ACCESS_KEY_ID + valueFrom: + secretKeyRef: + name: gotosocial-s3-secret + key: s3_access_key + - name: GTS_STORAGE_S3_SECRET_KEY + valueFrom: + secretKeyRef: + name: gotosocial-s3-secret + key: s3_secret_key + - name: GTS_STORAGE_S3_USE_SSL + value: "true" + - name: GTS_STORAGE_S3_PROXY + value: "true" + - name: GTS_STORAGE_S3_BUCKET_LOOKUP + value: path ports: - containerPort: 8080 livenessProbe: @@ -83,9 +105,6 @@ spec: failureThreshold: 3 volumeMounts: - name: gotosocial - mountPath: /gotosocial/storage - subPath: storage - - name: gotosocial mountPath: /gotosocial/.cache subPath: .cache volumes: