github.com/looshlee/cilium@v1.6.12/test/k8sT/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 - port: 80 18 selector: 19 id: app1 20 --- 21 apiVersion: apps/v1 22 kind: Deployment 23 metadata: 24 name: app1 25 spec: 26 selector: 27 matchLabels: 28 id: app1 29 zgroup: testapp 30 replicas: 2 31 template: 32 metadata: 33 labels: 34 id: app1 35 zgroup: testapp 36 spec: 37 serviceAccountName: app1-account 38 terminationGracePeriodSeconds: 0 39 containers: 40 - name: web 41 image: docker.io/cilium/demo-httpd:latest 42 imagePullPolicy: IfNotPresent 43 ports: 44 - containerPort: 80 45 readinessProbe: 46 httpGet: 47 path: / 48 port: 80 49 nodeSelector: 50 "kubernetes.io/hostname": k8s1 51 --- 52 apiVersion: apps/v1 53 kind: Deployment 54 metadata: 55 name: app2 56 spec: 57 selector: 58 matchLabels: 59 id: app2 60 zgroup: testapp 61 appSecond: "true" 62 replicas: 1 63 template: 64 metadata: 65 labels: 66 id: app2 67 zgroup: testapp 68 appSecond: "true" 69 spec: 70 serviceAccountName: app2-account 71 terminationGracePeriodSeconds: 0 72 containers: 73 - name: app-frontend 74 image: docker.io/cilium/demo-client:latest 75 imagePullPolicy: IfNotPresent 76 command: [ "sleep" ] 77 args: 78 - "1000h" 79 nodeSelector: 80 "kubernetes.io/hostname": k8s1 81 --- 82 apiVersion: apps/v1 83 kind: Deployment 84 metadata: 85 name: app3 86 spec: 87 selector: 88 matchLabels: 89 id: app3 90 zgroup: testapp 91 replicas: 1 92 template: 93 metadata: 94 labels: 95 id: app3 96 zgroup: testapp 97 spec: 98 terminationGracePeriodSeconds: 0 99 containers: 100 - name: app-frontend 101 image: docker.io/cilium/demo-client:latest 102 imagePullPolicy: IfNotPresent 103 command: [ "sleep" ] 104 args: 105 - "1000h" 106 ports: 107 - containerPort: 80 108 nodeSelector: 109 "kubernetes.io/hostname": k8s1