name: Network policy
services:
  network-policy-policy:
    name: network-policy-policy
    type: NetworkPolicy
    apiVersion: networking.k8s.io/v1
    namespace: default
    model: kubernetes
    settings:
      spec:
        egress:
        - ports:
          - port: 5978
            protocol: TCP
          to:
          - ip Block:
              cidr: 10.0.0.0/24
        ingress:
        - from:
          - namespace Selector:
              match Labels:
                project: myproject
          - pod Selector:
              match Labels:
                role: frontend
          ports:
          - port: 6379
            protocol: TCP
        pod Selector:
          match Labels:
            role: db
        policy Types:
        - Ingress
        - Egress
    traits:
      meshmap:
        edges: []
        id: 262f647a-b933-4d66-82a7-06d9261344c3
        label: network-policy-policy
        meshmodel-metadata:
          capabilities: ""
          genealogy: ""
          isAnnotation: false
          isCustomResource: false
          isNamespaced: true
          logoURL: https://github.com/cncf/artwork/blob/master/projects/kubernetes/icon/white/kubernetes-icon-white.svg
          model: kubernetes
          modelDisplayName: Kubernetes
          primaryColor: '#326CE5'
          published: true
          secondaryColor: '#7aa1f0'
          shape: circle
          styleOverrides: ""
          subCategory: Orchestration & Management
          svgColor: ui/public/static/img/meshmodels/kubernetes/color/kubernetes-color.svg
          svgComplete: ""
          svgWhite: ui/public/static/img/meshmodels/kubernetes/white/kubernetes-white.svg
        position:
          posX: 110
          posY: 110
        whiteboardData:
          style: {}
