96de2d2573
Manage Telegram instances through Kubernetes with legacy adoption for forust and anna. Build and deploy the panel image alongside the runtime.
143 lines
3.6 KiB
YAML
143 lines
3.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: forust-userbot-deployment
|
|
labels:
|
|
app: forust-userbot
|
|
app.kubernetes.io/name: userbot
|
|
app.kubernetes.io/instance: forust
|
|
annotations:
|
|
userbot.forust.xyz/display-name: forust
|
|
userbot.forust.xyz/legacy: "true"
|
|
userbot.forust.xyz/credentials-secret: userbot-forust-secrets
|
|
userbot.forust.xyz/pvc: forust-pvc
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: forust-userbot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: forust-userbot
|
|
annotations:
|
|
kubectl.kubernetes.io/restartedAt: "2026-07-25T20:24:51+02:00"
|
|
spec:
|
|
containers:
|
|
- name: forust-userbot
|
|
image: gcr.forust.xyz/forust/userbot:latest
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
memory: "1.5Gi"
|
|
cpu: "300m"
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "80m"
|
|
envFrom:
|
|
- secretRef:
|
|
name: userbot-common-secrets
|
|
- configMapRef:
|
|
name: userbot-common-config
|
|
- secretRef:
|
|
name: userbot-forust-secrets
|
|
volumeMounts:
|
|
- name: downloads
|
|
mountPath: /app/downloads
|
|
- name: forust-storage
|
|
mountPath: /app/data
|
|
subPath: data
|
|
- name: forust-storage
|
|
mountPath: /app/logs
|
|
subPath: logs
|
|
volumes:
|
|
- name: downloads
|
|
hostPath:
|
|
path: /srv/homelab/userbot/Downloads
|
|
type: DirectoryOrCreate
|
|
- name: forust-storage
|
|
persistentVolumeClaim:
|
|
claimName: forust-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: forust-pvc
|
|
spec:
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: anna-userbot-deployment
|
|
labels:
|
|
app: anna-userbot
|
|
app.kubernetes.io/name: userbot
|
|
app.kubernetes.io/instance: anna
|
|
annotations:
|
|
userbot.forust.xyz/display-name: anna
|
|
userbot.forust.xyz/legacy: "true"
|
|
userbot.forust.xyz/credentials-secret: userbot-anna-secrets
|
|
userbot.forust.xyz/pvc: anna-pvc
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: anna-userbot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: anna-userbot
|
|
annotations:
|
|
kubectl.kubernetes.io/restartedAt: "2026-07-25T20:24:51+02:00"
|
|
spec:
|
|
containers:
|
|
- name: anna-userbot
|
|
image: gcr.forust.xyz/forust/userbot:latest
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
memory: "1.5Gi"
|
|
cpu: "300m"
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "80m"
|
|
envFrom:
|
|
- secretRef:
|
|
name: userbot-common-secrets
|
|
- configMapRef:
|
|
name: userbot-common-config
|
|
- secretRef:
|
|
name: userbot-anna-secrets
|
|
volumeMounts:
|
|
- name: downloads
|
|
mountPath: /app/downloads
|
|
- name: anna-storage
|
|
mountPath: /app/data
|
|
subPath: data
|
|
- name: anna-storage
|
|
mountPath: /app/logs
|
|
subPath: logs
|
|
volumes:
|
|
- name: downloads
|
|
hostPath:
|
|
path: /srv/homelab/userbot/Downloads
|
|
type: DirectoryOrCreate
|
|
- name: anna-storage
|
|
persistentVolumeClaim:
|
|
claimName: anna-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: anna-pvc
|
|
spec:
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|