forked from HariSekhon/Kubernetes-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress-multicluster.yaml
47 lines (43 loc) · 1.25 KB
/
ingress-multicluster.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
#
# Author: Hari Sekhon
# Date: 2019-11-28 12:59:41 +0000 (Thu, 28 Nov 2019)
#
# vim:ts=2:sts=2:sw=2:et
# lint: k8s
#
# https://github.com/HariSekhon/Kubernetes-configs
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# M u l t i - C l u s t e r I n g r e s s o n G K E
# ============================================================================ #
# https://cloud.google.com/kubernetes-engine/docs/how-to/multi-cluster-ingress-setup
# https://cloud.google.com/kubernetes-engine/docs/how-to/multi-cluster-ingress
---
apiVersion: networking.gke.io/v1
kind: MultiClusterIngress
metadata:
name: APP
namespace: NAMESPACE
annotations:
networking.gke.io/static-ip: static-ip-name
spec:
backend:
serviceName: APP-mcs
servicePort: 80
rules:
# XXX: Edit
- host: APP.DOMAIN.COM
http:
paths:
# XXX: Edit
- path: /APP
backend:
serviceName: APP-mcs
servicePort: 80