9f70371d4e72a04943969063badaf95e70824314
[arvados-k8s.git] / charts / arvados / templates / shell-server-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-shell-server"
9   labels:
10     app: arvados-shell-server
11     chart: {{ template "arvados.chart" . }}
12     release: {{ .Release.Name }}
13     heritage: {{ .Release.Service }}
14 spec:
15   selector:
16     matchLabels:
17       app: arvados-shell-server
18       release: {{ .Release.Name }}
19   template:
20     metadata:
21       labels:
22         app: arvados-shell-server
23         release: {{ .Release.Name }}
24     spec:
25       containers:
26         - name: arvados-shell-server
27           image: "cure/arvados-shell-server-runtime"
28           imagePullPolicy: {{ .Values.image.pullPolicy }}
29           command:
30             - "sh"
31             - "-c"
32             - "/usr/local/bin/bootstrap.sh python-arvados-python-client={{ .Values.arvados.versions.distribution.pythonArvadosPythonClient }} gem:arvados-cli={{ .Values.arvados.versions.gem.arvadosCLI }} gem:arvados-login-sync={{ .Values.arvados.versions.gem.arvadosLoginSync }} crunchrunner={{ .Values.arvados.versions.distribution.crunchRunner }} python-arvados-fuse={{ .Values.arvados.versions.distribution.pythonArvadosFuse }} && install /init-scripts-staging/* /etc/my_init.d && /sbin/my_init"
33           env:
34             - name: RAILS_ENV
35               value: "production"
36             - name: ARVADOS_API_HOST
37               value: "{{ .Values.externalIP }}:444"
38             - name : ARVADOS_API_HOST_INSECURE
39               value: "true"
40             - name : ARVADOS_API_TOKEN
41               value: "{{ .Values.anonymousUserSecret }}"
42           volumeMounts:
43             - name: shell-server-configmap
44               mountPath: /init-scripts-staging/99-init-keep.sh
45               subPath: 99-init-keep.sh
46             - name: shell-server-configmap
47               mountPath: /init-scripts-staging/99-trust-cert.sh
48               subPath: 99-trust-cert.sh
49             - name: ssl-configmap
50               mountPath: /self-signed-cert.pem
51               subPath: cert
52             - mountPath: /var/run/docker.sock
53               name: docker
54       volumes:
55         - name: shell-server-configmap
56           configMap:
57             name: arvados-shell-server-configmap
58         - name: ssl-configmap
59           configMap:
60             name: ssl-configmap
61         - name: docker
62           hostPath:
63             path: /var/run/docker.sock