github.com/cilium/cilium@v1.16.2/test/k8s/manifests/demo-named-port.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 name: "http-80" 51 readinessProbe: 52 httpGet: 53 path: / 54 port: 80 55 - name: udp 56 image: quay.io/cilium/echoserver-udp:v2020.01.30 57 imagePullPolicy: IfNotPresent 58 ports: 59 - containerPort: 69 60 protocol: UDP 61 nodeSelector: 62 "cilium.io/ci-node": k8s1 63 --- 64 apiVersion: apps/v1 65 kind: Deployment 66 metadata: 67 name: app2 68 spec: 69 selector: 70 matchLabels: 71 id: app2 72 zgroup: testapp 73 appSecond: "true" 74 replicas: 1 75 template: 76 metadata: 77 labels: 78 id: app2 79 zgroup: testapp 80 appSecond: "true" 81 spec: 82 serviceAccountName: app2-account 83 terminationGracePeriodSeconds: 0 84 containers: 85 - name: app-frontend 86 image: quay.io/cilium/demo-client:1.0 87 imagePullPolicy: IfNotPresent 88 command: [ "sleep" ] 89 args: 90 - "1000h" 91 # k8s/services.go:"Checks service on same node" requires the pod to be 92 # scheduled on the same node as app1 93 nodeSelector: 94 "cilium.io/ci-node": k8s1 95 --- 96 apiVersion: apps/v1 97 kind: Deployment 98 metadata: 99 name: app3 100 spec: 101 selector: 102 matchLabels: 103 id: app3 104 zgroup: testapp 105 replicas: 1 106 template: 107 metadata: 108 labels: 109 id: app3 110 zgroup: testapp 111 spec: 112 terminationGracePeriodSeconds: 0 113 containers: 114 - name: app-frontend 115 image: quay.io/cilium/demo-client:1.0 116 imagePullPolicy: IfNotPresent 117 command: [ "sleep" ] 118 args: 119 - "1000h" 120 ports: 121 - containerPort: 80 122 nodeSelector: 123 "cilium.io/ci-node": k8s1