编写statistics-dashboard的清单模板
This commit is contained in:
23
helm-chart/templates/statistics-ingress.yaml
Normal file
23
helm-chart/templates/statistics-ingress.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- if .Values.statistics_dashboard.enabled and .Values.statistics_dashboard.ingress.enabled }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-maibot-statistics-dashboard
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations: {{ .Values.statistics_dashboard.ingress.annotations }}
|
||||
labels:
|
||||
app: {{ .Release.Name }}-maibot-statistics-dashboard
|
||||
spec:
|
||||
ingressClassName: {{ .Values.statistics_dashboard.ingress.className }}
|
||||
rules:
|
||||
- host: {{ .Values.statistics_dashboard.ingress.host }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: {{ .Release.Name }}-maibot-statistics-dashboard
|
||||
port:
|
||||
number: {{ .Values.statistics_dashboard.service.port }}
|
||||
path: {{ .Values.statistics_dashboard.ingress.path }}
|
||||
pathType: {{ .Values.statistics_dashboard.ingress.pathType }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user