sunguroku 2 роки тому
батько
коміт
7139832387

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

@@ -941,6 +941,126 @@ const SUPPORTED_GCP_MACHINE_TYPES: ClientMachineType[] = [
     cpuCores: 44,
     ramMegabytes: 90112,
   },
+  {
+    name: "c3d-highcpu-4",
+    displayName: "c3d-highcpu-4",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 4,
+    ramMegabytes: 8000,
+  },
+  {
+    name: "c3d-highcpu-8",
+    displayName: "c3d-highcpu-8",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 8,
+    ramMegabytes: 16000,
+  },
+  {
+    name: "c3d-highcpu-16",
+    displayName: "c3d-highcpu-16",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 16,
+    ramMegabytes: 32000,
+  },
+  {
+    name: "c3d-highcpu-60",
+    displayName: "c3d-highcpu-60",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 60,
+    ramMegabytes: 118000,
+  },
+  {
+    name: "c3d-highcpu-90",
+    displayName: "c3d-highcpu-90",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 90,
+    ramMegabytes: 177000,
+  },
+  {
+    name: "c3d-highcpu-180",
+    displayName: "c3d-highcpu-180",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 180,
+    ramMegabytes: 354000,
+  },
+  {
+    name: "c3d-highcpu-360",
+    displayName: "c3d-highcpu-360",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 360,
+    ramMegabytes: 708000,
+  },
+  {
+    name: "c3d-standard-4",
+    displayName: "c3d-standard-4",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 4,
+    ramMegabytes: 16000,
+  },
+  {
+    name: "c3d-standard-8",
+    displayName: "c3d-standard-8",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 8,
+    ramMegabytes: 32000,
+  },
+  {
+    name: "c3d-standard-16",
+    displayName: "c3d-standard-16",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 16,
+    ramMegabytes: 64000,
+  },
+  {
+    name: "c3d-standard-30",
+    displayName: "c3d-standard-30",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 30,
+    ramMegabytes: 120000,
+  },
+  {
+    name: "c3d-standard-60",
+    displayName: "c3d-standard-60",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 60,
+    ramMegabytes: 240000,
+  },
+  {
+    name: "c3d-standard-90",
+    displayName: "c3d-standard-90",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 90,
+    ramMegabytes: 360000,
+  },
+  {
+    name: "c3d-standard-180",
+    displayName: "c3d-standard-180",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 180,
+    ramMegabytes: 720000,
+  },
+  {
+    name: "c3d-standard-360",
+    displayName: "c3d-standard-360",
+    supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
+    isGPU: false,
+    cpuCores: 360,
+    ramMegabytes: 1440000,
+  },
   {
     name: "c3-highmem-4",
     displayName: "c3-highmem-4",

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

@@ -227,6 +227,22 @@ const gcpMachineTypeValidator = z.enum([
   "c3-highmem-8",
   "c3-highmem-22",
   "c3-highmem-44",
+  "c3d-highcpu-4",
+  "c3d-highcpu-8",
+  "c3d-highcpu-16",
+  "c3d-highcpu-30",
+  "c3d-highcpu-60",
+  "c3d-highcpu-90",
+  "c3d-highcpu-180",
+  "c3d-highcpu-360",
+  "c3d-standard-4",
+  "c3d-standard-8",
+  "c3d-standard-16",
+  "c3d-standard-30",
+  "c3d-standard-60",
+  "c3d-standard-90",
+  "c3d-standard-180",
+  "c3d-standard-360",
   "n1-standard-1",
   "n1-standard-2",
   "n1-standard-4",