Add: algo dcbot
All checks were successful
Lint yaml / build-package (push) Successful in 8s

This commit is contained in:
2024-11-06 11:04:11 +00:00
parent 510ec4f538
commit 7ea0026e68
4 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: algo-dcbot
labels:
app: algo-dcbot
spec:
replicas: 1
selector:
matchLabels:
app: algo-dcbot
template:
metadata:
labels:
app: algo-dcbot
spec:
containers:
- name: dcbot
image: gitea.konchin.com/service/algo-dcbot:latest
env:
- name: DC_TOKEN
valueFrom:
secretKeyRef:
name: algo-dcbot-secret
key: DC_TOKEN
- name: DC_CLIENTID
valueFrom:
secretKeyRef:
name: algo-dcbot-secret
key: DC_CLIENTID
- name: ADMIN_ID
valueFrom:
secretKeyRef:
name: algo-dcbot-secret
key: ADMIN_ID
- name: DEFAULT_ROLE
valueFrom:
secretKeyRef:
name: algo-dcbot-secret
key: DEFAULT_ROLE
imagePullSecrets:
- name: regcred

View File

@@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
generatorOptions:
disableNameSuffixHash: true
resources:
- ns.algo-dcbot.yaml
- deploy.algo-dcbot.yaml

View File

@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: algo-dcbot