feat: add matrix bot deployment
This commit is contained in:
parent
3bbc253dc7
commit
1bfe72ce00
2 changed files with 55 additions and 0 deletions
|
@ -38,6 +38,11 @@ stringData:
|
||||||
You must set at least `RENOVATE_PLATFORM`, `RENOVATE_ENDPOINT` and `RENOVATE_TOKEN`.
|
You must set at least `RENOVATE_PLATFORM`, `RENOVATE_ENDPOINT` and `RENOVATE_TOKEN`.
|
||||||
You can set any configuration that can be set by environment variable (see References).
|
You can set any configuration that can be set by environment variable (see References).
|
||||||
|
|
||||||
|
### Matrix-Bot
|
||||||
|
|
||||||
|
The deployment does not include any configuration. Add a new configmap named `matrix-bot-cfg` in the namespace `matrix-bot` containing the necessary variables.
|
||||||
|
See: https://github.com/matrixgpt/matrix-chatgpt-bot/blob/main/.env.example
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
References:
|
References:
|
||||||
|
|
50
manifests/matrix-bot.yml
Normal file
50
manifests/matrix-bot.yml
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: matrix-bot
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: matrix-bot-pvc
|
||||||
|
namespace: matrix-bot
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: matrix-chatgpt-bot
|
||||||
|
namespace: matrix-bot
|
||||||
|
labels:
|
||||||
|
app: matrix-chatgpt-bot
|
||||||
|
annotations:
|
||||||
|
configmap.reloader.stakater.com/reload: matrix-bot-cfg
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: matrix-chatgpt-bot
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: matrix-chatgpt-bot
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: matrix-chatgpt-bot
|
||||||
|
image: ghcr.io/matrixgpt/matrix-chatgpt-bot:latest
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: matrix-bot-cfg
|
||||||
|
volumeMounts:
|
||||||
|
- name: matrix-bot-storage
|
||||||
|
mountPath: /storage
|
||||||
|
volumes:
|
||||||
|
- name: matrix-bot-storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: matrix-bot-pvc
|
||||||
|
terminationGracePeriodSeconds: 3
|
Loading…
Reference in a new issue