helm: reorganize repository a bit.
[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/v1beta2
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   replicas: 1
16   selector:
17     matchLabels:
18       app: arvados-ws
19       release: {{ .Release.Name }}
20   template:
21     metadata:
22       labels:
23         app: arvados-ws
24         release: {{ .Release.Name }}
25     spec:
26       containers:
27         - name: arvados-ws
28           image: "cure/arvados-rails-runtime"
29           imagePullPolicy: {{ .Values.image.pullPolicy }}
30           command:
31             - "sh"
32             - "-c"
33             - "/usr/local/bin/bootstrap.sh arvados-ws={{ .Values.arvados.versions.distribution.arvadosWs }} && arvados-ws"
34           volumeMounts:
35             - name: ws-configmap
36               mountPath: /etc/arvados/ws/ws.yml
37               subPath: ws.yml
38       volumes:
39         - name: ws-configmap
40           configMap:
41             name: arvados-ws-configmap