github.com/apprenda/kismatic@v1.12.0/integration-tests/test-resources/network-policy/tester.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Namespace
     4  metadata:
     5    name: policy-tester
     6  ---
     7  apiVersion: v1
     8  kind: Service
     9  metadata:
    10    name: network-policy-echoserver
    11    namespace: policy-tester
    12  spec:
    13    ports:
    14    - port: 80
    15      targetPort: 80
    16      protocol: TCP
    17    selector:
    18      app: network-policy-echoserver
    19  ---
    20  apiVersion: apps/v1
    21  kind: Deployment
    22  metadata:
    23    name: network-policy-echoserver
    24    namespace: policy-tester
    25    labels:
    26      app: network-policy-echoserver
    27  spec:
    28    selector:
    29      matchLabels:
    30        app: network-policy-echoserver
    31    replicas: 1
    32    template:
    33      metadata:
    34        labels:
    35          app: network-policy-echoserver
    36      spec:
    37        containers:
    38        - image: nginx
    39          imagePullPolicy: IfNotPresent
    40          name: network-policy-echoserver
    41          ports:
    42          - containerPort: 80
    43  ---
    44  apiVersion: v1
    45  kind: Pod
    46  metadata:
    47    name: network-policy-tester
    48    namespace: policy-tester
    49    labels:
    50      app: network-policy-tester
    51  spec:
    52    containers:
    53    - image: busybox
    54      command:
    55        - sleep
    56        - "3600"
    57      imagePullPolicy: IfNotPresent
    58      name: busybox
    59    restartPolicy: Always