编写statistics-dashboard的清单模板

This commit is contained in:
zhangxinhui02
2025-08-20 00:00:56 +08:00
parent 15e6bac7e4
commit 65f0515e80
4 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{{- if .Values.statistics_dashboard.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-maibot-statistics-dashboard
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Release.Name }}-maibot-statistics-dashboard
spec:
ports:
- name: dashboard
port: {{ .Values.statistics_dashboard.service.port }}
protocol: TCP
targetPort: 80
{{- if eq .Values.statistics_dashboard.service.type "nodePort" }}
nodePort: {{ .Values.statistics_dashboard.service.nodePort }}
{{- end }}
selector:
app: {{ .Release.Name }}-maibot-statistics-dashboard
type: {{ .Values.statistics_dashboard.service.type }}
{{- end }}