wikijs-fork/dev/helm/templates/service.yaml
Jeffrey Forman de19d37953
fix: helm - image tag and imagePullPolicy to correctly inherit from values (#2472)
* fix image tag and imagePullPolicy to correcy inherit from values, with sane defaults (ifNotPresent and latest)

* fix default service ports for http and https in service.yaml

Co-authored-by: Jeffrey Forman <jforman@gmail.com>

***NO_CI***
2020-09-19 20:32:36 -04:00

24 lines
628 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{include "wiki.fullname" .}}
labels: {{- include "wiki.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
type: {{.Values.service.type}}
ports:
- port: {{ default "80" .Values.service.port}}
targetPort: http
protocol: TCP
name: http
- port: {{ default "443" .Values.service.httpsPort}}
targetPort: http
protocol: TCP
name: https
selector: {{- include "wiki.selectorLabels" . | nindent 4}}