Files
openebs/charts/lvm-localpv/templates/lvm-node-service.yaml
2025-12-09 19:34:54 +11:00

19 lines
476 B
YAML

{{- if .Values.lvmPlugin.metricsPort }}
apiVersion: v1
kind: Service
metadata:
name: {{ template "lvmlocalpv.fullname" . }}-node-service
labels:
{{- include "lvmlocalpv.lvmNode.labels" . | nindent 4 }}
spec:
clusterIP: None
ports:
- name: metrics
port: {{ .Values.lvmPlugin.metricsPort }}
targetPort: {{ .Values.lvmPlugin.metricsPort }}
selector:
{{- with .Values.lvmNode.podLabels }}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- end }}