forked from piu28/eks-kubernetes-alb-ingress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinternal-ingress.yaml
44 lines (44 loc) · 1.49 KB
/
internal-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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:ACCOUNT:certificate/xxx-xxxx-xxxx-xxxx
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/subnets: subnet-xxxx,subnet-xxx,subnet-xxxx
alb.ingress.kubernetes.io/security-groups: sg-xxxx
alb.ingress.kubernetes.io/healthcheck-path: /health
alb.ingress.kubernetes.io/load-balancer-attributes: access_logs.s3.enabled=true,access_logs.s3.bucket=xxxx-alb-access-logs,access_logs.s3.prefix=internal-ingress
alb.ingress.kubernetes.io/actions.redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
name: internal-services-ingress
namespace: default
spec:
rules:
- http:
paths:
- path: /*
backend:
serviceName: redirect
servicePort: use-annotation
- host: details.k8sdemo.powerupcloud.com
http:
paths:
- path: /*
backend:
serviceName: details
servicePort: 443
- host: reviews.k8sdemo.powerupcloud.com
http:
paths:
- path: /*
backend:
serviceName: reviews
servicePort: 443
- host: ratings.k8sdemo.powerupcloud.com
http:
paths:
- path: /*
backend:
serviceName: ratings
servicePort: 443