Skip to content

Commit

Permalink
Merge pull request #3097 from tc-turner/master
Browse files Browse the repository at this point in the history
Added notes to  regarding external access when using TCP/UDP proxy in Ingress
  • Loading branch information
k8s-ci-robot authored Sep 15, 2018
2 parents 6ed5c95 + ccc3b63 commit 0b2ca41
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/user-guide/exposing-tcp-udp-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 0b2ca41

Please sign in to comment.