Merge pull request #3097 from tc-turner/master

Added notes to  regarding external access when using TCP/UDP proxy in Ingress
This commit is contained in:
k8s-ci-robot 2018-09-15 07:37:44 -07:00 committed by GitHub
commit 0b2ca41e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,3 +30,34 @@ metadata:
data:
 53: "kube-system/kube-dns:53"
```
If TCP/UDP proxy support is used, then those ports need to be exposed in the Service defined for the Ingress.
```yaml
apiVersion: v1
kind: Service
metadata:
name: ingress-nginx
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
- name: https
port: 443
targetPort: 443
protocol: TCP
- name: proxied-tcp-9000
port: 9000
targetPort: 9000
protocol: TCP
selector:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
```