Merge pull request 'apps(osint): move osint-db onto a linode-local PVC' (#32) from wt/t_f459753c into master

This commit is contained in:
sirius 2026-11-21 21:47:26 +00:00
commit 2380cfb6ac
3 changed files with 31 additions and 2 deletions

View file

@ -4,6 +4,7 @@ resources:
- namespace.yaml - namespace.yaml
- configmap.yaml - configmap.yaml
- postgres-pvc.yaml - postgres-pvc.yaml
- postgres-pvc-linode.yaml
- postgres-deployment.yaml - postgres-deployment.yaml
- postgres-service.yaml - postgres-service.yaml
- nats-deployment.yaml - nats-deployment.yaml

View file

@ -27,8 +27,20 @@ spec:
- key: dedicated - key: dedicated
operator: Exists operator: Exists
effect: PreferNoSchedule effect: PreferNoSchedule
# Local-path volume: the claim (osint-pgdata-linode) is pinned to linode by
# its PV, so the pod must be too. arch selector documents why: the image is
# amd64-only, as on every other node this can land on.
nodeSelector: nodeSelector:
kubernetes.io/hostname: siriussec kubernetes.io/arch: amd64
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- linode
containers: containers:
- name: postgres - name: postgres
image: forgejo.siriusdevops.com/sirius/osint-dashboard-pg:amd64-c48788d4b614-r2 image: forgejo.siriusdevops.com/sirius/osint-dashboard-pg:amd64-c48788d4b614-r2
@ -79,4 +91,4 @@ spec:
volumes: volumes:
- name: pgdata - name: pgdata
persistentVolumeClaim: persistentVolumeClaim:
claimName: osint-pgdata claimName: osint-pgdata-linode

View file

@ -0,0 +1,16 @@
# Post-migration home for osint-db: a linode-local volume.
# Kept separate from postgres-pvc.yaml (osint-pgdata, on siriussec) so a
# rollback is one revert of the Deployment's claimName; the old claim and its
# PV stay untouched and Bound.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: osint-pgdata-linode
namespace: osint
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path-linode
resources:
requests:
storage: 15Gi