hongbo-miao/hongbomiao.com

View on GitHub
kubernetes/manifests/hm-kafka/opa-kafka-connect/hm-kafka-opa-kafka-connect-network-policy.yaml

Summary

Maintainability
Test Coverage
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: hm-kafka-opa-kafka-connect-network-policy
  namespace: hm-kafka
spec:
  podSelector:
    matchLabels:
      strimzi.io/cluster: hm-kafka-opa-kafka-connect
      strimzi.io/kind: KafkaConnect
      strimzi.io/name: hm-kafka-opa-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