feat(platform): guard the disk, clock, backups and monitoring after this week's incidents #10
@@ -45,10 +45,12 @@ AIStor ObjectStore minio-aistor (HDD sdb3, aistor-local-xfs-retain)
|
||||
|
||||
전제: 이 PR이 병합된 platform-core checkout, desktop의 kube context `default`.
|
||||
|
||||
**주의: `services/platform-postgres`를 통째로 다시 적용하지 않는다.** live Cluster의
|
||||
`pg_hba`에는 Phase 1 원본에 없는 `host techlog techlog all scram-sha-256`과
|
||||
`host all techlog all reject`가 있다. 원본을 다시 적용하면 이 두 줄이 지워져 tech-log 운영
|
||||
백엔드가 DB에 붙지 못한다. 그래서 백업 설정만 `kubectl patch`로 더한다.
|
||||
**백업 설정은 `kubectl patch`로만 더한다.** `services/platform-postgres` 렌더를 다시 적용하면
|
||||
`priorityClassName`과 Guaranteed resources도 같이 들어가 PostgreSQL이 재시작된다. 그것은
|
||||
k3s 재시작 창(`scripts/bootstrap/apply-k3s-restart-bundle.sh`)에서 한다. 2026-11-11까지는
|
||||
live `pg_hba`의 `techlog` 두 줄이 원본에 없어서 다시 적용하면 tech-log 백엔드가 끊겼다.
|
||||
이 브랜치에서 원본에 넣었으므로(`fix(platform-postgres): keep the tech-log pg_hba rules`)
|
||||
지금 렌더의 `kubectl diff`에는 pg_hba 차이가 없다.
|
||||
|
||||
1. bucket, 정책, 사용자, Secret을 만든다. 화면에 자격 증명이 나오지 않는다.
|
||||
|
||||
@@ -75,7 +77,7 @@ AIStor ObjectStore minio-aistor (HDD sdb3, aistor-local-xfs-retain)
|
||||
kubectl -n platform-data get cluster platform-postgres -o jsonpath='{.spec.postgresql.pg_hba}{"\n"}'
|
||||
```
|
||||
|
||||
마지막 줄에 `techlog` 두 줄이 그대로 있어야 한다. 몇 분 뒤 WAL이 올라가는지 본다.
|
||||
마지막 줄에 `techlog` 두 줄이 있어야 한다. 몇 분 뒤 WAL이 올라가는지 본다.
|
||||
|
||||
```bash
|
||||
kubectl -n platform-data get cluster platform-postgres \
|
||||
|
||||
@@ -39,10 +39,15 @@ spec:
|
||||
affinity:
|
||||
enablePodAntiAffinity: false
|
||||
|
||||
# The DB is the last thing that should go when the node runs short.
|
||||
# platform-critical comes from services/priority-classes. requests equal
|
||||
# limits so the pod is Guaranteed QoS and its oom_score_adj drops from 985
|
||||
# to -997 (k3s maturity review 2026-11-11, 7.2 items 2 and 3).
|
||||
priorityClassName: platform-critical
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 512Mi
|
||||
cpu: "2"
|
||||
memory: 4Gi
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 4Gi
|
||||
|
||||
Reference in New Issue
Block a user