service.yaml 661 Bytes
Newer Older
1
{{- if or .Values.service.create .Values.metrics.create }}
2
3
4
apiVersion: v1
kind: Service
metadata:
5
6
7
  {{- if .Values.service.name }}
  name: {{ .Values.service.name }}
  {{- else }}
8
  name: {{ template "kured.fullname" . }}
9
  {{- end }}
10
11
  labels:
    {{- include "kured.labels" . | nindent 4 }}
12
13
14
15
16
17
  {{- if .Values.service.annotations }}
  annotations:
  {{- range $key, $value := .Values.service.annotations }}
    {{ $key }}: {{ $value | quote }}
  {{- end }}
  {{- end }}
18
19
20
21
spec:
  type: ClusterIP
  ports:
    - name: metrics
22
23
      port: {{ .Values.service.port }}
      targetPort: 8080
24
  selector:
25
    {{- include "kured.matchLabels" . | nindent 4 }}
26
{{- end }}