ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c

View file

@ -0,0 +1,44 @@
---
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: smartctl-exporter
namespace: smartctl-exporter
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: prometheus-smartctl-exporter
app.kubernetes.io/instance: smartctl-exporter
ingress:
- fromEntities:
- host
toPorts:
- ports:
- port: "9633"
protocol: TCP
- fromEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: victoriametrics
app.kubernetes.io/name: vmagent
app.kubernetes.io/instance: main
toPorts:
- ports:
- port: "9633"
protocol: TCP
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: host-egress-smartctl-exporter
spec:
nodeSelector: {}
egress:
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: smartctl-exporter
app.kubernetes.io/name: prometheus-smartctl-exporter
app.kubernetes.io/instance: smartctl-exporter
toPorts:
- ports:
- port: "9633"
protocol: TCP