25 lines
555 B
YAML
25 lines
555 B
YAML
|
|
apiVersion: v1
|
|||
|
|
kind: Service
|
|||
|
|
metadata:
|
|||
|
|
name: pingora
|
|||
|
|
namespace: ingress
|
|||
|
|
spec:
|
|||
|
|
selector:
|
|||
|
|
app: pingora
|
|||
|
|
type: ClusterIP
|
|||
|
|
ports:
|
|||
|
|
- name: http
|
|||
|
|
port: 80
|
|||
|
|
targetPort: 80
|
|||
|
|
protocol: TCP
|
|||
|
|
- name: https
|
|||
|
|
port: 443
|
|||
|
|
targetPort: 443
|
|||
|
|
protocol: TCP
|
|||
|
|
- name: turn-udp
|
|||
|
|
port: 3478
|
|||
|
|
targetPort: 3478
|
|||
|
|
protocol: UDP
|
|||
|
|
# TURN relay ports 49152–49252 are forwarded via hostPort on the pod (see deployment).
|
|||
|
|
# Kubernetes Services do not support port ranges; UDP relay is handled at the node level.
|