[extensions-web] openshift: mount persistent volumes for Software job.



commit a9b96334d29d2133efe6b9c1d39bf41e8bb103a5
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sat Dec 15 10:14:16 2018 +0400

    openshift: mount persistent volumes for Software job.

 openshift/templates/extensions-web-nginx.json | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/openshift/templates/extensions-web-nginx.json b/openshift/templates/extensions-web-nginx.json
index e7f0e41..4c675a8 100644
--- a/openshift/templates/extensions-web-nginx.json
+++ b/openshift/templates/extensions-web-nginx.json
@@ -466,11 +466,31 @@
           "spec": {
             "template": {
               "spec": {
+                "volumes": [
+                  {
+                    "name": "data-volume",
+                    "persistentVolumeClaim": {
+                      "claimName": "extensions-claim"
+                    }
+                  }
+                ],
                 "containers": [
                   {
                     "name": "update-software",
                     "image": "${NAME}:latest",
-                    "command": ["/extensions-web/app/bin/sweettooth-cron-software"]
+                    "command": ["/extensions-web/app/bin/sweettooth-cron-software"],
+                    "volumeMounts": [
+                      {
+                        "name": "data-volume",
+                        "mountPath": "/extensions-web/www",
+                        "subPath": "www"
+                      },
+                      {
+                        "mountPath": "/extensions-web/data",
+                        "name": "data-volume",
+                        "subPath": "data"
+                      }
+                    ]
                   }
                 ],
                 "restartPolicy": "Never"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]