contrib/k8s: Use two Ingress resources for HTTP and TLS gRPC

* Fixes Ingress controller issue upgrading from nginx-ingress-controller
0.9-beta.3 to 0.9-beta.4 through 0.9-beta.7
This commit is contained in:
Dalton Hubble
2017-06-13 14:06:53 -07:00
parent 5a9c24ceb3
commit a20720a0d4
2 changed files with 16 additions and 8 deletions

View File

@@ -302,7 +302,8 @@ Create an Ingress resource to expose the HTTP read-only and gRPC API endpoints.
$ kubectl create -f contrib/k8s/matchbox-ingress.yaml
$ kubectl get ingress
NAME HOSTS ADDRESS PORTS AGE
matchbox matchbox.example.com,matchbox-rpc.example.com 10.128.0.3,10... 80, 443 32m
matchbox matchbox.example.com 10.128.0.3,10... 80 29m
matchbox-rpc matchbox-rpc.example.com 10.128.0.3,10... 80, 443 29m
```
Add DNS records `matchbox.example.com` and `matchbox-rpc.example.com` to route traffic to the Ingress Controller.

View File

@@ -1,5 +1,19 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: matchbox
spec:
rules:
- host: matchbox.example.com
http:
paths:
- path: /
backend:
serviceName: matchbox
servicePort: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: matchbox
annotations:
@@ -9,13 +23,6 @@ spec:
- hosts:
- matchbox-rpc.example.com
rules:
- host: matchbox.example.com
http:
paths:
- path: /
backend:
serviceName: matchbox
servicePort: 8080
- host: matchbox-rpc.example.com
http:
paths: