apiVersion: cilium.io/v2 kind: CiliumNetworkPolicy metadata: name: hf-chat-ui namespace: hf-chat-ui spec: endpointSelector: matchLabels: app.kubernetes.io/name: hf-chat-ui app.kubernetes.io/instance: hf-chat-ui ingress: - fromEntities: - host - ingress toPorts: - ports: - port: '3000' protocol: TCP - fromEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: kube-system gateway.networking.k8s.io/gateway-name: gateway-internal toPorts: - ports: - port: '3000' protocol: TCP egress: - toEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: postgres cnpg.io/cluster: main toPorts: - ports: - port: '5432' protocol: TCP - toEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: agentgateway-system 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 - toServices: - k8sService: namespace: kube-system serviceName: kube-dns toPorts: - ports: - port: '53' protocol: UDP - port: '53' protocol: TCP - toEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: zitadel app.kubernetes.io/name: zitadel-oidc-internal toPorts: - ports: - port: '8443' protocol: TCP --- apiVersion: cilium.io/v2 kind: CiliumClusterwideNetworkPolicy metadata: name: gateway-hf-chat-ui spec: endpointSelector: matchLabels: reserved:ingress: '' egress: - toEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: hf-chat-ui app.kubernetes.io/name: hf-chat-ui app.kubernetes.io/instance: hf-chat-ui toPorts: - ports: - port: '3000' protocol: TCP --- apiVersion: cilium.io/v2 kind: CiliumClusterwideNetworkPolicy metadata: name: host-egress-hf-chat-ui spec: nodeSelector: {} egress: - toEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: hf-chat-ui app.kubernetes.io/instance: hf-chat-ui toPorts: - ports: - port: '3000' protocol: TCP --- apiVersion: cilium.io/v2 kind: CiliumClusterwideNetworkPolicy metadata: name: hf-chat-ui-replies spec: nodeSelector: {} ingress: - fromEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: hf-chat-ui app.kubernetes.io/instance: hf-chat-ui toPorts: - ports: - port: '32768' endPort: 60999 protocol: TCP --- apiVersion: cilium.io/v2 kind: CiliumNetworkPolicy metadata: name: hf-chat-ui-ingress namespace: postgres spec: endpointSelector: matchLabels: cnpg.io/cluster: main ingress: - fromEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: hf-chat-ui app.kubernetes.io/name: hf-chat-ui app.kubernetes.io/instance: hf-chat-ui toPorts: - ports: - port: '5432' protocol: TCP --- apiVersion: cilium.io/v2 kind: CiliumNetworkPolicy metadata: name: hf-chat-ui-ingress namespace: agentgateway-system spec: endpointSelector: matchLabels: gateway.networking.k8s.io/gateway-name: agentgateway-proxy ingress: - fromEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: hf-chat-ui app.kubernetes.io/name: hf-chat-ui toPorts: - ports: - port: '80' protocol: TCP --- apiVersion: cilium.io/v2 kind: CiliumNetworkPolicy metadata: name: hf-chat-ui-ingress namespace: zitadel spec: endpointSelector: matchLabels: app.kubernetes.io/name: zitadel-oidc-internal ingress: - fromEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: hf-chat-ui app.kubernetes.io/name: hf-chat-ui app.kubernetes.io/instance: hf-chat-ui toPorts: - ports: - port: '8443' protocol: TCP