Files
homelab/k8s/apps/rustdesk/service.yaml

80 lines
1.2 KiB
YAML
Raw Normal View History

2025-07-18 14:47:26 +03:00
---
apiVersion: v1
kind: Service
metadata:
name: rustdesk-hbbs
labels:
app: rustdesk-hbbs
spec:
type: LoadBalancer
externalTrafficPolicy: Local
selector:
app: rustdesk-hbbs
ports:
- name: registry-tcp
port: 21116
targetPort: 21116
protocol: TCP
2025-07-18 15:22:18 +03:00
- name: nat
port: 21115
targetPort: 21115
protocol: TCP
2025-07-18 14:47:26 +03:00
- name: web
2025-07-18 15:22:18 +03:00
port: 21114
targetPort: 21114
2025-07-18 14:47:26 +03:00
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: rustdesk-hbbs-udp
labels:
app: rustdesk-hbbs
spec:
type: LoadBalancer
externalTrafficPolicy: Local
selector:
app: rustdesk-hbbs
ports:
- name: registry-udp
port: 21116
targetPort: 21116
protocol: UDP
---
apiVersion: v1
kind: Service
metadata:
name: rustdesk-hbbr
labels:
app: rustdesk-hbbr
spec:
type: LoadBalancer
externalTrafficPolicy: Local
selector:
app: rustdesk-hbbr
ports:
- name: relay
port: 21117
targetPort: 21117
protocol: TCP
---
2025-07-18 15:22:18 +03:00
# ClusterIP service for web interface (used via Ingress)
2025-07-18 14:47:26 +03:00
apiVersion: v1
kind: Service
metadata:
name: rustdesk-web
labels:
app: rustdesk-hbbs
spec:
type: ClusterIP
selector:
app: rustdesk-hbbs
ports:
- name: web
2025-07-18 15:22:18 +03:00
port: 21114
targetPort: 21114
2025-07-18 14:47:26 +03:00
protocol: TCP