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: literals:
- SILLYTAVERN_EXTERNAL_HOST=tavern.badjware.dev - SILLYTAVERN_EXTERNAL_HOST=tavern.badjware.dev
- SILLYTAVERN_EXTERNAL_URL=https://tavern.badjware.dev - SILLYTAVERN_EXTERNAL_URL=https://tavern.badjware.dev
- name: server-config
files:
- ./configurations/config.yaml
replacements: replacements:
- source: - source:

View File

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

View File

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