1
0
Fork 0

move sillytavern config to configmap instead of pvc

This commit is contained in:
Massaki Archambault 2024-07-08 12:57:28 -04:00
parent 5792a1d269
commit 7339200fc6
4 changed files with 78 additions and 38 deletions

View File

@ -0,0 +1,47 @@
dataRoot: ./data
listen: false
port: 8000
whitelistMode: true
enableForwardedWhitelist: true
whitelist:
- 10.*.*.*
- 192.168.*.*
basicAuthMode: false
basicAuthUser:
username: user
password: password
enableCorsProxy: false
enableUserAccounts: false
enableDiscreetLogin: false
cookieSecret: changeme
disableCsrfProtection: false
securityOverride: false
autorun: true
disableThumbnails: false
thumbnailsQuality: 95
avatarThumbnailsPng: false
allowKeysExposure: false
skipContentCheck: false
disableChatBackup: false
numberOfBackups: 50
whitelistImportDomains:
- localhost
- cdn.discordapp.com
- files.catbox.moe
- raw.githubusercontent.com
requestOverrides: []
enableExtensions: true
extras:
disableAutoDownload: false
classificationModel: Cohee/distilbert-base-uncased-go-emotions-onnx
captioningModel: Xenova/vit-gpt2-image-captioning
embeddingModel: Cohee/jina-embeddings-v2-base-en
promptExpansionModel: Cohee/fooocus_expansion-onnx
speechToTextModel: Xenova/whisper-small
textToSpeechModel: Xenova/speecht5_tts
openai:
randomizeUserId: false
captionSystemPrompt: ""
deepl:
formality: default
enableServerPlugins: false

View File

@ -12,6 +12,9 @@ configMapGenerator:
literals:
- SILLYTAVERN_EXTERNAL_HOST=tavern.badjware.dev
- SILLYTAVERN_EXTERNAL_URL=https://tavern.badjware.dev
- name: server-config
files:
- ./configurations/config.yaml
replacements:
- source:

View File

@ -28,58 +28,48 @@ spec:
image: ghcr.io/sillytavern/sillytavern:latest
resources:
requests:
memory: 500Mi
memory: 256Mi
cpu: 200m
limits:
memory: 500Mi
memory: 256Mi
cpu: 200m
ports:
- containerPort: 8000
name: http
volumeMounts:
- name: sillytavern-extensions
mountPath: /home/node/app/public/scripts/extensions/third-party
# - name: sillytavern-plugins
# mountPath: /home/node/app/plugins
- name: sillytavern-config
mountPath: /home/node/app/config
- name: sillytavern-user
mountPath: /home/node/app/public/user
mountPath: /home/node/app/config/config.yaml
subPath: config.yaml
- name: sillytavern-data
mountPath: /home/node/app/data
volumes:
- name: sillytavern-extensions
persistentVolumeClaim:
claimName: server-extensions
# - name: sillytavern-plugins
# persistentVolumeClaim:
# claimName: server-plugins
- name: sillytavern-config
configMap:
name: server-config
- name: sillytavern-data
persistentVolumeClaim:
claimName: server-config
- name: sillytavern-user
persistentVolumeClaim:
claimName: server-user
claimName: server-data
---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: server-plugins
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-extensions
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-config
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-user
name: server-data
spec:
accessModes:
- ReadWriteOnce

View File

@ -3,6 +3,6 @@ resources:
- ../../bases/ollama
- ../../bases/litellm
- ../../bases/openwebui
# - ../../bases/sillytavern
- ../../bases/sillytavern
namespace: llm