-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathingresses.yaml
98 lines (98 loc) · 2.36 KB
/
ingresses.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
apiVersion: v1
kind: Service
metadata:
labels:
app: aws-alb-demo-frontend
name: aws-alb-demo-frontend
spec:
type: NodePort
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: aws-lb-demo-frontend
---
apiVersion: v1
kind: Service
metadata:
labels:
app: aws-alb-demo-backend
name: aws-alb-demo-backend
spec:
type: NodePort
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: aws-lb-demo-backend
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: aws-alb-ip-demo-frontend
annotations:
external-dns.alpha.kubernetes.io/hostname: "aws-alb-ip.demo.otterley.org"
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/group.name: ip
spec:
backend:
serviceName: aws-alb-demo-frontend
servicePort: 80
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: aws-alb-ip-demo-backend
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/group.name: ip
spec:
rules:
- http:
paths:
- path: /backend/*
backend:
serviceName: aws-alb-demo-backend
servicePort: 80
#---
#apiVersion: networking.k8s.io/v1beta1
#kind: Ingress
#metadata:
# name: aws-alb-instance-demo-frontend
# annotations:
# external-dns.alpha.kubernetes.io/hostname: "aws-alb-instance.demo.otterley.org"
# kubernetes.io/ingress.class: alb
# alb.ingress.kubernetes.io/target-type: instance
# alb.ingress.kubernetes.io/scheme: internet-facing
# alb.ingress.kubernetes.io/group.name: instance
#spec:
# backend:
# serviceName: aws-alb-demo-frontend
# servicePort: 80
#---
#apiVersion: networking.k8s.io/v1beta1
#kind: Ingress
#metadata:
# name: aws-alb-instance-demo-backend
# annotations:
# kubernetes.io/ingress.class: alb
# alb.ingress.kubernetes.io/target-type: instance
# alb.ingress.kubernetes.io/scheme: internet-facing
# alb.ingress.kubernetes.io/group.name: instance
#spec:
# rules:
# - http:
# paths:
# - path: /backend/*
# backend:
# serviceName: aws-alb-demo-backend
# servicePort: 80