diff --git a/algo-dcbot/deploy.algo-dcbot.yml b/algo-dcbot/deploy.algo-dcbot.yml new file mode 100644 index 0000000..2f16cb6 --- /dev/null +++ b/algo-dcbot/deploy.algo-dcbot.yml @@ -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 diff --git a/algo-dcbot/kustomization.yaml b/algo-dcbot/kustomization.yaml new file mode 100644 index 0000000..365d802 --- /dev/null +++ b/algo-dcbot/kustomization.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +generatorOptions: + disableNameSuffixHash: true +resources: + - ns.algo-dcbot.yaml + - deploy.algo-dcbot.yaml diff --git a/algo-dcbot/ns.archrepo.yaml b/algo-dcbot/ns.archrepo.yaml new file mode 100644 index 0000000..d35badf --- /dev/null +++ b/algo-dcbot/ns.archrepo.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: algo-dcbot diff --git a/flux-applications/algo-dcbot.yaml b/flux-applications/algo-dcbot.yaml new file mode 100644 index 0000000..98cf3f5 --- /dev/null +++ b/flux-applications/algo-dcbot.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: algo-dcbot + namespace: flux-system +spec: + interval: 10m0s + path: ./algo-dcbot/ + prune: true + force: false + sourceRef: + kind: GitRepository + name: applications