编写napcat的清单模板

This commit is contained in:
zhangxinhui02
2025-08-20 00:29:06 +08:00
parent a72fc3b9f4
commit 7f719fd3b7
4 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{{- if .Values.napcat.enabled and .Values.napcat.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-maibot-napcat
namespace: {{ .Release.Namespace }}
annotations: {{ .Values.napcat.ingress.annotations }}
labels:
app: {{ .Release.Name }}-maibot-napcat
spec:
ingressClassName: {{ .Values.napcat.ingress.className }}
rules:
- host: {{ .Values.napcat.ingress.host }}
http:
paths:
- backend:
service:
name: {{ .Release.Name }}-maibot-napcat
port:
number: {{ .Values.napcat.service.port }}
path: {{ .Values.napcat.ingress.path }}
pathType: {{ .Values.napcat.ingress.pathType }}
{{- end }}