80 lines
1.3 KiB
YAML
80 lines
1.3 KiB
YAML
![]() |
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: rustdesk-hbbs
|
||
|
labels:
|
||
|
app: rustdesk-hbbs
|
||
|
spec:
|
||
|
type: LoadBalancer
|
||
|
externalTrafficPolicy: Local
|
||
|
selector:
|
||
|
app: rustdesk-hbbs
|
||
|
ports:
|
||
|
- name: nat
|
||
|
port: 21115
|
||
|
targetPort: 21115
|
||
|
protocol: TCP
|
||
|
- name: registry-tcp
|
||
|
port: 21116
|
||
|
targetPort: 21116
|
||
|
protocol: TCP
|
||
|
- name: web
|
||
|
port: 21118
|
||
|
targetPort: 21118
|
||
|
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
|
||
|
|
||
|
---
|
||
|
# ClusterIP сервис для веб-интерфейса (используется через Ingress)
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: rustdesk-web
|
||
|
labels:
|
||
|
app: rustdesk-hbbs
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
selector:
|
||
|
app: rustdesk-hbbs
|
||
|
ports:
|
||
|
- name: web
|
||
|
port: 21118
|
||
|
targetPort: 21118
|
||
|
protocol: TCP
|