diff --git a/.gitignore b/.gitignore index b409494..dd137ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target .direnv -*.db \ No newline at end of file +*.db +deploy/**/config \ No newline at end of file diff --git a/deploy/k8s/deployment.yaml b/deploy/k8s/deployment.yaml new file mode 100644 index 0000000..449da84 --- /dev/null +++ b/deploy/k8s/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hangitbot +spec: + selector: + matchLabels: + app: hangitbot + template: + metadata: + labels: + app: hangitbot + spec: + containers: + - name: hangitbot + image: + resources: + limits: + memory: "128Mi" + cpu: "100m" + envFrom: + - secretRef: + name: hangitbot + env: + - name: API_URL + value: https://tgapi.sense-t.eu.org/ + diff --git a/deploy/k8s/kustomization.yaml b/deploy/k8s/kustomization.yaml new file mode 100644 index 0000000..402e695 --- /dev/null +++ b/deploy/k8s/kustomization.yaml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json + +resources: + - deployment.yaml +secretGenerator: + - name: hangitbot + files: + - config/DATABASE_URI + - config/TGBOT_TOKEN +images: + - name: + newName: ghcr.io/senseab/hangitbot + newTag: v0.0.1