Просмотр исходного кода

add e2-highmem instance (#4682)

Co-authored-by: Porter Support <93286801+portersupport@users.noreply.github.com>
d-g-town 2 лет назад
Родитель
Сommit
82b62cd033

+ 4 - 0
dashboard/src/components/GCPProvisionerSettings.tsx

@@ -64,6 +64,10 @@ const instanceTypes = [
   { value: "e2-standard-8", label: "e2-standard-8" },
   { value: "e2-standard-16", label: "e2-standard-16" },
   { value: "e2-standard-32", label: "e2-standard-32" },
+  { value: "e2-highmem-2", label: "e2-highmem-2" },
+  { value: "e2-highmem-4", label: "e2-highmem-4" },
+  { value: "e2-highmem-8", label: "e2-highmem-8" },
+  { value: "e2-highmem-16", label: "e2-highmem-16" },
   { value: "c3-standard-4", label: "c3-standard-4" },
   { value: "c3-standard-8", label: "c3-standard-8" },
   { value: "c3-standard-22", label: "c3-standard-22" },

+ 32 - 0
dashboard/src/lib/clusters/constants.ts

@@ -941,6 +941,38 @@ const SUPPORTED_GCP_MACHINE_TYPES: ClientMachineType[] = [
     cpuCores: 32,
     ramMegabytes: 131072,
   },
+  {
+    name: "e2-highmem-2",
+    displayName: "e2-highmem-2",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 2,
+    ramMegabytes: 16384,
+  },
+  {
+    name: "e2-highmem-4",
+    displayName: "e2-highmem-4",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 4,
+    ramMegabytes: 32768,
+  },
+  {
+    name: "e2-highmem-8",
+    displayName: "e2-highmem-8",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 8,
+    ramMegabytes: 65536,
+  },
+  {
+    name: "e2-highmem-16",
+    displayName: "e2-highmem-16",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 16,
+    ramMegabytes: 131072,
+  },
   {
     name: "c3-standard-4",
     displayName: "c3-standard-4",

+ 4 - 0
dashboard/src/lib/clusters/types.ts

@@ -223,6 +223,10 @@ const gcpMachineTypeValidator = z.enum([
   "e2-standard-8",
   "e2-standard-16",
   "e2-standard-32",
+  "e2-highmem-2",
+  "e2-highmem-4",
+  "e2-highmem-8",
+  "e2-highmem-16",
   "c3-standard-4",
   "c3-standard-8",
   "c3-standard-22",