46 lines
913 B
YAML
46 lines
913 B
YAML
# Copyright 2021 Nutanix Inc
|
|
#
|
|
# example usage: kubectl create -f <this_file>
|
|
#
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: nutanix-csi-metrics
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: nutanix-csi-metrics
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: nutanix-csi-controller
|
|
ports:
|
|
- name: provisioner
|
|
port: 9809
|
|
targetPort: 9809
|
|
protocol: TCP
|
|
- name: resizer
|
|
port: 9810
|
|
targetPort: 9810
|
|
protocol: TCP
|
|
{{- if eq .Values.servicemonitor.enabled true }}
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
{{- with .Values.servicemonitor.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: nutanix-csi-driver
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
endpoints:
|
|
- interval: 30s
|
|
port: provisioner
|
|
- interval: 30s
|
|
port: resizer
|
|
selector:
|
|
matchLabels:
|
|
app: nutanix-csi-metrics
|
|
{{- end }} |