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