core服务的DNS名称是动态的,无法在adapter服务的配置文件中提前确定,因此在部署helm chart时动态生成adapter的配置文件
This commit is contained in:
15
helm-chart/templates/scripts-configmap.yaml
Normal file
15
helm-chart/templates/scripts-configmap.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user