The tech-log tenant needs objects inside platform namespaces: its database and role, ingress to Postgres and AIStor, blackbox probes, alert rules, a dashboard and two observability NetworkPolicies. They were only ever applied with kubectl and no repository holds them, so a deleted object cannot be recreated and a platform re-apply can drop tech-log access without anyone noticing. Declare them in services/tenants/techlog, copied from each object's last-applied configuration. The dashboard follows the repository's dashboard pattern (JSON file + configMapGenerator, same name, same labels). The hyeonworks-prod Namespace moves here as the tenant boundary and gets PSA enforce=baseline, warn/audit=restricted. Rejected: enforce=restricted now. A server dry-run shows all three tech-log pods would violate it; baseline has zero violations. Risk: the render matches the live objects exactly except the added PSA labels. The pg_hba rules and the Secret stay out of this root (Cluster owner and Git policy). Verification (desktop): - render-tenants-and-policies.sh passes. - kubectl diff of the render shows only the Namespace PSA labels. - kubectl label --dry-run=server enforce=baseline: no warnings.
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: Probe
|
|
metadata:
|
|
labels:
|
|
observability.hyeonworks.com/instance: home
|
|
name: techlog-edge
|
|
namespace: observability
|
|
spec:
|
|
interval: 30s
|
|
jobName: techlog-edge
|
|
module: http_2xx
|
|
prober:
|
|
path: /probe
|
|
scheme: http
|
|
url: blackbox-exporter.observability.svc.cluster.local:9115
|
|
scrapeTimeout: 15s
|
|
targets:
|
|
staticConfig:
|
|
labels:
|
|
application: techlog
|
|
static:
|
|
- https://hyeonworks.com/
|
|
- https://hyeonworks.com/api/healthcheck
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: Probe
|
|
metadata:
|
|
labels:
|
|
observability.hyeonworks.com/instance: home
|
|
name: techlog-readiness
|
|
namespace: observability
|
|
spec:
|
|
interval: 30s
|
|
jobName: techlog-readiness
|
|
module: http_2xx
|
|
prober:
|
|
path: /probe
|
|
scheme: http
|
|
url: blackbox-exporter.observability.svc.cluster.local:9115
|
|
scrapeTimeout: 15s
|
|
targets:
|
|
staticConfig:
|
|
labels:
|
|
application: techlog
|
|
static:
|
|
- http://techlog-management.hyeonworks-prod.svc.cluster.local:9001/actuator/health/readiness
|