-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti-cluster-ingress.yaml
51 lines (50 loc) · 1.27 KB
/
multi-cluster-ingress.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
apiVersion: networking.gke.io/v1
kind: MultiClusterService
metadata:
name: anthos-ingress-service
namespace: asm-showcase
annotations:
cloud.google.com/backend-config: '{"ports": {"http":"ingress-backendconfig"}}'
networking.gke.io/app-protocols: '{"http":"HTTP"}'
spec:
template:
spec:
selector:
istio: ingressgateway
ports:
- name: http
protocol: TCP
port: 80
---
apiVersion: networking.gke.io/v1
kind: MultiClusterIngress
metadata:
name: anthos-ingress-gateway
namespace: asm-showcase
annotations:
networking.gke.io/pre-shared-certs: "anthos-cert"
networking.gke.io/static-ip: https://www.googleapis.com/compute/v1/projects/asm-showcase-6312a455/global/addresses/multi-cluster-ingress-api
spec:
template:
spec:
backend:
serviceName: anthos-ingress-service
servicePort: 80
rules:
- host: "anthos.gcp-demo.be-svc.at"
http:
paths:
- backend:
serviceName: anthos-ingress-service
servicePort: 80
---
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: ingress-backendconfig
namespace: asm-showcase
spec:
healthCheck:
requestPath: /healthz/ready
port: 15021
type: HTTP