Mohammed Naser 7ae39f46ec Added Helm chart with linting
Change-Id: Ib2244866fdbbf5a1d0590352a5867506aedec191
2020-03-28 21:37:06 -04:00

19 lines
513 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: http
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 }}