1. Where to find UseIpAliases in Pulumi SDK v4?

    TypeScript

    The UseIpAliases property is typically found in Google Kubernetes Engine (GKE) configurations in Google Cloud Provider. However, this property doesn't directly exist in Pulumi SDK v4. The IP aliasing feature can be controlled in Pulumi via the ipAllocationPolicy property while declaring a GKE cluster with gcp.container.Cluster.

    A corresponding property in Pulumi TypeScript might look like this:

    import * as gcp from "@pulumi/gcp"; const cluster = new gcp.container.Cluster("cluster", { initialNodeCount: 2, ipAllocationPolicy: { createSubnetwork: true }, // Enables IP aliasing network: "default", nodeVersion: "1.16.15-gke.6000", nodeConfig: { machineType: "n1-standard-1", }, });

    In the above code, the ipAllocationPolicy property is used to enable IP aliasing for the GKE cluster. When createSubnetwork is set to true, a new subnetwork will be created for the cluster.

    For more details, you can refer to the pulumi documentation here.