github.com/looshlee/cilium@v1.6.12/examples/kubernetes/clustermesh/global-service-example/cluster2.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Service 4 metadata: 5 name: rebel-base 6 annotations: 7 io.cilium/global-service: "true" 8 spec: 9 type: ClusterIP 10 ports: 11 - port: 80 12 selector: 13 name: rebel-base 14 --- 15 apiVersion: apps/v1 16 kind: Deployment 17 metadata: 18 name: rebel-base 19 spec: 20 selector: 21 matchLabels: 22 name: rebel-base 23 replicas: 2 24 template: 25 metadata: 26 labels: 27 name: rebel-base 28 spec: 29 containers: 30 - name: rebel-base 31 image: docker.io/nginx:1.15.8 32 volumeMounts: 33 - name: html 34 mountPath: /usr/share/nginx/html/ 35 livenessProbe: 36 httpGet: 37 path: / 38 port: 80 39 periodSeconds: 1 40 readinessProbe: 41 httpGet: 42 path: / 43 port: 80 44 volumes: 45 - name: html 46 configMap: 47 name: rebel-base-response 48 items: 49 - key: message 50 path: index.html 51 --- 52 apiVersion: v1 53 kind: ConfigMap 54 metadata: 55 name: rebel-base-response 56 data: 57 message: "{\"Galaxy\": \"Alderaan\", \"Cluster\": \"Cluster-2\"}\n" 58 --- 59 apiVersion: apps/v1 60 kind: Deployment 61 metadata: 62 name: x-wing 63 spec: 64 selector: 65 matchLabels: 66 name: x-wing 67 replicas: 2 68 template: 69 metadata: 70 labels: 71 name: x-wing 72 spec: 73 containers: 74 - name: x-wing-container 75 image: docker.io/cilium/json-mock:1.0 76 livenessProbe: 77 exec: 78 command: 79 - curl 80 - -sS 81 - -o 82 - /dev/null 83 - localhost 84 readinessProbe: 85 exec: 86 command: 87 - curl 88 - -sS 89 - -o 90 - /dev/null 91 - localhost