use patched helm chart k8s-at-home/bitwardenrs

This commit is contained in:
ace
2021-01-18 19:38:16 +03:00
parent c26c7c66b0
commit 2cde98435f
17 changed files with 705 additions and 175 deletions

View File

@@ -3,20 +3,26 @@ kind: Service
metadata:
name: {{ include "bitwarden.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "bitwarden.name" . }}
helm.sh/chart: {{ include "bitwarden.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- include "bitwarden.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
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 }}
selector:
app.kubernetes.io/name: {{ include "bitwarden.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- include "bitwarden.selectorLabels" . | nindent 4 }}