mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-30 08:50:20 +00:00
6ee381db3a
Signed-off-by: wilmardo <info@wilmardenouden.nl>
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
{{- if .Values.provisioner.grpcMetrics.service.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
{{- if .Values.provisioner.grpcMetrics.service.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.provisioner.grpcMetrics.service.annotations | indent 4 }}
|
|
{{- end }}
|
|
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}-grpc-metrics
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: {{ include "ceph-csi-cephfs.fullname" . }}
|
|
chart: {{ include "ceph-csi-cephfs.chart" . }}
|
|
component: {{ .Values.provisioner.name }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
{{- if .Values.provisioner.grpcMetrics.service.clusterIP }}
|
|
clusterIP: "{{ .Values.provisioner.grpcMetrics.service.clusterIP }}"
|
|
{{- end }}
|
|
{{- if .Values.provisioner.grpcMetrics.service.externalIPs }}
|
|
externalIPs:
|
|
{{ toYaml .Values.provisioner.grpcMetrics.service.externalIPs | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.provisioner.grpcMetrics.service.loadBalancerIP }}
|
|
loadBalancerIP: "{{ .Values.provisioner.grpcMetrics.service.loadBalancerIP }}"
|
|
{{- end }}
|
|
{{- if .Values.provisioner.grpcMetrics.service.loadBalancerSourceRanges }}
|
|
loadBalancerSourceRanges:
|
|
{{ toYaml .Values.provisioner.grpcMetrics.service.loadBalancerSourceRanges | indent 4 }}
|
|
{{- end }}
|
|
ports:
|
|
- name: grpc-metrics
|
|
port: {{ .Values.provisioner.grpcMetrics.service.servicePort }}
|
|
targetPort: {{ .Values.provisioner.grpcMetrics.containerPort }}
|
|
selector:
|
|
app: {{ include "ceph-csi-cephfs.name" . }}
|
|
component: {{ .Values.provisioner.name }}
|
|
release: {{ .Release.Name }}
|
|
type: "{{ .Values.provisioner.grpcMetrics.service.type }}"
|
|
{{- end -}}
|