81 lines
1.8 KiB
YAML
81 lines
1.8 KiB
YAML
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: flux-system
|
||
|
|
namespace: flux-system
|
||
|
|
spec:
|
||
|
|
endpointSelector: {}
|
||
|
|
ingress:
|
||
|
|
- fromEntities:
|
||
|
|
- host
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8081"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "9090"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "9440"
|
||
|
|
protocol: TCP
|
||
|
|
egress:
|
||
|
|
- toEntities:
|
||
|
|
- kube-apiserver
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "6443"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s-app: kube-dns
|
||
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "53"
|
||
|
|
protocol: UDP
|
||
|
|
- port: "53"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
app.kubernetes.io/name: forgejo
|
||
|
|
k8s:io.kubernetes.pod.namespace: forgejo
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "2222"
|
||
|
|
protocol: TCP
|
||
|
|
- toServices:
|
||
|
|
- k8sService:
|
||
|
|
namespace: forgejo
|
||
|
|
serviceName: forgejo-ssh
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "22"
|
||
|
|
protocol: TCP
|
||
|
|
- toEntities:
|
||
|
|
- world
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "443"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumClusterwideNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: host-egress-flux-system
|
||
|
|
spec:
|
||
|
|
nodeSelector: {}
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: flux-system
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8081"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "9090"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "9440"
|
||
|
|
protocol: TCP
|