Add k8s manifest
All checks were successful
release-tag / release-image (push) Successful in 1m27s

This commit is contained in:
2024-09-02 02:13:10 +00:00
parent 51decf9b6e
commit 232b14a21a
2 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: algo-dcbot-config
data:
dcbot-token:
dcbot-id:
maintainer-id:
default-role-id:

50
k8s/deploy.algo-dcbot.yml Normal file
View File

@@ -0,0 +1,50 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: algo-dcbot
labels:
app: algo-dcbot
spec:
replicas: 1
selector:
matchLabels:
app: algo-dcbot
rel: stable
template:
metadata:
labels:
app: algo-dcbot
rel: stable
ver: '0.2'
spec:
containers:
- name: dcbot
image: 'gitea.konchin.com/system/algo-dcbot:latest'
env:
- name: DC_TOKEN
valueFrom:
configMapKeyRef:
name: algo-dcbot-config
key: dcbot-token
optional: false
- name: DC_CLIENTID
valueFrom:
configMapKeyRef:
name: algo-dcbot-config
key: dcbot-id
optional: false
- name: ADMIN_ID
valueFrom:
configMapKeyRef:
name: algo-dcbot-config
key: maintainer-id
optional: true
- name: DEFAULT_ROLE
valueFrom:
configMapKeyRef:
name: algo-dcbot-config
key: default-role-id
optional: true
imagePullSecrets:
- name: regcred