50 lines
1 KiB
YAML
50 lines
1 KiB
YAML
---
|
|
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
|