36 lines
812 B
YAML
36 lines
812 B
YAML
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: dragonfly-metrics
|
||
|
|
namespace: dragonfly
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: dragonfly
|
||
|
|
app.kubernetes.io/component: metrics
|
||
|
|
spec:
|
||
|
|
selector:
|
||
|
|
app.kubernetes.io/name: dragonfly
|
||
|
|
ports:
|
||
|
|
- name: metrics
|
||
|
|
port: 9999
|
||
|
|
targetPort: admin
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: dragonfly-metrics
|
||
|
|
namespace: dragonfly
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: dragonfly
|
||
|
|
ingress:
|
||
|
|
- fromEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: victoriametrics
|
||
|
|
app.kubernetes.io/name: vmagent
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9999"
|
||
|
|
protocol: TCP
|