55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: fsharp-acquire
|
||
|
|
namespace: project-delivery
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
delivery.quorate.dev/stage: fsharp-acquire
|
||
|
|
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: packages.wolfi.dev
|
||
|
|
- matchName: builds.dotnet.microsoft.com
|
||
|
|
- toFQDNs:
|
||
|
|
- {matchName: packages.wolfi.dev}
|
||
|
|
- matchName: builds.dotnet.microsoft.com
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "443", protocol: TCP}
|
||
|
|
---
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: fsharp-toolchain
|
||
|
|
namespace: project-delivery
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
delivery.quorate.dev/stage: fsharp-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: api.nuget.org
|
||
|
|
- toFQDNs:
|
||
|
|
- {matchName: api.nuget.org}
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- {port: "443", protocol: TCP}
|