342 lines
8.7 KiB
YAML
342 lines
8.7 KiB
YAML
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: victoriametrics
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
managed-by: vm-operator
|
||
|
|
ingress:
|
||
|
|
- fromEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: victoriametrics
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8429"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8435"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8480"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8481"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8482"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8400"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8401"
|
||
|
|
protocol: TCP
|
||
|
|
- fromEntities:
|
||
|
|
- host
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8429"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8435"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8480"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8481"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8482"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8400"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8401"
|
||
|
|
protocol: TCP
|
||
|
|
- fromEntities:
|
||
|
|
- ingress
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
- fromEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
||
|
|
gateway.networking.k8s.io/gateway-name: gateway-internal
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
- fromEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: grafana
|
||
|
|
app.kubernetes.io/name: grafana
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: victoriametrics
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8429"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8435"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8480"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8481"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8482"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8400"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8401"
|
||
|
|
protocol: TCP
|
||
|
|
- toEntities:
|
||
|
|
- kube-apiserver
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "6443"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: node-exporter
|
||
|
|
app.kubernetes.io/name: prometheus-node-exporter
|
||
|
|
app.kubernetes.io/instance: node-exporter
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9100"
|
||
|
|
protocol: TCP
|
||
|
|
- 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
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: zfs-exporter
|
||
|
|
app.kubernetes.io/name: zfs-exporter
|
||
|
|
app.kubernetes.io/instance: zfs-exporter
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9134"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: nvidia
|
||
|
|
app.kubernetes.io/name: dcgm-exporter
|
||
|
|
app.kubernetes.io/instance: dcgm-exporter
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9400"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: victorialogs
|
||
|
|
managed-by: vm-operator
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: vlagent
|
||
|
|
app.kubernetes.io/name: vlagent
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9429"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
||
|
|
k8s-app: kube-dns
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "53"
|
||
|
|
protocol: UDP
|
||
|
|
- port: "53"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumClusterwideNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: gateway-internal-egress-victoriametrics
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
"reserved:ingress": ""
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: victoriametrics
|
||
|
|
app.kubernetes.io/name: vmauth
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumClusterwideNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: host-egress-victoriametrics
|
||
|
|
spec:
|
||
|
|
nodeSelector: {}
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: victoriametrics
|
||
|
|
managed-by: vm-operator
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8429"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8427"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8435"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8480"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8481"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8482"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8400"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8401"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumClusterwideNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: host-ingress-victoriametrics-replies
|
||
|
|
spec:
|
||
|
|
nodeSelector: {}
|
||
|
|
ingress:
|
||
|
|
- fromEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: victoriametrics
|
||
|
|
app.kubernetes.io/name: vmauth
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "32768"
|
||
|
|
endPort: 60999
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: vmagent-kubelet
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: vmagent
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
egress:
|
||
|
|
- toEntities:
|
||
|
|
- host
|
||
|
|
- remote-node
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "10250"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: vmagent-egress-oci-l4-relay
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: vmagent
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
egress:
|
||
|
|
- toEntities:
|
||
|
|
- host
|
||
|
|
- remote-node
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "19100"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: vmagent-egress-dragonfly
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: vmagent
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: dragonfly
|
||
|
|
app.kubernetes.io/name: dragonfly
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9999"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: vmagent-egress-longhorn-manager
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: vmagent
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: longhorn
|
||
|
|
app: longhorn-manager
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9500"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: vmagent-egress-agentgateway
|
||
|
|
namespace: victoriametrics
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: vmagent
|
||
|
|
app.kubernetes.io/instance: main
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: agentgateway-system
|
||
|
|
gateway.networking.k8s.io/gateway-name: agentgateway-proxy
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "15020"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: agentgateway-system
|
||
|
|
app.kubernetes.io/name: model-catalog
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|