core服务的DNS名称是动态的,无法在adapter服务的配置文件中提前确定,因此在部署helm chart时动态生成adapter的配置文件

This commit is contained in:
zhangxinhui02
2025-08-20 02:32:03 +08:00
parent df3ebc07ee
commit 50140354cf
9 changed files with 151 additions and 23 deletions

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-maibot-scripts
namespace: {{ .Release.Namespace }}
data:
# pre-install hook
adapter-pip-installer.sh: |
{{ .Files.Get "files/adapter-pip-installer.sh" | nindent 4 }}
adapter-cm-generator.py: |
{{ .Files.Get "files/adapter-cm-generator.py" | nindent 4 }}
# core
volume-linker.sh: |
{{ .Files.Get "files/volume-linker.sh" | nindent 4 }}