2021-01-17 01:09:41 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ include "bitwarden.fullname" . }}
|
|
|
|
labels:
|
2021-01-18 16:38:16 +00:00
|
|
|
{{- include "bitwarden.labels" . | nindent 4 }}
|
|
|
|
{{- with .Values.service.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2021-01-17 01:09:41 +00:00
|
|
|
spec:
|
|
|
|
type: {{ .Values.service.type }}
|
|
|
|
ports:
|
|
|
|
- port: {{ .Values.service.port }}
|
|
|
|
targetPort: http
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
2021-01-18 16:38:16 +00:00
|
|
|
{{- if .Values.bitwarden.websockets.enabled }}
|
|
|
|
- port: {{ .Values.bitwarden.websockets.port }}
|
|
|
|
targetPort: websocket
|
|
|
|
protocol: TCP
|
|
|
|
name: websocket
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.service.additionalSpec }}
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
2021-01-17 01:09:41 +00:00
|
|
|
selector:
|
2021-01-18 16:38:16 +00:00
|
|
|
{{- include "bitwarden.selectorLabels" . | nindent 4 }}
|