feat: 接入 sandbox Kubernetes 监控
yaml / yaml (pull_request) Successful in 25s
ansible / collection-test (pull_request) Successful in 1m10s
ansible / lint (pull_request) Successful in 4m33s

This commit is contained in:
2026-09-17 16:02:48 +00:00
parent 2030751e6a
commit 60836c3360
18 changed files with 288 additions and 2 deletions
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- vmsingle.yaml
- vmsingle-write-route.yaml
- vmagent.yaml
- vmalert.yaml
- vmalertmanager.yaml
@@ -0,0 +1,24 @@
---
# Internal-only remote_write ingress for vmagent instances in other homelab
# clusters. Expose only the write endpoint, not VictoriaMetrics query/admin APIs.
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: vmsingle-remote-write
namespace: monitoring
spec:
parentRefs:
- name: eg
namespace: envoy-gateway-system
sectionName: https
hostnames:
- metrics-write.ad.ddupan.top
rules:
- matches:
- method: POST
path:
type: Exact
value: /api/v1/write
backendRefs:
- name: vmsingle-main
port: 8428