github.phpd.cn/cilium/cilium@v1.6.12/test/k8sT/manifests/cnp-specs.yaml (about)

     1  apiVersion: "cilium.io/v2"
     2  kind: CiliumNetworkPolicy
     3  description: "Policy to test multiple rules in a single file"
     4  metadata:
     5    name: "cnp-specs"
     6  specs:
     7    - endpointSelector:
     8        matchLabels:
     9          app: ratings
    10          version: v1
    11      ingress:
    12      - fromEndpoints:
    13        - matchLabels:
    14            app: reviews
    15            track: stable
    16            version: v1
    17        toPorts:
    18        - ports:
    19          - port: "9080"
    20            protocol: TCP
    21          rules:
    22            http:
    23            - method: "GET"
    24              path: "/health"
    25    - endpointSelector:
    26        matchLabels:
    27          app: details
    28          track: stable
    29          version: v1
    30      ingress:
    31      - fromEndpoints:
    32        - matchLabels:
    33            app: productpage
    34            track: stable
    35            version: v1
    36        toPorts:
    37        - ports:
    38          - port: "9080"
    39            protocol: TCP
    40          rules:
    41            http:
    42            - method: "GET"
    43              path: "/.*"