freeleaps-ops/freeleaps-secret-operator/helm-pkg/secret-operator/templates/service.yaml
zhenyus c42f249e9f feat(helm): add helm package codes for secret operator
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-18 11:24:07 +08:00

18 lines
490 B
YAML

{{- if .Values.metrics.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "freeleaps-secret-operator.fullname" . }}-metrics
labels:
{{- include "freeleaps-secret-operator.labels" . | nindent 4 }}
spec:
type: {{ .Values.metrics.service.type }}
ports:
- port: {{ .Values.metrics.service.port }}
targetPort: metrics
protocol: TCP
name: metrics
selector:
{{- include "freeleaps-secret-operator.selectorLabels" . | nindent 4 }}
{{- end }}