-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathnlb-services.yaml
58 lines (58 loc) · 1.44 KB
/
nlb-services.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
apiVersion: v1
kind: Service
metadata:
labels:
app: aws-nlb-ip-demo
name: aws-nlb-ip-demo
annotations:
external-dns.alpha.kubernetes.io/hostname: "aws-nlb-ip.demo.otterley.org"
service.beta.kubernetes.io/aws-load-balancer-type: "nlb-ip"
spec:
type: LoadBalancer # Use NodePort on EKS <= 1.17
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: aws-lb-demo-frontend
---
apiVersion: v1
kind: Service
metadata:
labels:
app: aws-nlb-ip-proxyprotocol-demo
name: aws-nlb-ip-proxyprotocol-demo
annotations:
external-dns.alpha.kubernetes.io/hostname: "aws-nlb-ip-proxyproto.demo.otterley.org"
service.beta.kubernetes.io/aws-load-balancer-type: "nlb-ip"
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
spec:
type: LoadBalancer # Use NodePort on EKS <= 1.17
ports:
- name: http
port: 80
protocol: TCP
targetPort: 9080
selector:
app: aws-lb-demo-frontend
#---
#apiVersion: v1
#kind: Service
#metadata:
# labels:
# app: aws-nlb-instance-demo
# name: aws-nlb-instance-demo
# annotations:
# # In-tree load balancer that uses Instance-type targets
# external-dns.alpha.kubernetes.io/hostname: "aws-nlb-instance.demo.otterley.org"
# service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
#spec:
# type: LoadBalancer
# ports:
# - name: http
# port: 80
# protocol: TCP
# targetPort: 8080
# selector:
# app: aws-lb-demo-frontend