mirror of https://git.rancher.io/charts
28 lines
766 B
YAML
28 lines
766 B
YAML
{{- if .Values.kubeEtcd.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "kube-prometheus-stack.fullname" . }}-kube-etcd
|
|
labels:
|
|
app: {{ template "kube-prometheus-stack.name" . }}-kube-etcd
|
|
jobLabel: kube-etcd
|
|
{{ include "kube-prometheus-stack.labels" . | indent 4 }}
|
|
namespace: kube-system
|
|
spec:
|
|
clusterIP: None
|
|
ports:
|
|
- name: http-metrics
|
|
port: {{ .Values.kubeEtcd.service.port }}
|
|
protocol: TCP
|
|
targetPort: {{ .Values.kubeEtcd.service.targetPort }}
|
|
{{- if .Values.kubeEtcd.endpoints }}{{- else }}
|
|
selector:
|
|
{{- if .Values.kubeEtcd.service.selector }}
|
|
{{ toYaml .Values.kubeEtcd.service.selector | indent 4 }}
|
|
{{- else}}
|
|
component: etcd
|
|
{{- end}}
|
|
{{- end }}
|
|
type: ClusterIP
|
|
{{- end -}}
|