kubernetes/manifests/hm-kafka/iot-kafka-connect/hm-kafka-iot-kafka-connect-network-policy.yaml
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: hm-kafka-iot-kafka-connect-network-policy
namespace: hm-kafka
spec:
podSelector:
matchLabels:
strimzi.io/cluster: hm-kafka-iot-kafka-connect
strimzi.io/kind: KafkaConnect
strimzi.io/name: hm-kafka-iot-kafka-connect-connect
policyTypes:
- Ingress
ingress:
- ports:
- protocol: TCP
port: 8083
from:
- namespaceSelector:
matchLabels:
name: hm-akhq
podSelector:
matchLabels:
app.kubernetes.io/name: akhq
- namespaceSelector:
matchLabels:
name: hm-redpanda-console
podSelector:
matchLabels:
app.kubernetes.io/name: console