mirror of https://github.com/Mai-with-u/MaiBot.git
update: 更新helm chart到0.11.5-beta,新增webui的service和ingress资源模板
parent
de7a45cad5
commit
14514ba837
|
|
@ -2,5 +2,5 @@ apiVersion: v2
|
||||||
name: maibot
|
name: maibot
|
||||||
description: "Maimai Bot, a cyber friend dedicated to group chats"
|
description: "Maimai Bot, a cyber friend dedicated to group chats"
|
||||||
type: application
|
type: application
|
||||||
version: 0.11.3-beta
|
version: 0.11.5-beta
|
||||||
appVersion: 0.11.3-beta
|
appVersion: 0.11.5-beta
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@ data:
|
||||||
.env: |
|
.env: |
|
||||||
HOST=0.0.0.0
|
HOST=0.0.0.0
|
||||||
PORT=8000
|
PORT=8000
|
||||||
|
WEBUI_ENABLED={{ if .Values.core.webui.enabled }}true{{ else }}false{{ end }}
|
||||||
|
WEBUI_MODE=production
|
||||||
|
WEBUI_HOST=0.0.0.0
|
||||||
|
WEBUI_PORT=8001
|
||||||
model_config.toml: |
|
model_config.toml: |
|
||||||
{{ .Values.config.core_model_config | nindent 4 }}
|
{{ .Values.config.core_model_config | nindent 4 }}
|
||||||
bot_config.toml: |
|
bot_config.toml: |
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
{{- if and .Values.core.webui.enabled .Values.core.webui.ingress.enabled }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-maibot-webui
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- if .Values.core.webui.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{ toYaml .Values.core.webui.ingress.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app: {{ .Release.Name }}-maibot-core
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.core.webui.ingress.className }}
|
||||||
|
rules:
|
||||||
|
- host: {{ .Values.core.webui.ingress.host }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: {{ .Release.Name }}-maibot-core
|
||||||
|
port:
|
||||||
|
number: {{ .Values.core.webui.service.port }}
|
||||||
|
path: {{ .Values.core.webui.ingress.path }}
|
||||||
|
pathType: {{ .Values.core.webui.ingress.pathType }}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -11,6 +11,15 @@ spec:
|
||||||
port: 8000
|
port: 8000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
|
{{- if .Values.core.webui.enabled }}
|
||||||
|
- name: webui
|
||||||
|
port: {{ .Values.core.webui.service.port }}
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8001
|
||||||
|
{{- if eq .Values.core.webui.service.type "NodePort" }}
|
||||||
|
nodePort: {{ .Values.core.webui.service.nodePort | default nil }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app: {{ .Release.Name }}-maibot-core
|
app: {{ .Release.Name }}-maibot-core
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,17 @@ spec:
|
||||||
value: 99f08e0cab0190de853cb6af7d64d4de
|
value: 99f08e0cab0190de853cb6af7d64d4de
|
||||||
- name: PRIVACY_AGREE
|
- name: PRIVACY_AGREE
|
||||||
value: 9943b855e72199d0f5016ea39052f1b6
|
value: 9943b855e72199d0f5016ea39052f1b6
|
||||||
image: {{ .Values.core.image.repository | default "sengokucola/maibot" }}:{{ .Values.core.image.tag | default "0.11.3-beta" }}
|
image: {{ .Values.core.image.repository | default "sengokucola/maibot" }}:{{ .Values.core.image.tag | default "0.11.5-beta" }}
|
||||||
imagePullPolicy: {{ .Values.core.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.core.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
name: adapter-ws
|
name: adapter-ws
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- if .Values.core.webui.enabled }}
|
||||||
|
- containerPort: 8001
|
||||||
|
name: webui
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.core.resources }}
|
{{- if .Values.core.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.core.resources | nindent 12 }}
|
{{ toYaml .Values.core.resources | nindent 12 }}
|
||||||
|
|
@ -69,7 +74,7 @@ spec:
|
||||||
command:
|
command:
|
||||||
- python3
|
- python3
|
||||||
workingDir: /MaiMBot
|
workingDir: /MaiMBot
|
||||||
image: {{ .Values.core.image.repository | default "sengokucola/maibot" }}:{{ .Values.core.image.tag | default "0.11.3-beta" }}
|
image: {{ .Values.core.image.repository | default "sengokucola/maibot" }}:{{ .Values.core.image.tag | default "0.11.5-beta" }}
|
||||||
imagePullPolicy: {{ .Values.core.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.core.image.pullPolicy }}
|
||||||
name: setup-plugins
|
name: setup-plugins
|
||||||
resources: { }
|
resources: { }
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
containers:
|
containers:
|
||||||
- name: adapter-cm-generator
|
- name: adapter-cm-generator
|
||||||
image: {{ .Values.adapter.cm_generator.image.repository | default "reg.mikumikumi.xyz/maibot/adapter-cm-generator" }}:{{ .Values.adapter.cm_generator.image.tag | default "0.11.3-beta" }}
|
image: {{ .Values.adapter.cm_generator.image.repository | default "reg.mikumikumi.xyz/maibot/adapter-cm-generator" }}:{{ .Values.adapter.cm_generator.image.tag | default "0.11.5-beta" }}
|
||||||
workingDir: /app
|
workingDir: /app
|
||||||
env:
|
env:
|
||||||
- name: PYTHONUNBUFFERED
|
- name: PYTHONUNBUFFERED
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ spec:
|
||||||
value: "{{ .Values.napcat.permission.uid }}"
|
value: "{{ .Values.napcat.permission.uid }}"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: Asia/Shanghai
|
value: Asia/Shanghai
|
||||||
image: {{ .Values.napcat.image.repository | default "mlikiowa/napcat-docker" }}:{{ .Values.napcat.image.tag | default "v4.9.72" }}
|
image: {{ .Values.napcat.image.repository | default "mlikiowa/napcat-docker" }}:{{ .Values.napcat.image.tag | default "v4.9.73" }}
|
||||||
imagePullPolicy: {{ .Values.napcat.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.napcat.image.pullPolicy }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ adapter:
|
||||||
cm_generator:
|
cm_generator:
|
||||||
image:
|
image:
|
||||||
repository: # 默认 reg.mikumikumi.xyz/maibot/adapter-cm-generator
|
repository: # 默认 reg.mikumikumi.xyz/maibot/adapter-cm-generator
|
||||||
tag: # 默认 0.11.3-beta
|
tag: # 默认 0.11.5-beta
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
pullSecrets: [ ]
|
pullSecrets: [ ]
|
||||||
|
|
||||||
|
|
@ -48,7 +48,7 @@ core:
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: # 默认 sengokucola/maibot
|
repository: # 默认 sengokucola/maibot
|
||||||
tag: # 默认 0.11.3-beta
|
tag: # 默认 0.11.5-beta
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
pullSecrets: [ ]
|
pullSecrets: [ ]
|
||||||
|
|
||||||
|
|
@ -65,6 +65,20 @@ core:
|
||||||
|
|
||||||
setup_default_plugins: true # 启用一个初始化容器,用于为用户自动安装默认插件到存储卷中
|
setup_default_plugins: true # 启用一个初始化容器,用于为用户自动安装默认插件到存储卷中
|
||||||
|
|
||||||
|
webui: # WebUI相关配置
|
||||||
|
enabled: true # 默认启用
|
||||||
|
service:
|
||||||
|
type: ClusterIP # ClusterIP / NodePort 指定NodePort可以将内网的服务端口映射到物理节点的端口
|
||||||
|
port: 8001 # 服务端口
|
||||||
|
nodePort: # 仅在设置NodePort类型时有效,不指定则会随机分配端口
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
className: nginx
|
||||||
|
annotations: { }
|
||||||
|
host: maim.example.com # 访问麦麦WebUI的域名
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
# 麦麦的运行统计看板配置
|
# 麦麦的运行统计看板配置
|
||||||
# 麦麦每隔一段时间会自动输出html格式的运行统计报告,此统计报告可以作为静态网页访问
|
# 麦麦每隔一段时间会自动输出html格式的运行统计报告,此统计报告可以作为静态网页访问
|
||||||
# 此功能默认禁用。如果你认为报告可以被公开访问(报告包含联系人/群组名称、模型token花费信息等),则可以启用此功能
|
# 此功能默认禁用。如果你认为报告可以被公开访问(报告包含联系人/群组名称、模型token花费信息等),则可以启用此功能
|
||||||
|
|
@ -117,7 +131,7 @@ napcat:
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: # 默认 mlikiowa/napcat-docker
|
repository: # 默认 mlikiowa/napcat-docker
|
||||||
tag: # 默认 v4.9.72
|
tag: # 默认 v4.9.73
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
pullSecrets: [ ]
|
pullSecrets: [ ]
|
||||||
|
|
||||||
|
|
@ -388,7 +402,7 @@ config:
|
||||||
# core的bot_config.toml
|
# core的bot_config.toml
|
||||||
core_bot_config: |
|
core_bot_config: |
|
||||||
[inner]
|
[inner]
|
||||||
version = "6.21.6"
|
version = "6.21.8"
|
||||||
|
|
||||||
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
|
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
|
||||||
#如果你想要修改配置文件,请递增version的值
|
#如果你想要修改配置文件,请递增version的值
|
||||||
|
|
@ -600,6 +614,9 @@ config:
|
||||||
show_replyer_prompt = false # 是否显示回复器prompt
|
show_replyer_prompt = false # 是否显示回复器prompt
|
||||||
show_replyer_reasoning = false # 是否显示回复器推理
|
show_replyer_reasoning = false # 是否显示回复器推理
|
||||||
show_jargon_prompt = false # 是否显示jargon相关提示词
|
show_jargon_prompt = false # 是否显示jargon相关提示词
|
||||||
|
show_memory_prompt = false # 是否显示记忆检索相关提示词
|
||||||
|
show_planner_prompt = false # 是否显示planner的prompt和原始返回结果
|
||||||
|
show_lpmm_paragraph = false # 是否显示lpmm找到的相关文段日志
|
||||||
|
|
||||||
[maim_message]
|
[maim_message]
|
||||||
auth_token = [] # 认证令牌,用于API验证,为空则不启用验证
|
auth_token = [] # 认证令牌,用于API验证,为空则不启用验证
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue