2019-05-04 03:45:54 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2020-07-29 23:36:29 +00:00
|
|
|
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:
|
2020-07-29 23:36:29 +00:00
|
|
|
type: {{.Values.service.type}}
|
2022-10-04 19:26:09 +00:00
|
|
|
{{- if eq .Values.service.type "LoadBalancer" }}
|
|
|
|
loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }}
|
|
|
|
{{- end }}
|
2019-05-04 03:45:54 +00:00
|
|
|
ports:
|
2020-09-20 00:32:36 +00:00
|
|
|
- port: {{ default "80" .Values.service.port}}
|
2020-06-28 23:55:16 +00:00
|
|
|
targetPort: http
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
2020-09-20 00:32:36 +00:00
|
|
|
- port: {{ default "443" .Values.service.httpsPort}}
|
2020-07-29 23:36:29 +00:00
|
|
|
targetPort: http
|
|
|
|
protocol: TCP
|
|
|
|
name: https
|
|
|
|
selector: {{- include "wiki.selectorLabels" . | nindent 4}}
|