Mohammed Naser 2a095fac7c Added functional tests
Change-Id: I9a07147e1bc2c79b4ff5773bf5c2d4a44cfc694a
2020-03-29 15:57:10 -04:00

19 lines
516 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "smokeping.fullname" . }}
labels:
{{- include "smokeping.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: metrics
protocol: TCP
name: http
{{ if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{.Values.service.nodePort}}
{{ end }}
selector:
{{- include "smokeping.selectorLabels" . | nindent 4 }}