helm-charts/bitwarden/templates/service.yaml

29 lines
737 B
YAML
Raw Normal View History

2021-01-17 01:09:41 +00:00
apiVersion: v1
kind: Service
metadata:
name: {{ include "bitwarden.fullname" . }}
labels:
{{- 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
{{- 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:
{{- include "bitwarden.selectorLabels" . | nindent 4 }}