1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getKubernetesAddon
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getKubernetesAddon

Explore with Pulumi AI

Provides a kubernetes cluster addon datasource. This can be used to get information about an VKCS cluster addon.

New since v0.3.0.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";

const kubePrometheusStack = vkcs.getKubernetesAddon({
    clusterId: vkcs_kubernetes_cluster.k8s_cluster.id,
    name: "kube-prometheus-stack",
    version: "68.3.3",
});
Copy
import pulumi
import pulumi_vkcs as vkcs

kube_prometheus_stack = vkcs.get_kubernetes_addon(cluster_id=vkcs_kubernetes_cluster["k8s_cluster"]["id"],
    name="kube-prometheus-stack",
    version="68.3.3")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vkcs.LookupKubernetesAddon(ctx, &vkcs.LookupKubernetesAddonArgs{
			ClusterId: vkcs_kubernetes_cluster.K8s_cluster.Id,
			Name:      "kube-prometheus-stack",
			Version:   "68.3.3",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;

return await Deployment.RunAsync(() => 
{
    var kubePrometheusStack = Vkcs.GetKubernetesAddon.Invoke(new()
    {
        ClusterId = vkcs_kubernetes_cluster.K8s_cluster.Id,
        Name = "kube-prometheus-stack",
        Version = "68.3.3",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetKubernetesAddonArgs;
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 kubePrometheusStack = VkcsFunctions.getKubernetesAddon(GetKubernetesAddonArgs.builder()
            .clusterId(vkcs_kubernetes_cluster.k8s_cluster().id())
            .name("kube-prometheus-stack")
            .version("68.3.3")
            .build());

    }
}
Copy
variables:
  kubePrometheusStack:
    fn::invoke:
      function: vkcs:getKubernetesAddon
      arguments:
        clusterId: ${vkcs_kubernetes_cluster.k8s_cluster.id}
        name: kube-prometheus-stack
        version: 68.3.3
Copy

Using getKubernetesAddon

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 getKubernetesAddon(args: GetKubernetesAddonArgs, opts?: InvokeOptions): Promise<GetKubernetesAddonResult>
function getKubernetesAddonOutput(args: GetKubernetesAddonOutputArgs, opts?: InvokeOptions): Output<GetKubernetesAddonResult>
Copy
def get_kubernetes_addon(cluster_id: Optional[str] = None,
                         name: Optional[str] = None,
                         region: Optional[str] = None,
                         version: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetKubernetesAddonResult
def get_kubernetes_addon_output(cluster_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         region: Optional[pulumi.Input[str]] = None,
                         version: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesAddonResult]
Copy
func LookupKubernetesAddon(ctx *Context, args *LookupKubernetesAddonArgs, opts ...InvokeOption) (*LookupKubernetesAddonResult, error)
func LookupKubernetesAddonOutput(ctx *Context, args *LookupKubernetesAddonOutputArgs, opts ...InvokeOption) LookupKubernetesAddonResultOutput
Copy

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

public static class GetKubernetesAddon 
{
    public static Task<GetKubernetesAddonResult> InvokeAsync(GetKubernetesAddonArgs args, InvokeOptions? opts = null)
    public static Output<GetKubernetesAddonResult> Invoke(GetKubernetesAddonInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetKubernetesAddonResult> getKubernetesAddon(GetKubernetesAddonArgs args, InvokeOptions options)
public static Output<GetKubernetesAddonResult> getKubernetesAddon(GetKubernetesAddonArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vkcs:index/getKubernetesAddon:getKubernetesAddon
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
required string → The ID of the kubernetes cluster.
Name This property is required. string
required string → An addon name to filter by.
Version This property is required. string
required string → An addon version to filter by.
Region string
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
ClusterId This property is required. string
required string → The ID of the kubernetes cluster.
Name This property is required. string
required string → An addon name to filter by.
Version This property is required. string
required string → An addon version to filter by.
Region string
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
clusterId This property is required. String
required string → The ID of the kubernetes cluster.
name This property is required. String
required string → An addon name to filter by.
version This property is required. String
required string → An addon version to filter by.
region String
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
clusterId This property is required. string
required string → The ID of the kubernetes cluster.
name This property is required. string
required string → An addon name to filter by.
version This property is required. string
required string → An addon version to filter by.
region string
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
cluster_id This property is required. str
required string → The ID of the kubernetes cluster.
name This property is required. str
required string → An addon name to filter by.
version This property is required. str
required string → An addon version to filter by.
region str
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
clusterId This property is required. String
required string → The ID of the kubernetes cluster.
name This property is required. String
required string → An addon name to filter by.
version This property is required. String
required string → An addon version to filter by.
region String
optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.

getKubernetesAddon Result

The following output properties are available:

ClusterId string
ConfigurationValues string
string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
Id string
string → ID of the resource.
Installed bool
boolean → Whether the addon was installed in the cluster.
Name string
Region string
Version string
ClusterId string
ConfigurationValues string
string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
Id string
string → ID of the resource.
Installed bool
boolean → Whether the addon was installed in the cluster.
Name string
Region string
Version string
clusterId String
configurationValues String
string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
id String
string → ID of the resource.
installed Boolean
boolean → Whether the addon was installed in the cluster.
name String
region String
version String
clusterId string
configurationValues string
string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
id string
string → ID of the resource.
installed boolean
boolean → Whether the addon was installed in the cluster.
name string
region string
version string
cluster_id str
configuration_values str
string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
id str
string → ID of the resource.
installed bool
boolean → Whether the addon was installed in the cluster.
name str
region str
version str
clusterId String
configurationValues String
string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
id String
string → ID of the resource.
installed Boolean
boolean → Whether the addon was installed in the cluster.
name String
region String
version String

Package Details

Repository
vkcs vk-cs/terraform-provider-vkcs
License
Notes
This Pulumi package is based on the vkcs Terraform Provider.