https://pulumi.com logo
#general
Title
# general
b

best-hydrogen-40271

10/22/2019, 10:20 PM
Copy code
const primary = new GkeCluster("Primary", {});
const primaryStandardNodes = new gcp.container.NodePool(
    "primary-standard-nodes",
    {
        cluster: primary.cluster.name,
        nodeConfig: {
            machineType: "n1-standard-1",
            metadata: {
                "disable-legacy-endpoints": "true"
            },
            oauthScopes: [
                "<https://www.googleapis.com/auth/logging.write>",
                "<https://www.googleapis.com/auth/monitoring>"
            ],
            preemptible: false
        },
        nodeCount: 1
    }
);