support annotations on loadbalancer services for metallb
[arvados-k8s.git] / charts / arvados / templates / workbench-service.yaml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 apiVersion: v1
6 kind: Service
7 metadata:
8   name: arvados-workbench
9   labels:
10     app: {{ template "arvados.name" . }}
11     chart: {{ template "arvados.chart" . }}
12     release: {{ .Release.Name }}
13     heritage: {{ .Release.Service }}
14   annotations:
15     {{- range $key, $value := .Values.loadBalancer.annotations }}
16       {{ $key }}: {{ $value | quote }}
17     {{- end }}
18 spec:
19   type: LoadBalancer
20   loadBalancerIP: {{ required "A valid externalIP is required!" .Values.externalIP }}
21   ports:
22   - name: wb2
23     port: 443
24     targetPort: 443
25     protocol: TCP
26   - name: wb
27     port: 445
28     targetPort: 445
29     protocol: TCP
30   selector:
31     app: arvados-workbench