apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: cassandra
spec:
  podSelector:
    matchLabels:
      run: cassandra
  policyTypes:
  - Ingress
  ingress:
  - from:
    - namespaceSelector:
        matchLabels:
          ns: default
