基于helm-dify 0.23.0 版本初始化
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{{- if .Values.pluginDaemon.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "dify.pluginDaemon.fullname" . }}
|
||||
labels:
|
||||
{{ include "dify.labels" . | indent 4 }}
|
||||
{{- if .Values.pluginDaemon.service.labels }}
|
||||
{{ toYaml .Values.pluginDaemon.service.labels | indent 4 }}
|
||||
{{- end }}
|
||||
component: "plugin-daemon"
|
||||
{{- with .Values.pluginDaemon.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
{{- if .Values.pluginDaemon.service.clusterIP }}
|
||||
clusterIP: {{ .Values.pluginDaemon.service.clusterIP }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http-daemon
|
||||
port: {{ .Values.pluginDaemon.service.ports.daemon }}
|
||||
protocol: TCP
|
||||
targetPort: daemon
|
||||
{{- if .Values.pluginDaemon.service.ports.pluginInstall }}
|
||||
- name: http-plugin-install
|
||||
port: {{ .Values.pluginDaemon.service.ports.pluginInstall }}
|
||||
protocol: TCP
|
||||
targetPort: plugin-install
|
||||
{{- end }}
|
||||
selector:
|
||||
{{ include "dify.selectorLabels" . | indent 4 }}
|
||||
component: "plugin-daemon"
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user