update: 更新helm chart到0.11.5-beta,新增webui的service和ingress资源模板
This commit is contained in:
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 }}
|
||||
Reference in New Issue
Block a user