mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
|
{{- if .Values.nodeplugin.grpcMetrics.service.enabled -}}
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
{{- if .Values.nodeplugin.grpcMetrics.service.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.nodeplugin.grpcMetrics.service.annotations | indent 4 }}
|
||
|
{{- end }}
|
||
|
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}-grpc-metrics
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
app: {{ include "ceph-csi-rbd.fullname" . }}
|
||
|
chart: {{ include "ceph-csi-rbd.chart" . }}
|
||
|
component: {{ .Values.nodeplugin.name }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
spec:
|
||
|
{{- if .Values.nodeplugin.grpcMetrics.service.clusterIP }}
|
||
|
clusterIP: "{{ .Values.nodeplugin.grpcMetrics.service.clusterIP }}"
|
||
|
{{- end }}
|
||
|
{{- if .Values.nodeplugin.grpcMetrics.service.externalIPs }}
|
||
|
externalIPs:
|
||
|
{{ toYaml .Values.nodeplugin.grpcMetrics.service.externalIPs | indent 4 }}
|
||
|
{{- end }}
|
||
|
{{- if .Values.nodeplugin.grpcMetrics.service.loadBalancerIP }}
|
||
|
loadBalancerIP: "{{ .Values.nodeplugin.grpcMetrics.service.loadBalancerIP }}"
|
||
|
{{- end }}
|
||
|
{{- if .Values.nodeplugin.grpcMetrics.service.loadBalancerSourceRanges }}
|
||
|
loadBalancerSourceRanges:
|
||
|
{{ toYaml .Values.nodeplugin.grpcMetrics.service.loadBalancerSourceRanges | indent 4 }}
|
||
|
{{- end }}
|
||
|
ports:
|
||
|
- name: grpc-metrics
|
||
|
port: {{ .Values.nodeplugin.grpcMetrics.service.servicePort }}
|
||
|
targetPort: {{ .Values.nodeplugin.grpcMetrics.containerPort }}
|
||
|
selector:
|
||
|
app: {{ include "ceph-csi-rbd.name" . }}
|
||
|
component: {{ .Values.nodeplugin.name }}
|
||
|
release: {{ .Release.Name }}
|
||
|
type: "{{ .Values.nodeplugin.grpcMetrics.service.type }}"
|
||
|
{{- end -}}
|