github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/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 spec: 26 replicas: 1 27 template: 28 metadata: 29 labels: 30 app: network-policy-echoserver 31 spec: 32 containers: 33 - image: nginx 34 imagePullPolicy: IfNotPresent 35 name: network-policy-echoserver 36 ports: 37 - containerPort: 80 38 --- 39 apiVersion: v1 40 kind: Pod 41 metadata: 42 name: network-policy-tester 43 namespace: policy-tester 44 labels: 45 app: network-policy-tester 46 spec: 47 containers: 48 - image: busybox 49 command: 50 - sleep 51 - "3600" 52 imagePullPolicy: IfNotPresent 53 name: busybox 54 restartPolicy: Always