blob: abc874a1621dd27f33f0752b68fbe2837aa54feb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
apiVersion: v1
kind: Service
metadata:
name: {{ include "prom-kafka-writer.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }}
helm.sh/chart: {{ include "prom-kafka-writer.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
{{- if ( and (eq .Values.service.type "NodePort" ) (not (empty .Values.service.nodePort)) ) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app: {{ include "prom-kafka-writer.name" . }}
|