helm: Convert the anonymous and superuser token to values in values.yaml
[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             - "/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"
34           env:
35             - name: RAILS_ENV
36               value: "production"
37             - name: ARVADOS_API_HOST
38               value: "{{ .Values.externalIP }}:444"
39             - name : ARVADOS_API_HOST_INSECURE
40               value: "true"
41             - name : ARVADOS_API_TOKEN
42               value: "{{ .Values.anonymousUserSecret }}"
43           volumeMounts:
44             - name: shell-server-configmap
45               mountPath: /init-scripts-staging/99-init-keep.sh
46               subPath: 99-init-keep.sh
47             - name: shell-server-configmap
48               mountPath: /init-scripts-staging/99-trust-cert.sh
49               subPath: 99-trust-cert.sh
50             - name: ssl-configmap
51               mountPath: /self-signed-cert.pem
52               subPath: cert
53             - mountPath: /var/run/docker.sock
54               name: docker
55       volumes:
56         - name: shell-server-configmap
57           configMap:
58             name: arvados-shell-server-configmap
59         - name: ssl-configmap
60           configMap:
61             name: ssl-configmap
62         - name: docker
63           hostPath:
64             path: /var/run/docker.sock