Merge branch 'main' of ssh://gt.hexor.cy:30022/ab/homelab
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 12s

This commit is contained in:
AB
2025-11-07 15:29:17 +02:00
6 changed files with 76 additions and 4 deletions

View File

@@ -50,6 +50,10 @@ spec:
value: "/app/tls/tls.crt"
- name: UVICORN_SSL_KEYFILE
value: "/app/tls/tls.key"
- name: CUSTOM_TEMPLATES_DIRECTORY
value: "/code/app/templates/"
- name: SUBSCRIPTION_PAGE_TEMPLATE
value: "subscription/index.html"
ports:
- name: http
containerPort: 8000

View File

@@ -0,0 +1,42 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: desubot
labels:
app: desubot
annotations:
reloader.stakater.com/auto: "true"
spec:
selector:
matchLabels:
app: desubot
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: desubot
spec:
nodeSelector:
kubernetes.io/hostname: home.homenet
containers:
- name: desubot
image: 'ultradesu/desubot:latest'
imagePullPolicy: Always
envFrom:
- secretRef:
name: desubot
env:
- name: RUST_LOG
value: "info"
volumeMounts:
- mountPath: /storage
name: storage
volumes:
- name: storage
nfs:
server: nas.homenet
path: /mnt/storage/Storage/k8s/desubot/
readOnly: false

View File

@@ -22,3 +22,28 @@ spec:
remoteRef:
key: 97bd0af9-54ab-429a-b060-09626525f4cd
property: fields[0].value
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: desubot
spec:
target:
name: desubot
deletionPolicy: Delete
template:
type: Opaque
data:
TELEGRAM_BOT_TOKEN: |-
{{ .token }}
data:
- secretKey: token
sourceRef:
storeRef:
name: vaultwarden-login
kind: ClusterSecretStore
remoteRef:
key: 97bd0af9-54ab-429a-b060-09626525f4cd
property: fields[1].value

View File

@@ -4,5 +4,6 @@ kind: Kustomization
resources:
- app.yaml
- deployment.yaml
- get-id-bot.yaml
- external-secrets.yaml
- desubot.yaml

View File

@@ -6,7 +6,7 @@ metadata:
namespace: immich
spec:
capacity:
storage: 50Gi
storage: 55Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
@@ -79,14 +79,14 @@ spec:
- CREATE EXTENSION IF NOT EXISTS earthdistance;
storage:
size: 50Gi
size: 55Gi
storageClass: nfs-storage
pvcTemplate:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
storage: 55Gi
storageClassName: nfs-storage
volumeMode: Filesystem