* support Minikube
[arvados-k8s.git] / charts / arvados / templates / keep-web-deployment.yaml
index 1f2eb050d1139fa93141f00abbadf5d87f0e9f53..6dd1cf9bb54209dbbcefaef036030d330bd69854 100644 (file)
@@ -29,7 +29,7 @@ spec:
           command:
             - "sh"
             - "-c"
-            - "/usr/local/bin/bootstrap.sh keep-web={{ .Values.arvados.versions.distribution.keepWeb }} && keep-web -listen=:9002 -trust-all-content"
+            - "/usr/local/bin/bootstrap.sh mime-support keep-web={{ .Values.arvados.versions.distribution.keepWeb }} && keep-web"
           env:
             - name : ARVADOS_API_HOST
               value: "{{ .Values.externalIP }}:444"
@@ -37,3 +37,30 @@ spec:
               value: "true"
             - name : ARVADOS_API_TOKEN
               value: "{{ .Values.anonymousUserSecret }}"
+          volumeMounts:
+            - name: etc-configmap
+              mountPath: /etc/arvados/config.yml
+              subPath: config.yml
+        - name: arvados-keep-web-https
+          image: "nginx:1.17"
+          imagePullPolicy: {{ .Values.image.pullPolicy }}
+          volumeMounts:
+            - name: nginx-configmap
+              mountPath: /etc/nginx/conf.d/default.conf
+              subPath: nginx.conf
+            - name: ssl-configmap
+              mountPath: /etc/nginx/ssl.crt
+              subPath: cert
+            - name: ssl-configmap
+              mountPath: /etc/nginx/ssl.key
+              subPath: key
+      volumes:
+        - name: etc-configmap
+          configMap:
+            name: etc-configmap
+        - name: ssl-configmap
+          configMap:
+            name: ssl-configmap
+        - name: nginx-configmap
+          configMap:
+            name: arvados-keep-web-https-configmap