This commit is contained in:
43
algo-dcbot/deploy.algo-dcbot.yml
Normal file
43
algo-dcbot/deploy.algo-dcbot.yml
Normal 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
|
||||
8
algo-dcbot/kustomization.yaml
Normal file
8
algo-dcbot/kustomization.yaml
Normal 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
|
||||
5
algo-dcbot/ns.archrepo.yaml
Normal file
5
algo-dcbot/ns.archrepo.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: algo-dcbot
|
||||
Reference in New Issue
Block a user