90 lines
2.3 KiB
YAML
90 lines
2.3 KiB
YAML
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: api
|
|
namespace: cluster-health
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: cluster-health-api
|
|
ingress:
|
|
- fromEntities: [host]
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: cloudflare-tunnel
|
|
app.kubernetes.io/name: cloudflared
|
|
app.kubernetes.io/instance: cloudflare-tunnel
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
|
k8s-app: kube-dns
|
|
toPorts:
|
|
- ports:
|
|
- port: "53"
|
|
protocol: UDP
|
|
- port: "53"
|
|
protocol: TCP
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: victoriametrics
|
|
app.kubernetes.io/name: vmselect
|
|
app.kubernetes.io/instance: main
|
|
toPorts:
|
|
- ports:
|
|
- port: "8481"
|
|
protocol: TCP
|
|
---
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: cluster-health
|
|
namespace: victoriametrics
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: vmselect
|
|
app.kubernetes.io/instance: main
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: cluster-health
|
|
app.kubernetes.io/name: cluster-health-api
|
|
toPorts:
|
|
- ports:
|
|
- port: "8481"
|
|
protocol: TCP
|
|
---
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumClusterwideNetworkPolicy
|
|
metadata:
|
|
name: host-health
|
|
spec:
|
|
nodeSelector: {}
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: cluster-health
|
|
app.kubernetes.io/name: cluster-health-api
|
|
toPorts:
|
|
- ports:
|
|
- port: "32768"
|
|
endPort: 60999
|
|
protocol: TCP
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: cluster-health
|
|
app.kubernetes.io/name: cluster-health-api
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|