github.com/looshlee/cilium@v1.6.12/examples/policies/kubernetes/namespace/demo-pods.yaml (about) 1 apiVersion: v1 2 kind: Namespace 3 metadata: 4 name: ns1 5 --- 6 apiVersion: v1 7 kind: Namespace 8 metadata: 9 name: ns2 10 --- 11 apiVersion: apps/v1 12 kind: Deployment 13 metadata: 14 name: leia-deployment 15 namespace: ns1 16 spec: 17 selector: 18 matchLabels: 19 name: leia 20 replicas: 1 21 template: 22 metadata: 23 labels: 24 name: leia 25 namespace: ns1 26 spec: 27 containers: 28 - name: leia-container 29 image: docker.io/cilium/json-mock 30 --- 31 apiVersion: v1 32 kind: Service 33 metadata: 34 name: leia 35 namespace: ns1 36 spec: 37 type: ClusterIP 38 ports: 39 - port: 80 40 selector: 41 name: leia 42 --- 43 apiVersion: v1 44 kind: Pod 45 metadata: 46 name: luke-pod 47 namespace: ns2 48 labels: 49 name: luke 50 spec: 51 containers: 52 - name: luke-container 53 image: docker.io/cilium/json-mock 54 --- 55 apiVersion: v1 56 kind: Pod 57 metadata: 58 name: vader-pod 59 namespace: ns2 60 labels: 61 name: vader 62 spec: 63 containers: 64 - name: vader-container 65 image: docker.io/cilium/json-mock