Ovh

v0.1.0 published on Friday, Nov 4, 2022 by lbrlabs

getKubeIpNodePool

Use this data source to get a OVHcloud Managed Kubernetes node pool.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var nodepool = Ovh.CloudProject.GetKubeIpNodePool.Invoke(new()
    {
        ServiceName = "XXXXXX",
        KubeId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
        Name = "xxxxxx",
    });

    return new Dictionary<string, object?>
    {
        ["maxNodes"] = nodepool.Apply(getKubeIpNodePoolResult => getKubeIpNodePoolResult.MaxNodes),
    };
});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh/CloudProject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		nodepool, err := CloudProject.GetKubeIpNodePool(ctx, &cloudproject.GetKubeIpNodePoolArgs{
			ServiceName: "XXXXXX",
			KubeId:      "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
			Name:        "xxxxxx",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("maxNodes", nodepool.MaxNodes)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetKubeIpNodePoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var nodepool = CloudProjectFunctions.getKubeIpNodePool(GetKubeIpNodePoolArgs.builder()
            .serviceName("XXXXXX")
            .kubeId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx")
            .name("xxxxxx")
            .build());

        ctx.export("maxNodes", nodepool.applyValue(getKubeIpNodePoolResult -> getKubeIpNodePoolResult.maxNodes()));
    }
}
import pulumi
import pulumi_ovh as ovh

nodepool = ovh.CloudProject.get_kube_ip_node_pool(service_name="XXXXXX",
    kube_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
    name="xxxxxx")
pulumi.export("maxNodes", nodepool.max_nodes)
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const nodepool = ovh.CloudProject.getKubeIpNodePool({
    serviceName: "XXXXXX",
    kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
    name: "xxxxxx",
});
export const maxNodes = nodepool.then(nodepool => nodepool.maxNodes);
variables:
  nodepool:
    fn::invoke:
      Function: ovh:CloudProject:getKubeIpNodePool
      Arguments:
        serviceName: XXXXXX
        kubeId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx
        name: xxxxxx
outputs:
  maxNodes: ${nodepool.maxNodes}

Using getKubeIpNodePool

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getKubeIpNodePool(args: GetKubeIpNodePoolArgs, opts?: InvokeOptions): Promise<GetKubeIpNodePoolResult>
function getKubeIpNodePoolOutput(args: GetKubeIpNodePoolOutputArgs, opts?: InvokeOptions): Output<GetKubeIpNodePoolResult>
def get_kube_ip_node_pool(kube_id: Optional[str] = None,
                          max_nodes: Optional[int] = None,
                          min_nodes: Optional[int] = None,
                          name: Optional[str] = None,
                          service_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetKubeIpNodePoolResult
def get_kube_ip_node_pool_output(kube_id: Optional[pulumi.Input[str]] = None,
                          max_nodes: Optional[pulumi.Input[int]] = None,
                          min_nodes: Optional[pulumi.Input[int]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          service_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetKubeIpNodePoolResult]
func GetKubeIpNodePool(ctx *Context, args *GetKubeIpNodePoolArgs, opts ...InvokeOption) (*GetKubeIpNodePoolResult, error)
func GetKubeIpNodePoolOutput(ctx *Context, args *GetKubeIpNodePoolOutputArgs, opts ...InvokeOption) GetKubeIpNodePoolResultOutput

> Note: This function is named GetKubeIpNodePool in the Go SDK.

public static class GetKubeIpNodePool 
{
    public static Task<GetKubeIpNodePoolResult> InvokeAsync(GetKubeIpNodePoolArgs args, InvokeOptions? opts = null)
    public static Output<GetKubeIpNodePoolResult> Invoke(GetKubeIpNodePoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKubeIpNodePoolResult> getKubeIpNodePool(GetKubeIpNodePoolArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: ovh:CloudProject/getKubeIpNodePool:getKubeIpNodePool
  arguments:
    # arguments dictionary

The following arguments are supported:

KubeId string

The id of the managed kubernetes cluster.

Name string

The name of the node pool.

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

MaxNodes int

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

MinNodes int

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

KubeId string

The id of the managed kubernetes cluster.

Name string

The name of the node pool.

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

MaxNodes int

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

MinNodes int

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

kubeId String

The id of the managed kubernetes cluster.

name String

The name of the node pool.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

maxNodes Integer

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

minNodes Integer

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

kubeId string

The id of the managed kubernetes cluster.

name string

The name of the node pool.

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

maxNodes number

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

minNodes number

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

kube_id str

The id of the managed kubernetes cluster.

name str

The name of the node pool.

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

max_nodes int

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

min_nodes int

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

kubeId String

The id of the managed kubernetes cluster.

name String

The name of the node pool.

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

maxNodes Number

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

minNodes Number

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

getKubeIpNodePool Result

The following output properties are available:

AntiAffinity bool

(Optional) should the pool use the anti-affinity feature. Default to false.

Autoscale bool

(Optional) Enable auto-scaling for the pool. Default to false.

AvailableNodes int

Number of nodes which are actually ready in the pool

CreatedAt string

Creation date

CurrentNodes int

Number of nodes present in the pool

DesiredNodes int

Number of nodes you desire in the pool

Flavor string

Flavor name

FlavorName string

a valid OVHcloud public cloud flavor ID in which the nodes will be started. Ex: "b2-7". Changing this value recreates the resource. You can find the list of flavor IDs: https://www.ovhcloud.com/fr/public-cloud/prices/

Id string

The provider-assigned unique ID for this managed resource.

KubeId string

See Argument Reference above.

MaxNodes int

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

MinNodes int

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

MonthlyBilled bool

(Optional) should the nodes be billed on a monthly basis. Default to false.

Name string

(Optional) The name of the nodepool. Changing this value recreates the resource. Warning: "_" char is not allowed!

ProjectId string

Project id

ServiceName string

See Argument Reference above.

SizeStatus string

Status describing the state between number of nodes wanted and available ones

Status string

Current status

UpToDateNodes int

Number of nodes with the latest version installed in the pool

UpdatedAt string

Last update date

AntiAffinity bool

(Optional) should the pool use the anti-affinity feature. Default to false.

Autoscale bool

(Optional) Enable auto-scaling for the pool. Default to false.

AvailableNodes int

Number of nodes which are actually ready in the pool

CreatedAt string

Creation date

CurrentNodes int

Number of nodes present in the pool

DesiredNodes int

Number of nodes you desire in the pool

Flavor string

Flavor name

FlavorName string

a valid OVHcloud public cloud flavor ID in which the nodes will be started. Ex: "b2-7". Changing this value recreates the resource. You can find the list of flavor IDs: https://www.ovhcloud.com/fr/public-cloud/prices/

Id string

The provider-assigned unique ID for this managed resource.

KubeId string

See Argument Reference above.

MaxNodes int

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

MinNodes int

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

MonthlyBilled bool

(Optional) should the nodes be billed on a monthly basis. Default to false.

Name string

(Optional) The name of the nodepool. Changing this value recreates the resource. Warning: "_" char is not allowed!

ProjectId string

Project id

ServiceName string

See Argument Reference above.

SizeStatus string

Status describing the state between number of nodes wanted and available ones

Status string

Current status

UpToDateNodes int

Number of nodes with the latest version installed in the pool

UpdatedAt string

Last update date

antiAffinity Boolean

(Optional) should the pool use the anti-affinity feature. Default to false.

autoscale Boolean

(Optional) Enable auto-scaling for the pool. Default to false.

availableNodes Integer

Number of nodes which are actually ready in the pool

createdAt String

Creation date

currentNodes Integer

Number of nodes present in the pool

desiredNodes Integer

Number of nodes you desire in the pool

flavor String

Flavor name

flavorName String

a valid OVHcloud public cloud flavor ID in which the nodes will be started. Ex: "b2-7". Changing this value recreates the resource. You can find the list of flavor IDs: https://www.ovhcloud.com/fr/public-cloud/prices/

id String

The provider-assigned unique ID for this managed resource.

kubeId String

See Argument Reference above.

maxNodes Integer

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

minNodes Integer

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

monthlyBilled Boolean

(Optional) should the nodes be billed on a monthly basis. Default to false.

name String

(Optional) The name of the nodepool. Changing this value recreates the resource. Warning: "_" char is not allowed!

projectId String

Project id

serviceName String

See Argument Reference above.

sizeStatus String

Status describing the state between number of nodes wanted and available ones

status String

Current status

upToDateNodes Integer

Number of nodes with the latest version installed in the pool

updatedAt String

Last update date

antiAffinity boolean

(Optional) should the pool use the anti-affinity feature. Default to false.

autoscale boolean

(Optional) Enable auto-scaling for the pool. Default to false.

availableNodes number

Number of nodes which are actually ready in the pool

createdAt string

Creation date

currentNodes number

Number of nodes present in the pool

desiredNodes number

Number of nodes you desire in the pool

flavor string

Flavor name

flavorName string

a valid OVHcloud public cloud flavor ID in which the nodes will be started. Ex: "b2-7". Changing this value recreates the resource. You can find the list of flavor IDs: https://www.ovhcloud.com/fr/public-cloud/prices/

id string

The provider-assigned unique ID for this managed resource.

kubeId string

See Argument Reference above.

maxNodes number

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

minNodes number

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

monthlyBilled boolean

(Optional) should the nodes be billed on a monthly basis. Default to false.

name string

(Optional) The name of the nodepool. Changing this value recreates the resource. Warning: "_" char is not allowed!

projectId string

Project id

serviceName string

See Argument Reference above.

sizeStatus string

Status describing the state between number of nodes wanted and available ones

status string

Current status

upToDateNodes number

Number of nodes with the latest version installed in the pool

updatedAt string

Last update date

anti_affinity bool

(Optional) should the pool use the anti-affinity feature. Default to false.

autoscale bool

(Optional) Enable auto-scaling for the pool. Default to false.

available_nodes int

Number of nodes which are actually ready in the pool

created_at str

Creation date

current_nodes int

Number of nodes present in the pool

desired_nodes int

Number of nodes you desire in the pool

flavor str

Flavor name

flavor_name str

a valid OVHcloud public cloud flavor ID in which the nodes will be started. Ex: "b2-7". Changing this value recreates the resource. You can find the list of flavor IDs: https://www.ovhcloud.com/fr/public-cloud/prices/

id str

The provider-assigned unique ID for this managed resource.

kube_id str

See Argument Reference above.

max_nodes int

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

min_nodes int

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

monthly_billed bool

(Optional) should the nodes be billed on a monthly basis. Default to false.

name str

(Optional) The name of the nodepool. Changing this value recreates the resource. Warning: "_" char is not allowed!

project_id str

Project id

service_name str

See Argument Reference above.

size_status str

Status describing the state between number of nodes wanted and available ones

status str

Current status

up_to_date_nodes int

Number of nodes with the latest version installed in the pool

updated_at str

Last update date

antiAffinity Boolean

(Optional) should the pool use the anti-affinity feature. Default to false.

autoscale Boolean

(Optional) Enable auto-scaling for the pool. Default to false.

availableNodes Number

Number of nodes which are actually ready in the pool

createdAt String

Creation date

currentNodes Number

Number of nodes present in the pool

desiredNodes Number

Number of nodes you desire in the pool

flavor String

Flavor name

flavorName String

a valid OVHcloud public cloud flavor ID in which the nodes will be started. Ex: "b2-7". Changing this value recreates the resource. You can find the list of flavor IDs: https://www.ovhcloud.com/fr/public-cloud/prices/

id String

The provider-assigned unique ID for this managed resource.

kubeId String

See Argument Reference above.

maxNodes Number

maximum number of nodes allowed in the pool. Setting desired_nodes over this value will raise an error.

minNodes Number

minimum number of nodes allowed in the pool. Setting desired_nodes under this value will raise an error.

monthlyBilled Boolean

(Optional) should the nodes be billed on a monthly basis. Default to false.

name String

(Optional) The name of the nodepool. Changing this value recreates the resource. Warning: "_" char is not allowed!

projectId String

Project id

serviceName String

See Argument Reference above.

sizeStatus String

Status describing the state between number of nodes wanted and available ones

status String

Current status

upToDateNodes Number

Number of nodes with the latest version installed in the pool

updatedAt String

Last update date

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.