-
Notifications
You must be signed in to change notification settings - Fork 2
/
ip_location_server_ingress.yaml
56 lines (56 loc) · 1.41 KB
/
ip_location_server_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
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ip-location-server-ingress-grpc
namespace: production
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/issuer: "letsencrypt-prod"
#GRPC things
nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
# Timeout for response streaming
nginx.ingress.kubernetes.io/grpc_read_timeout: "60s"
# Timeout for request streaming
nginx.ingress.kubernetes.io/grpc_send_timeout: "60s"
nginx.ingress.kubernetes.io/client_body_timeout: "60s"
spec:
tls:
- hosts:
- location.ep-u-nw.de
secretName: ip-location-server-tls
rules:
- host: location.ep-u-nw.de
http:
paths:
- path: /ip_location_server.IPLocationService
pathType: Prefix
backend:
service:
name: ip-location-server-service
port:
number: 8081
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ip-location-server-ingress-http
namespace: production
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- location.ep-u-nw.de
secretName: ip-location-server-tls
rules:
- host: location.ep-u-nw.de
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ip-location-server-service
port:
number: 80