6a916e5de1900de9898a0d2e06b7f1ac301eed4b
[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: ws-configmap
35               mountPath: /etc/arvados/ws/ws.yml
36               subPath: ws.yml
37       volumes:
38         - name: ws-configmap
39           configMap:
40             name: arvados-ws-configmap