Add workbench2, and make it the default.
[arvados-k8s.git] / charts / arvados / templates / ws-deployment.yaml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 apiVersion: apps/v1
6 kind: Deployment
7 metadata:
8   name: "arvados-ws"
9   labels:
10     app: arvados-ws
11     chart: {{ template "arvados.chart" . }}
12     release: {{ .Release.Name }}
13     heritage: {{ .Release.Service }}
14 spec:
15   selector:
16     matchLabels:
17       app: arvados-ws
18       release: {{ .Release.Name }}
19   template:
20     metadata:
21       labels:
22         app: arvados-ws
23         release: {{ .Release.Name }}
24     spec:
25       containers:
26         - name: arvados-ws
27           image: "cure/arvados-rails-runtime"
28           imagePullPolicy: {{ .Values.image.pullPolicy }}
29           command:
30             - "sh"
31             - "-c"
32             - "/usr/local/bin/bootstrap.sh arvados-ws={{ .Values.arvados.versions.distribution.arvadosWs }} && arvados-ws"
33           volumeMounts:
34             - name: etc-configmap
35               mountPath: /etc/arvados/config.yml
36               subPath: config.yml
37         - name: arvados-ws-https
38           image: "nginx:1.17"
39           imagePullPolicy: {{ .Values.image.pullPolicy }}
40           volumeMounts:
41             - name: nginx-configmap
42               mountPath: /etc/nginx/conf.d/default.conf
43               subPath: nginx.conf
44             - name: ssl-configmap
45               mountPath: /etc/nginx/ssl.crt
46               subPath: cert
47             - name: ssl-configmap
48               mountPath: /etc/nginx/ssl.key
49               subPath: key
50       volumes:
51         - name: etc-configmap
52           configMap:
53             name: etc-configmap
54         - name: ssl-configmap
55           configMap:
56             name: ssl-configmap
57         - name: nginx-configmap
58           configMap:
59             name: arvados-ws-https-configmap