Where to find UseIpAliases in Pulumi SDK v4?
TypeScriptThe
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 theipAllocationPolicy
property while declaring a GKE cluster withgcp.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. WhencreateSubnetwork
is set totrue
, a new subnetwork will be created for the cluster.For more details, you can refer to the pulumi documentation here.