github.com/cilium/cilium@v1.16.2/test/k8s/manifests/demo.yaml (about) 1 kind: ServiceAccount 2 apiVersion: v1 3 metadata: 4 name: app1-account 5 --- 6 kind: ServiceAccount 7 apiVersion: v1 8 metadata: 9 name: app2-account 10 --- 11 apiVersion: v1 12 kind: Service 13 metadata: 14 name: app1-service 15 spec: 16 ports: 17 - name: http 18 port: 80 19 protocol: TCP 20 - name: tftp 21 port: 69 22 protocol: UDP 23 selector: 24 id: app1 25 --- 26 apiVersion: apps/v1 27 kind: Deployment 28 metadata: 29 name: app1 30 spec: 31 selector: 32 matchLabels: 33 id: app1 34 zgroup: testapp 35 replicas: 2 36 template: 37 metadata: 38 labels: 39 id: app1 40 zgroup: testapp 41 spec: 42 serviceAccountName: app1-account 43 terminationGracePeriodSeconds: 0 44 containers: 45 - name: web 46 image: docker.io/cilium/demo-httpd:1.0 47 imagePullPolicy: IfNotPresent 48 ports: 49 - containerPort: 80 50 readinessProbe: 51 httpGet: 52 path: / 53 port: 80 54 - name: udp 55 image: quay.io/cilium/echoserver-udp:v2020.01.30 56 imagePullPolicy: IfNotPresent 57 ports: 58 - containerPort: 69 59 protocol: UDP 60 nodeSelector: 61 "cilium.io/ci-node": k8s1 62 --- 63 apiVersion: apps/v1 64 kind: Deployment 65 metadata: 66 name: app2 67 spec: 68 selector: 69 matchLabels: 70 id: app2 71 zgroup: testapp 72 appSecond: "true" 73 replicas: 1 74 template: 75 metadata: 76 labels: 77 id: app2 78 zgroup: testapp 79 appSecond: "true" 80 spec: 81 serviceAccountName: app2-account 82 terminationGracePeriodSeconds: 0 83 containers: 84 - name: app-frontend 85 image: quay.io/cilium/demo-client:1.0 86 imagePullPolicy: IfNotPresent 87 command: [ "sleep" ] 88 args: 89 - "1000h" 90 # k8s/services.go:"Checks service on same node" requires the pod to be 91 # scheduled on the same node as app1 92 nodeSelector: 93 "cilium.io/ci-node": k8s1 94 --- 95 apiVersion: apps/v1 96 kind: Deployment 97 metadata: 98 name: app3 99 spec: 100 selector: 101 matchLabels: 102 id: app3 103 zgroup: testapp 104 replicas: 1 105 template: 106 metadata: 107 labels: 108 id: app3 109 zgroup: testapp 110 spec: 111 terminationGracePeriodSeconds: 0 112 containers: 113 - name: app-frontend 114 image: quay.io/cilium/demo-client:1.0 115 imagePullPolicy: IfNotPresent 116 command: [ "sleep" ] 117 args: 118 - "1000h" 119 ports: 120 - containerPort: 80 121 nodeSelector: 122 "cilium.io/ci-node": k8s1