122 lines
3.5 KiB
YAML
122 lines
3.5 KiB
YAML
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: cloudflared
|
|
namespace: cloudflare-tunnel
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: cloudflared
|
|
app.kubernetes.io/instance: cloudflare-tunnel
|
|
ingress:
|
|
- fromEntities:
|
|
- host
|
|
toPorts:
|
|
- ports:
|
|
- port: "2000"
|
|
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
|
|
rules:
|
|
dns:
|
|
- matchPattern: "*.argotunnel.com"
|
|
- matchPattern: "*.*.argotunnel.com"
|
|
- matchName: api.cloudflare.com
|
|
- matchName: tier-o-canary.tier-o-canary.svc.cluster.local
|
|
- matchName: mta-sts.mta-sts.svc.cluster.local
|
|
- matchName: forge-code-facade.forgejo-public.svc.cluster.local
|
|
- matchName: cluster-health-api.cluster-health.svc.cluster.local
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: cluster-health
|
|
app.kubernetes.io/name: cluster-health-api
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: tier-o-canary
|
|
app.kubernetes.io/name: tier-o-canary
|
|
app.kubernetes.io/instance: tier-o-canary
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: mta-sts
|
|
app.kubernetes.io/name: mta-sts
|
|
app.kubernetes.io/instance: mta-sts
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: forgejo-public
|
|
app.kubernetes.io/name: envoy
|
|
app.kubernetes.io/instance: forge-code-facade
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
- toFQDNs:
|
|
- matchName: region1.v2.argotunnel.com
|
|
- matchName: region2.v2.argotunnel.com
|
|
toPorts:
|
|
- ports:
|
|
- port: "7844"
|
|
protocol: TCP
|
|
- port: "7844"
|
|
protocol: UDP
|
|
- toFQDNs:
|
|
- matchName: api.cloudflare.com
|
|
toPorts:
|
|
- ports:
|
|
- port: "443"
|
|
protocol: TCP
|
|
---
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumClusterwideNetworkPolicy
|
|
metadata:
|
|
name: host-egress-cloudflared-probes
|
|
spec:
|
|
nodeSelector: {}
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: cloudflare-tunnel
|
|
app.kubernetes.io/name: cloudflared
|
|
app.kubernetes.io/instance: cloudflare-tunnel
|
|
toPorts:
|
|
- ports:
|
|
- port: "2000"
|
|
protocol: TCP
|
|
---
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumClusterwideNetworkPolicy
|
|
metadata:
|
|
name: host-ingress-cloudflared-probe-replies
|
|
spec:
|
|
nodeSelector: {}
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: cloudflare-tunnel
|
|
app.kubernetes.io/name: cloudflared
|
|
app.kubernetes.io/instance: cloudflare-tunnel
|
|
toPorts:
|
|
- ports:
|
|
- port: "32768"
|
|
endPort: 60999
|
|
protocol: TCP
|