/
ingress-nginx-grpc.yaml
43 lines (43 loc) · 1.58 KB
/
ingress-nginx-grpc.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
# ingress-nginx with GRPC support
# --------------------------------------
# TLS will be terminated by the ingress controller. The ingress controller
# should be configured an Layer 4 external load balancer.
# Two ingress resources will configured for GRPC support: GPRC and HTTPS.
# References:
# * https://github.com/kubernetes-sigs/external-dns/
# * https://cert-manager.io/
# * https://kubernetes.github.io/ingress-nginx/
# * https://kubernetes.github.io/ingress-nginx/examples/grpc/
# * https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/grpc
global:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: HTTP
cert-manager.io/cluster-issuer: letsencrypt-prod
tls:
# All hostnames must be listed for grpc + https ingress shared cert secret
- hosts:
- ratel.example.com
- alpha.example.com
- grpc.example.com
secretName: example-tls
ratel_hostname: ratel.example.com
alpha_hostname: alpha.example.com
ingress_grpc:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: GRPC
cert-manager.io/cluster-issuer: letsencrypt-prod
tls:
# All hostnames must be listed for grpc + https ingress shared cert secret
- hosts:
- ratel.example.com
- alpha.example.com
- grpc.example.com
secretName: example-tls
alpha_grpc_hostname: grpc.example.com