convert postgres to statefulset for persistence - credit ward@curii.com
[arvados-k8s.git] / charts / arvados / templates / keep-proxy-deployment.yaml
index c25292fbba6c61dedfb4622cc8a5f0fdeb5573eb..11e473003838e2dafb0a9ffdcd9415c26f4cb3de 100644 (file)
@@ -12,7 +12,6 @@ metadata:
     release: {{ .Release.Name }}
     heritage: {{ .Release.Service }}
 spec:
-  replicas: 1
   selector:
     matchLabels:
       app: arvados-keep-proxy
@@ -23,9 +22,8 @@ spec:
         app: arvados-keep-proxy
         release: {{ .Release.Name }}
     spec:
-      replicas: 1
       containers:
-        - name: arvados-keep-proxy
+        - name: keep-proxy
           image: "cure/arvados-runtime"
           imagePullPolicy: {{ .Values.image.pullPolicy }}
           command:
@@ -39,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: nginx
+          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-proxy-https-configmap