From 1273371610f86d4eab28d7a862e5d5635977a70a Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Sat, 9 Jan 2021 18:59:38 -0600
Subject: [PATCH] Switch GCP mapcache to local SSD

---
 ci_gcp/values-mapcache.yaml | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/ci_gcp/values-mapcache.yaml b/ci_gcp/values-mapcache.yaml
index 3b42048..092bd09 100644
--- a/ci_gcp/values-mapcache.yaml
+++ b/ci_gcp/values-mapcache.yaml
@@ -7,13 +7,13 @@ wms:
   host: "geosphere-mapserver"
 cache:
   persistence:
-    enabled: true
-    storageClass: "standard"
-    size: 2Ti
-    cleanup:
-      # every 6 hours
-      schedule: "0 */6 * * *"
-      age: "+2"
+    # false so we use emptyDir for local SSD storage
+    enabled: false
+#    storageClass: "standard"
+#    size: 2Ti
+#    cleanup:
+#      schedule: "0 */6 * * *"
+#      age: "+2"
 database:
   postgresHost: "geosphere-postgis-postgresql"
   postgresPort: 5432
@@ -31,3 +31,9 @@ ingress:
   hosts:
     - host: ""
       paths: ["/mapcache"]
+nodeSelector:
+  geosphere-node: cache
+  cloud.google.com/gke-ephemeral-storage-local-ssd: "true"
+resources:
+  requests:
+    ephemeral-storage: "1500Gi"
-- 
GitLab