Added tg bots

This commit is contained in:
AB
2025-11-06 02:35:40 +02:00
parent dbfdc0f122
commit 602b729d97
4 changed files with 89 additions and 0 deletions

21
k8s/apps/tg-bots/app.yaml Normal file
View File

@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: tg-bots
namespace: argocd
spec:
project: apps
destination:
namespace: tg-bots
server: https://kubernetes.default.svc
source:
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
targetRevision: HEAD
path: k8s/apps/tg-bots
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,36 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: get-id-bot
labels:
app: get-id-bot
annotations:
reloader.stakater.com/auto: "true"
spec:
selector:
matchLabels:
app: get-id-bot
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: get-id-bot
spec:
nodeSelector:
kubernetes.io/hostname: master.tail2fe2d.ts.net
containers:
- name: get-id-bot
image: 'ghcr.io/house-of-vanity/get_id_bot:main'
imagePullPolicy: Always
envFrom:
- secretRef:
name: get-id-bot
env:
- name: RUST_LOG
value: "info"

View File

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

View File

@@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app.yaml
- deployment.yaml
- external-secrets.yaml