-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackend-ingress.yaml
32 lines (31 loc) · 1.16 KB
/
backend-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
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: backend-ingress
namespace: sassy
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80},{"HTTPS":443}]'
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:eu-west-1:PUT_A_REAL_ACCOUNT_ID_HERE:certificate/937f0eee-396b-4092-adfe-0b27e44207fc
alb.ingress.kubernetes.io/conditions.sassy-backend: >
[{"field":"http-header","httpHeaderConfig":{"httpHeaderName":"x-auth-token","values":["fd3b62e0-9c28-4382-9696-5ceb610901b9"]}}]
labels:
app: backend-ingress
spec:
ingressClassName: alb
rules:
- host: mytotallyserioussaasbusiness.com
http:
paths:
- path: /api/*
pathType: ImplementationSpecific
backend:
service:
name: sassy-backend
port:
number: 80
tls:
- hosts:
- mytotallyserioussaasbusiness.com