Files
homelab/k8s/apps/rustdesk/deployment.yaml
Ultradesu ca7fed506b
All checks were successful
Check with kubeconform / lint (push) Successful in 9s
Adjust Rustdesk certs
2025-07-18 15:12:17 +03:00

124 lines
2.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rustdesk-hbbs
labels:
app: rustdesk-hbbs
spec:
replicas: 1
selector:
matchLabels:
app: rustdesk-hbbs
template:
metadata:
labels:
app: rustdesk-hbbs
spec:
nodeSelector:
kubernetes.io/hostname: master.tail2fe2d.ts.net
containers:
- name: hbbs
image: rustdesk/rustdesk-server:latest
imagePullPolicy: Always
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
command: ["hbbs"]
args:
- "-r"
- "rd.hexor.cy:21117" # Relay сервер
- "-p"
- "21115"
- "-w"
- "21118" # Веб-порт
ports:
- name: nat
containerPort: 21115
protocol: TCP
- name: registry
containerPort: 21116
protocol: TCP
- name: web
containerPort: 21118
protocol: TCP
volumeMounts:
- name: keys
mountPath: /root
readOnly: true
env:
- name: RUST_LOG
value: "info"
volumes:
- name: keys
secret:
secretName: rustdesk-keys
items:
- key: id_ed25519
path: id_ed25519
mode: 0600
- key: id_ed25519.pub
path: id_ed25519.pub
mode: 0644
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rustdesk-hbbr
labels:
app: rustdesk-hbbr
spec:
replicas: 1
selector:
matchLabels:
app: rustdesk-hbbr
template:
metadata:
labels:
app: rustdesk-hbbr
spec:
nodeSelector:
kubernetes.io/hostname: master.tail2fe2d.ts.net
containers:
- name: hbbr
image: rustdesk/rustdesk-server:latest
imagePullPolicy: Always
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
command: ["hbbr"]
args:
- "-p"
- "21117"
ports:
- name: relay
containerPort: 21117
protocol: TCP
volumeMounts:
- name: keys
mountPath: /root
readOnly: true
env:
- name: RUST_LOG
value: "info"
volumes:
- name: keys
secret:
secretName: rustdesk-keys
items:
- key: id_ed25519
path: id_ed25519
mode: 0600
- key: id_ed25519.pub
path: id_ed25519.pub
mode: 0644