132 lines
3.7 KiB
YAML
132 lines
3.7 KiB
YAML
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: nuthatch-source
|
||
|
|
namespace: project-delivery
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
delivery.quorate.dev/stage: nuthatch-source
|
||
|
|
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:
|
||
|
|
- matchName: forge-git-http.forgejo-public.svc.cluster.local
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: forgejo-public
|
||
|
|
app.kubernetes.io/name: forgejo
|
||
|
|
app.kubernetes.io/instance: forge-git
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "3000", protocol: TCP}
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: nuthatch-toolchain
|
||
|
|
namespace: project-delivery
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
delivery.quorate.dev/stage: nuthatch-toolchain
|
||
|
|
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:
|
||
|
|
- matchName: downloads.haskell.org
|
||
|
|
- matchName: github.com
|
||
|
|
- matchName: hackage.haskell.org
|
||
|
|
- matchName: packages.wolfi.dev
|
||
|
|
- matchName: registry.npmjs.org
|
||
|
|
- matchName: release-assets.githubusercontent.com
|
||
|
|
- toFQDNs:
|
||
|
|
- {matchName: downloads.haskell.org}
|
||
|
|
- {matchName: github.com}
|
||
|
|
- {matchName: hackage.haskell.org}
|
||
|
|
- {matchName: packages.wolfi.dev}
|
||
|
|
- {matchName: registry.npmjs.org}
|
||
|
|
- {matchName: release-assets.githubusercontent.com}
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "443", protocol: TCP}
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: nuthatch-cache
|
||
|
|
namespace: project-delivery
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchExpressions:
|
||
|
|
- key: delivery.quorate.dev/stage
|
||
|
|
operator: In
|
||
|
|
values: [nuthatch-cache-pull, nuthatch-cache-export]
|
||
|
|
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:
|
||
|
|
- matchName: s3.quorate.internal
|
||
|
|
- toCIDR: [10.66.127.81/32]
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "443", protocol: TCP}
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: versitygw
|
||
|
|
app.kubernetes.io/name: versitygw
|
||
|
|
app.kubernetes.io/instance: versitygw
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "7070", protocol: TCP}
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: nuthatch-publication
|
||
|
|
namespace: project-delivery
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
delivery.quorate.dev/stage: publish-internal
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
||
|
|
k8s-app: kube-dns
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "53", protocol: UDP}
|
||
|
|
- {port: "53", protocol: TCP}
|
||
|
|
- toCIDR: [10.108.252.250/32, 10.66.127.81/32]
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "443", protocol: TCP}
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: quay
|
||
|
|
app: quay
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "8443", protocol: TCP}
|