b4df56d5f68ab1e16e2467bc9a13f02b1643e981
[arvados-k8s.git] / 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/v1beta2
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   replicas: 1
16   selector:
17     matchLabels:
18       app: arvados-shell-server
19       release: {{ .Release.Name }}
20   template:
21     metadata:
22       labels:
23         app: arvados-shell-server
24         release: {{ .Release.Name }}
25     spec:
26       containers:
27         - name: arvados-shell-server
28           image: "cure/arvados-shell-server-runtime"
29           imagePullPolicy: {{ .Values.image.pullPolicy }}
30           command:
31             - "sh"
32             - "-c"
33             # TODO: the apt-get update should be run in the Dockerfile
34             - "apt-get update && /usr/local/bin/bootstrap.sh python-arvados-python-client=1.1.3.20180404223512* gem:arvados-cli=1.1.4.20180412190507 gem:arvados-login-sync=1.1.4.20180412190507 crunchrunner=1.1.3.20180403215323* python-arvados-fuse=1.1.3.20180404223512* && install /init-scripts-staging/* /etc/my_init.d && /sbin/my_init"
35           env:
36             - name: RAILS_ENV
37               value: "production"
38             - name: ARVADOS_API_HOST
39               value: "8.8.8.8:444"
40             - name : ARVADOS_API_HOST_INSECURE
41               value: "true"
42             - name : ARVADOS_API_TOKEN
43               value: "thisisnotaverygoodsuperusersecretstring00000000000"
44           volumeMounts:
45             - name: shell-server-configmap
46               mountPath: /init-scripts-staging/99-init-keep.sh
47               subPath: 99-init-keep.sh
48             - name: shell-server-configmap
49               mountPath: /init-scripts-staging/99-trust-cert.sh
50               subPath: 99-trust-cert.sh
51             - name: ssl-configmap
52               mountPath: /self-signed-cert.pem
53               subPath: cert
54             - mountPath: /var/run/docker.sock
55               name: docker
56       volumes:
57         - name: shell-server-configmap
58           configMap:
59             name: arvados-shell-server-configmap
60         - name: ssl-configmap
61           configMap:
62             name: ssl-configmap
63         - name: docker
64           hostPath:
65             path: /var/run/docker.sock