62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sillytavern
|
|
namespace: sillytavern
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: sillytavern
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sillytavern
|
|
spec:
|
|
containers:
|
|
- name: sillytavern
|
|
image: ghcr.io/sillytavern/sillytavern:latest
|
|
ports:
|
|
- containerPort: 8000
|
|
protocol: TCP
|
|
env:
|
|
- name: NODE_ENV
|
|
value: production
|
|
- name: FORCE_COLOR
|
|
value: "1"
|
|
envFrom:
|
|
- secretRef:
|
|
name: sillytavern-auth
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /home/node/app/config/config.yaml
|
|
subPath: config.yaml
|
|
- name: data
|
|
mountPath: /home/node/app/data
|
|
- name: plugins
|
|
mountPath: /home/node/app/plugins
|
|
- name: extensions
|
|
mountPath: /home/node/app/public/scripts/extensions/third-party
|
|
resources:
|
|
requests:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
limits:
|
|
cpu: "4"
|
|
memory: 4Gi
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: sillytavern-config
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: sillytavern-data
|
|
- name: plugins
|
|
persistentVolumeClaim:
|
|
claimName: sillytavern-plugins
|
|
- name: extensions
|
|
persistentVolumeClaim:
|
|
claimName: sillytavern-extensions
|