update: 更新helm chart到0.11.5-beta,新增webui的service和ingress资源模板
This commit is contained in:
@@ -7,6 +7,10 @@ data:
|
||||
.env: |
|
||||
HOST=0.0.0.0
|
||||
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: |
|
||||
{{ .Values.config.core_model_config | nindent 4 }}
|
||||
bot_config.toml: |
|
||||
|
||||
26
helm-chart/templates/core/ingress.yaml
Normal file
26
helm-chart/templates/core/ingress.yaml
Normal file
@@ -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
|
||||
protocol: TCP
|
||||
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:
|
||||
app: {{ .Release.Name }}-maibot-core
|
||||
type: ClusterIP
|
||||
|
||||
@@ -29,12 +29,17 @@ spec:
|
||||
value: 99f08e0cab0190de853cb6af7d64d4de
|
||||
- name: PRIVACY_AGREE
|
||||
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 }}
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
name: adapter-ws
|
||||
protocol: TCP
|
||||
{{- if .Values.core.webui.enabled }}
|
||||
- containerPort: 8001
|
||||
name: webui
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- if .Values.core.resources }}
|
||||
resources:
|
||||
{{ toYaml .Values.core.resources | nindent 12 }}
|
||||
@@ -69,7 +74,7 @@ spec:
|
||||
command:
|
||||
- python3
|
||||
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 }}
|
||||
name: setup-plugins
|
||||
resources: { }
|
||||
|
||||
Reference in New Issue
Block a user