编写statistics-dashboard的清单模板
This commit is contained in:
21
helm-chart/templates/statistics-service.yaml
Normal file
21
helm-chart/templates/statistics-service.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user