sparse-intern-71089
03/11/2020, 1:23 PMbroad-dog-22463
03/11/2020, 1:25 PMbroad-dog-22463
03/11/2020, 1:26 PMthousands-london-78260
03/11/2020, 4:24 PMgoogleapi: Error 400: Can't parse NodePool version ""., badRequest where this is the function used to generate the nodePool config
function standardPool(machineType: string, initialNodeCount = 0) {
return {
upgradeSettings: {
maxSurge: 2,
maxUnavailable: 0,
},
name: machineType,
initialNodeCount,
autoscaling: {
minNodeCount: 0,
maxNodeCount: 10,
},
nodeConfig: {
machineType,
diskSizeGb: 30,
preemptible: false,
shieldedInstanceConfig: {
enableIntegrityMonitoring: true,
enableSecureBoot: true,
},
metadata: {
"disable-legacy-endpoints": "true",
},
oauthScopes: [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/trace.append",
],
//TODO: More secure config
// serviceAccount: serviceAccount.accountId,
// oauthScopes: ["https://www.googleapis.com/auth/cloud-platform"]
},
version: "",
management: {
autoRepair: true,
autoUpgrade: true,
},
} as gcp.types.input.container.ClusterNodePool;
}thousands-london-78260
03/11/2020, 4:24 PMthousands-london-78260
03/11/2020, 4:52 PMbroad-dog-22463
03/11/2020, 4:54 PMthousands-london-78260
03/11/2020, 4:56 PMthousands-london-78260
03/11/2020, 4:58 PMremoveDefaultNodePool: true, option to only have your custom node pools created after (which was the reason I created them for the cluster before).thousands-london-78260
03/11/2020, 5:01 PM