mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-24 07:10:20 +00:00
e5904485a3
Signed-off-by: wilmardo <info@wilmardenouden.nl>
(cherry picked from commit afda225d75
)
28 lines
745 B
YAML
28 lines
745 B
YAML
{{- if semverCompare "<=1.13" .Capabilities.KubeVersion.GitVersion -}}
|
|
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
|
|
{{- end -}}
|