-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress-alb.yml
47 lines (45 loc) · 1.75 KB
/
ingress-alb.yml
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
service:
type: NodePort
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
- name: ssh
port: 2222
targetPort: 22
protocol: TCP
containers:
ports:
- name: http
containerPort: 80
protocol: TCP
- name: ssh
containerPort: 22
protocol: TCP
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: instance
alb.ingress.kubernetes.io/group.name: devopscorner-lab-alb
alb.ingress.kubernetes.io/actions.common-services: >
{"Type":"forward","TargetGroupArn": "arn:aws:elasticloadbalancing:ap-southeast-1:YOUR_AWS_ACCOUNT:targetgroup/devopscorner-lab/GROUP_ID"}
### awscb.id ###
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:ap-southeast-1:YOUR_AWS_ACCOUNT:certificate/HASH_ID
alb.ingress.kubernetes.io/subnets: subnet-1234567890,subnet-0987654321
alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-TLS-1-1-2017-01
alb.ingress.kubernetes.io/healthcheck-port: traffic-port
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}, {"HTTP": 3000}, {"HTTP": 5000}, {"HTTP": 8080}]'
alb.ingress.kubernetes.io/ssl-redirect: '443'
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
alb.ingress.kubernetes.io/tags: Environment=STG,Service=ALB,DepartmentGroup=STG-DEVOPS,ResourceGroup=STG-ALB-DEVOPSCORNER,Name=alb-devopscorner-lab
hosts:
- host: jumppod.awscb.id
http:
paths:
- path: /
backend:
serviceName: jumppod-api
servicePort: use-annotation