mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Draft lobechat
This commit is contained in:
+40
-43
@@ -1,16 +1,16 @@
|
||||
# source https://github.com/GaiZhenbiao/ChuanhuChatGPT
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
namespace: home-apps
|
||||
name: chatbot-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: nfs-client
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
# source https://github.com/lobehub/lobe-chat
|
||||
# apiVersion: v1
|
||||
# kind: PersistentVolumeClaim
|
||||
# metadata:
|
||||
# namespace: home-apps
|
||||
# name: lobechat-pvc
|
||||
# spec:
|
||||
# accessModes:
|
||||
# - ReadWriteOnce
|
||||
# storageClassName: nfs-client
|
||||
# resources:
|
||||
# requests:
|
||||
# storage: 5Gi
|
||||
# ---
|
||||
# apiVersion: v1
|
||||
# kind: PersistentVolumeClaim
|
||||
@@ -28,80 +28,77 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: chatbot
|
||||
name: lobechat
|
||||
namespace: home-apps
|
||||
spec:
|
||||
ports:
|
||||
- port: 7860
|
||||
targetPort: 7860
|
||||
- port: 3210
|
||||
targetPort: 3210
|
||||
selector:
|
||||
app: chatbot
|
||||
app: lobechat
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: chatbot
|
||||
name: lobechat
|
||||
spec:
|
||||
revisionHistoryLimit: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: chatbot
|
||||
app: lobechat
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: chatbot
|
||||
app: lobechat
|
||||
spec:
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: chatbot-pvc
|
||||
# volumes:
|
||||
# - name: config
|
||||
# persistentVolumeClaim:
|
||||
# claimName: lobechat-pvc
|
||||
containers:
|
||||
- name: chatbot
|
||||
image: tuchuanhuhuhu/chuanhuchatgpt:latest
|
||||
- name: lobechat
|
||||
image: lobehub/lobe-chat
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 7860
|
||||
- containerPort: 3210
|
||||
env: []
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
cpu: 1000m
|
||||
memory: 1024Mi
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/history
|
||||
subPath: history
|
||||
- name: config
|
||||
mountPath: /app/config.json
|
||||
subPath: config.json
|
||||
# volumeMounts:
|
||||
# - name: config
|
||||
# mountPath: /app/config.json
|
||||
# subPath: config.json
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: chatbot-ingress
|
||||
name: lobechat-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
kubernetes.io/tls-acme: "true"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
nginx.ingress.kubernetes.io/auth-url: "https://id.junv.me/oauth2/auth"
|
||||
nginx.ingress.kubernetes.io/auth-signin: "https://id.junv.me/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
|
||||
nginx.ingress.kubernetes.io/auth-url: "https://id.junv.cc/oauth2/auth"
|
||||
nginx.ingress.kubernetes.io/auth-signin: "https://id.junv.cc/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- chat.junv.me
|
||||
secretName: chatgpt-tls
|
||||
- lobe.junv.cc
|
||||
secretName: lobechat-tls
|
||||
rules:
|
||||
- host: chat.junv.me
|
||||
- host: lobe.junv.cc
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: chatbot
|
||||
name: lobechat
|
||||
port:
|
||||
number: 7860
|
||||
number: 3210
|
||||
path: /
|
||||
pathType: Prefix
|
||||
|
||||
Reference in New Issue
Block a user