getKubernetesVersion

This data source provides the details of the Kubernetes version supported by ACK.

NOTE: Available in 1.170.0+.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
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 default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
.clusterType("ManagedKubernetes")
.kubernetesVersion("1.22.3-aliyun.1")
.profile("Default")
.build());
ctx.export("metadata", default_.metadatas());
}
}

Return

A collection of values returned by getKubernetesVersion.

Parameters

argument

A collection of arguments for invoking getKubernetesVersion.


suspend fun getKubernetesVersion(clusterType: String, kubernetesVersion: String? = null, profile: String? = null): GetKubernetesVersionResult

Return

A collection of values returned by getKubernetesVersion.

See also

Parameters

clusterType

The type of cluster. Its valid value are Kubernetes and ManagedKubernetes.

kubernetesVersion

The ACK released kubernetes version.

profile

The profile of cluster. Its valid value are Default, Serverless and Edge.


Return

A collection of values returned by getKubernetesVersion.

See also

Parameters

argument

Builder for com.pulumi.alicloud.cs.kotlin.inputs.GetKubernetesVersionPlainArgs.