[extensions-web/wip/openshift] openshift: change volumes



commit 03ced8a3c9aac06ac9d375cd3fd35cd61f654e78
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Wed Dec 5 21:58:42 2018 +0400

    openshift: change volumes

 openshift/templates/extensions-web-nginx.json | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/openshift/templates/extensions-web-nginx.json b/openshift/templates/extensions-web-nginx.json
index d9950aa..e4290af 100644
--- a/openshift/templates/extensions-web-nginx.json
+++ b/openshift/templates/extensions-web-nginx.json
@@ -203,7 +203,7 @@
       "kind": "PersistentVolumeClaim",
       "apiVersion": "v1",
       "metadata": {
-        "name": "static"
+        "name": "extensions-claim"
       },
       "spec": {
         "accessModes": [
@@ -211,7 +211,7 @@
         ],
         "resources": {
           "requests": {
-            "storage": "1024Mi"
+            "storage": "3096Mi"
           }
         }
       }
@@ -262,9 +262,9 @@
           "spec": {
             "volumes": [
               {
-                "name": "static-www",
+                "name": "data-volume",
                 "persistentVolumeClaim": {
-                  "claimName": "static"
+                  "claimName": "extensions-claim"
                 }
               }
             ],
@@ -328,8 +328,14 @@
                 ],
                 "volumeMounts": [
                   {
-                    "name": "static-www",
-                    "mountPath": "/extensions-web/www"
+                    "name": "data-volume",
+                    "mountPath": "/extensions-web/www",
+                    "subPath": "www"
+                  },
+                  {
+                    "mountPath": "/extensions-web/data",
+                    "name": "data-volume",
+                    "subPath": "data"
                   }
                 ],
                 "resources": {
@@ -338,7 +344,6 @@
                   }
                 }
               },
-              
               {
                 "name": "frontend",
                 "image": " ",
@@ -367,8 +372,9 @@
                 },
                 "volumeMounts": [
                   {
-                    "name": "static-www",
-                    "mountPath": "/extensions-web/www"
+                    "name": "data-volume",
+                    "mountPath": "/extensions-web/www",
+                    "subPath": "www"
                   }
                 ],
                 "resources": {


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