k8s deploy method
This commit is contained in:
parent
3eba88b3dd
commit
fe13b65016
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
target
|
target
|
||||||
.direnv
|
.direnv
|
||||||
*.db
|
*.db
|
||||||
|
deploy/**/config
|
27
deploy/k8s/deployment.yaml
Normal file
27
deploy/k8s/deployment.yaml
Normal file
@ -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: <Image>
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "100m"
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: hangitbot
|
||||||
|
env:
|
||||||
|
- name: API_URL
|
||||||
|
value: https://tgapi.sense-t.eu.org/
|
||||||
|
|
13
deploy/k8s/kustomization.yaml
Normal file
13
deploy/k8s/kustomization.yaml
Normal file
@ -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: <Image>
|
||||||
|
newName: ghcr.io/senseab/hangitbot
|
||||||
|
newTag: v0.0.1
|
Loading…
Reference in New Issue
Block a user