import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Virtual Node Pool resource in Oracle Cloud Infrastructure Container Engine service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/containerengine/latest/VirtualNodePool * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/container_engine * * Create a new virtual node pool. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVirtualNodePool = new oci.containerengine.VirtualNodePool("test_virtual_node_pool", { * clusterId: testCluster.id, * compartmentId: compartmentId, * displayName: virtualNodePoolDisplayName, * placementConfigurations: [{ * availabilityDomain: virtualNodePoolPlacementConfigurationsAvailabilityDomain, * faultDomains: virtualNodePoolPlacementConfigurationsFaultDomain, * subnetId: testSubnet.id, * }], * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * initialVirtualNodeLabels: [{ * key: virtualNodePoolInitialVirtualNodeLabelsKey, * value: virtualNodePoolInitialVirtualNodeLabelsValue, * }], * nsgIds: virtualNodePoolNsgIds, * podConfiguration: { * shape: virtualNodePoolPodConfigurationShape, * subnetId: testSubnet.id, * nsgIds: virtualNodePoolPodConfigurationNsgIds, * }, * size: Number(virtualNodePoolSize), * taints: [{ * effect: virtualNodePoolTaintsEffect, * key: virtualNodePoolTaintsKey, * value: virtualNodePoolTaintsValue, * }], * virtualNodePoolCyclingDetails: { * isVirtualNodeCyclingEnabled: virtualNodePoolVirtualNodePoolCyclingDetailsIsVirtualNodeCyclingEnabled === "true", * maximumSurge: virtualNodePoolVirtualNodePoolCyclingDetailsMaximumSurge, * maximumUnavailable: virtualNodePoolVirtualNodePoolCyclingDetailsMaximumUnavailable, * }, * virtualNodeTags: { * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * }, * }); * ``` * * ## Import * * VirtualNodePools can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ContainerEngine/virtualNodePool:VirtualNodePool test_virtual_node_pool "id" * ``` */ export declare class VirtualNodePool extends pulumi.CustomResource { /** * Get an existing VirtualNodePool resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: VirtualNodePoolState, opts?: pulumi.CustomResourceOptions): VirtualNodePool; /** * Returns true if the given object is an instance of VirtualNodePool. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is VirtualNodePool; /** * The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. */ readonly clusterId: pulumi.Output; /** * Compartment of the virtual node pool. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Display name of the virtual node pool. This is a non-unique value. */ readonly displayName: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Initial labels that will be added to the Kubernetes Virtual Node object when it registers. */ readonly initialVirtualNodeLabels: pulumi.Output; /** * The version of Kubernetes running on the nodes in the node pool. */ readonly kubernetesVersion: pulumi.Output; /** * Details about the state of the Virtual Node Pool. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) List of network security group id's applied to the Virtual Node VNIC. */ readonly nsgIds: pulumi.Output; /** * (Updatable) The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations */ readonly placementConfigurations: pulumi.Output; /** * (Updatable) The pod configuration for pods run on virtual nodes of this virtual node pool. */ readonly podConfiguration: pulumi.Output; /** * (Updatable) The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. */ readonly size: pulumi.Output; /** * The state of the Virtual Node Pool. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A taint is a collection of . These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. */ readonly taints: pulumi.Output; /** * The time the virtual node pool was created. */ readonly timeCreated: pulumi.Output; /** * The time the virtual node pool was updated. */ readonly timeUpdated: pulumi.Output; /** * (Updatable) Virtual Node Pool Cycling Details */ readonly virtualNodePoolCyclingDetails: pulumi.Output; /** * (Updatable) The tags associated to the virtual nodes in this virtual node pool. */ readonly virtualNodeTags: pulumi.Output; /** * Create a VirtualNodePool resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: VirtualNodePoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VirtualNodePool resources. */ export interface VirtualNodePoolState { /** * The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. */ clusterId?: pulumi.Input; /** * Compartment of the virtual node pool. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Display name of the virtual node pool. This is a non-unique value. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Initial labels that will be added to the Kubernetes Virtual Node object when it registers. */ initialVirtualNodeLabels?: pulumi.Input[] | undefined>; /** * The version of Kubernetes running on the nodes in the node pool. */ kubernetesVersion?: pulumi.Input; /** * Details about the state of the Virtual Node Pool. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) List of network security group id's applied to the Virtual Node VNIC. */ nsgIds?: pulumi.Input[] | undefined>; /** * (Updatable) The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations */ placementConfigurations?: pulumi.Input[] | undefined>; /** * (Updatable) The pod configuration for pods run on virtual nodes of this virtual node pool. */ podConfiguration?: pulumi.Input; /** * (Updatable) The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. */ size?: pulumi.Input; /** * The state of the Virtual Node Pool. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A taint is a collection of . These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. */ taints?: pulumi.Input[] | undefined>; /** * The time the virtual node pool was created. */ timeCreated?: pulumi.Input; /** * The time the virtual node pool was updated. */ timeUpdated?: pulumi.Input; /** * (Updatable) Virtual Node Pool Cycling Details */ virtualNodePoolCyclingDetails?: pulumi.Input; /** * (Updatable) The tags associated to the virtual nodes in this virtual node pool. */ virtualNodeTags?: pulumi.Input; } /** * The set of arguments for constructing a VirtualNodePool resource. */ export interface VirtualNodePoolArgs { /** * The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. */ clusterId: pulumi.Input; /** * Compartment of the virtual node pool. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Display name of the virtual node pool. This is a non-unique value. */ displayName: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Initial labels that will be added to the Kubernetes Virtual Node object when it registers. */ initialVirtualNodeLabels?: pulumi.Input[] | undefined>; /** * (Updatable) List of network security group id's applied to the Virtual Node VNIC. */ nsgIds?: pulumi.Input[] | undefined>; /** * (Updatable) The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations */ placementConfigurations: pulumi.Input[]>; /** * (Updatable) The pod configuration for pods run on virtual nodes of this virtual node pool. */ podConfiguration: pulumi.Input; /** * (Updatable) The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. */ size: pulumi.Input; /** * (Updatable) A taint is a collection of . These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. */ taints?: pulumi.Input[] | undefined>; /** * (Updatable) Virtual Node Pool Cycling Details */ virtualNodePoolCyclingDetails?: pulumi.Input; /** * (Updatable) The tags associated to the virtual nodes in this virtual node pool. */ virtualNodeTags?: pulumi.Input; } //# sourceMappingURL=virtualNodePool.d.ts.map