2019-09-26 09:55:12 +00:00
|
|
|
{{- if semverCompare "<=1.13" .Capabilities.KubeVersion.GitVersion -}}
|
2019-08-21 09:28:02 +00:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: {{ include "ceph-csi-cephfs.provisioner.fullname" . }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
app: csi-metrics
|
|
|
|
chart: {{ include "ceph-csi-cephfs.chart" . }}
|
|
|
|
component: {{ .Values.provisioner.name }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
heritage: {{ .Release.Service }}
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: {{ include "ceph-csi-cephfs.name" . }}
|
|
|
|
component: {{ .Values.provisioner.name }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
ports:
|
|
|
|
- name: http-metrics
|
|
|
|
port: 8080
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 8081
|
|
|
|
- name: grpc-metrics
|
|
|
|
port: 8090
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 8091
|
2019-09-26 09:55:12 +00:00
|
|
|
{{- end -}}
|