-
Notifications
You must be signed in to change notification settings - Fork 3
/
ingress.yaml
43 lines (43 loc) · 1.15 KB
/
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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: quotesbackend
labels:
quotesapp: quotesbackend
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header l5d-dst-override $service_name.$namespace.svc.cluster.local:3000;
proxy_hide_header l5d-remote-ip;
proxy_hide_header l5d-server-id;
spec:
rules:
- host: 52-143-30-72.nip.io
http:
paths:
- path: /quotes
backend:
serviceName: quotesproxy
servicePort: 3000
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: quotesfrontend
labels:
quotesapp: quotesfrontend
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header l5d-dst-override $service_name.$namespace.svc.cluster.local:80;
proxy_hide_header l5d-remote-ip;
proxy_hide_header l5d-server-id;
spec:
rules:
- host: 52-143-30-72.nip.io
http:
paths:
- path: /
backend:
serviceName: quotesfrontend
servicePort: 80