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}}
|
2019-05-04 03:45:54 +00:00
|
|
|
ports:
|
2020-07-29 23:36:29 +00:00
|
|
|
- port: {{.Values.service.port}}
|
2020-06-28 23:55:16 +00:00
|
|
|
targetPort: http
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
2020-07-29 23:36:29 +00:00
|
|
|
- port: {{.Values.service.httpsPort}}
|
|
|
|
targetPort: http
|
|
|
|
protocol: TCP
|
|
|
|
name: https
|
|
|
|
selector: {{- include "wiki.selectorLabels" . | nindent 4}}
|