91 lines
2.2 KiB
YAML
91 lines
2.2 KiB
YAML
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: vertex-batch
|
|
namespace: agentgateway-system
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: vertex-batch
|
|
ingress:
|
|
- fromEntities: [host]
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
gateway.networking.k8s.io/gateway-name: agentgateway-proxy
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
gateway.networking.k8s.io/gateway-name: agentgateway-proxy
|
|
toPorts:
|
|
- ports:
|
|
- port: "80"
|
|
protocol: TCP
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
|
k8s-app: kube-dns
|
|
toPorts:
|
|
- ports:
|
|
- port: "53"
|
|
protocol: UDP
|
|
- port: "53"
|
|
protocol: TCP
|
|
- toEntities: [world]
|
|
toPorts:
|
|
- serverNames:
|
|
- oauth2.googleapis.com
|
|
- aiplatform.googleapis.com
|
|
- storage.googleapis.com
|
|
ports:
|
|
- port: "443"
|
|
protocol: TCP
|
|
---
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: batch-gateway
|
|
namespace: agentgateway-system
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
gateway.networking.k8s.io/gateway-name: agentgateway-proxy
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
app.kubernetes.io/name: vertex-batch
|
|
toPorts:
|
|
- ports:
|
|
- port: "80"
|
|
protocol: TCP
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
app.kubernetes.io/name: vertex-batch
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|
|
---
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumClusterwideNetworkPolicy
|
|
metadata:
|
|
name: host-vertex-batch
|
|
spec:
|
|
nodeSelector: {}
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: agentgateway-system
|
|
app.kubernetes.io/name: vertex-batch
|
|
toPorts:
|
|
- ports:
|
|
- port: "8080"
|
|
protocol: TCP
|