Refactor: Use flux instead of kubectl
All checks were successful
Build image and deploy / release-image (push) Successful in 1m18s
All checks were successful
Build image and deploy / release-image (push) Successful in 1m18s
This commit is contained in:
53
flux/deploy.mafuyu.yaml
Normal file
53
flux/deploy.mafuyu.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mafuyu
|
||||
labels:
|
||||
app: mafuyu
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mafuyu
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mafuyu
|
||||
spec:
|
||||
containers:
|
||||
- name: dcbot
|
||||
image: gitea.konchin.com/service/mafuyu-kirisu:latest
|
||||
env:
|
||||
- name: DC_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mafuyu-secret
|
||||
key: DC_TOKEN
|
||||
- name: DC_CLIENTID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mafuyu-secret
|
||||
key: DC_CLIENTID
|
||||
- name: ADMIN_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mafuyu-secret
|
||||
key: ADMIN_ID
|
||||
- name: MONGODB_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mafuyu-secret
|
||||
key: MONGODB_HOST
|
||||
- name: MONGODB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mafuyu-secret
|
||||
key: MONGODB_USER
|
||||
- name: MONGODB_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mafuyu-secret
|
||||
key: MONGODB_PASS
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
Reference in New Issue
Block a user