Skip to content

Commit 4af2d4d

Browse files
authored
Merge pull request #312 from citrix/docs
adding the multiport service support
2 parents dad2e0d + cc6e64f commit 4af2d4d

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Multi-port services support
2+
3+
There are situations where you need to expose more than one port for a service. The Citrix ingress controller supports configuring multiple port definitions on a service.
4+
You can provide a service port name (supported from the Citrix ingress controller version 1.9.20 onwards) or port number for a targeted back end service while configuring the Ingress rules.
5+
6+
## Example: Multi-port service
7+
8+
Following is an example for multi-port service definitions.
9+
10+
**Ingress**
11+
12+
```yml
13+
14+
apiVersion: extensions/v1beta1
15+
kind: Ingress
16+
metadata:
17+
name: servicemultiportname
18+
annotations:
19+
ingress.citrix.com/frontend-ip: "192.101.12.111"
20+
spec:
21+
rules:
22+
- host: app
23+
http:
24+
paths:
25+
- path: /v1
26+
backend:
27+
serviceName: myservice
28+
servicePort: insecure
29+
- host: app
30+
http:
31+
paths:
32+
- path: /v2
33+
backend:
34+
serviceName: my-service
35+
servicePort: secure
36+
```
37+
38+
**Multi-port service**
39+
40+
```yml
41+
42+
apiVersion: v1
43+
kind: Service
44+
metadata:
45+
name: myservice
46+
spec:
47+
selector:
48+
app: myapp
49+
ports:
50+
- name: insecure
51+
protocol: TCP
52+
port: 80
53+
targetPort: 9376
54+
- name: secure
55+
protocol: TCP
56+
port: 443
57+
targetPort: 9377
58+
```

0 commit comments

Comments
 (0)