apps(osint): move osint-db onto a linode-local PVC
osint-db (TimescaleDB+PostGIS) moves from siriussec's local-path PV to a new 15Gi local-path-linode claim restored from a pg_dump (44,120,765 bytes, sha256 d74afa6d...30da). The Deployment gets a required linode nodeAffinity plus an amd64 arch selector; the old osint-pgdata claim and its PV are left untouched so rollback is one revert of claimName + scheduling.
This commit is contained in:
parent
7da7a8c5d4
commit
c2cdc2d5c1
3 changed files with 31 additions and 2 deletions
|
|
@ -27,8 +27,20 @@ spec:
|
|||
- key: dedicated
|
||||
operator: Exists
|
||||
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:
|
||||
kubernetes.io/hostname: siriussec
|
||||
kubernetes.io/arch: amd64
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- linode
|
||||
containers:
|
||||
- name: postgres
|
||||
image: forgejo.siriusdevops.com/sirius/osint-dashboard-pg:amd64-c48788d4b614-r2
|
||||
|
|
@ -79,4 +91,4 @@ spec:
|
|||
volumes:
|
||||
- name: pgdata
|
||||
persistentVolumeClaim:
|
||||
claimName: osint-pgdata
|
||||
claimName: osint-pgdata-linode
|
||||
|
|
|
|||
Loading…
Reference in a new issue