apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: llm-connect-activity-core-only namespace: activity-core labels: app.kubernetes.io/name: llm-connect app.kubernetes.io/part-of: activity-core spec: podSelector: matchLabels: app.kubernetes.io/name: llm-connect policyTypes: - Ingress - Egress ingress: - from: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: activity-core ports: - protocol: TCP port: 8080 egress: - to: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: kube-system ports: - protocol: UDP port: 53 - protocol: TCP port: 53 - to: - ipBlock: cidr: 0.0.0.0/0 ports: - protocol: TCP port: 443