wikijs-fork/dev/helm/templates/service.yaml

27 lines
758 B
YAML
Raw Normal View History

2019-05-04 03:45:54 +00:00
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 }}
2019-05-04 03:45:54 +00:00
spec:
type: {{.Values.service.type}}
{{- if eq .Values.service.type "LoadBalancer" }}
loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }}
{{- end }}
2019-05-04 03:45:54 +00:00
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}}