import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Import * * using ID * * ```sh * $ pulumi import civo:index/kubernetesCluster:KubernetesCluster my-cluster 1b8b2100-0e9f-4e8f-ad78-9eb578c2a0af * ``` */ export declare class KubernetesCluster extends pulumi.CustomResource { /** * Get an existing KubernetesCluster 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?: KubernetesClusterState, opts?: pulumi.CustomResourceOptions): KubernetesCluster; /** * Returns true if the given object is an instance of KubernetesCluster. 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 KubernetesCluster; /** * (String) The API server endpoint of the cluster */ readonly apiEndpoint: pulumi.Output; /** * Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side * of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo * kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. * For application that supports plans, you can use 'app_name:app_plan' format e.g. 'Linkerd:Linkerd & Jaeger' or * 'MariaDB:5GB'. */ readonly applications: pulumi.Output; /** * The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s` */ readonly clusterType: pulumi.Output; /** * The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel` */ readonly cni: pulumi.Output; /** * (String) The timestamp when the cluster was created */ readonly createdAt: pulumi.Output; /** * (String) The DNS name of the cluster */ readonly dnsEntry: pulumi.Output; /** * The existing firewall ID to use for this cluster */ readonly firewallId: pulumi.Output; /** * (List of Object) (see below for nested schema) */ readonly installedApplications: pulumi.Output; /** * (String, Sensitive) The kubeconfig of the cluster */ readonly kubeconfig: pulumi.Output; /** * The version of k3s to install (optional, the default is currently the latest stable available) */ readonly kubernetesVersion: pulumi.Output; /** * (String) The IP address of the master node */ readonly masterIp: pulumi.Output; /** * Name for your cluster, must be unique within your account */ readonly name: pulumi.Output; /** * The network for the cluster, if not declare we use the default one */ readonly networkId: pulumi.Output; /** * The number of instances to create (optional, the default at the time of writing is 3) * * @deprecated This field will be deprecated in the next major release, please use the 'pools' field instead */ readonly numTargetNodes: pulumi.Output; readonly pools: pulumi.Output; /** * (Boolean) When cluster is ready, this will return `true` */ readonly ready: pulumi.Output; /** * The region for the cluster, if not declare we use the region in declared in the provider */ readonly region: pulumi.Output; /** * (String) Status of the cluster */ readonly status: pulumi.Output; /** * Space separated list of tags, to be used freely as required */ readonly tags: pulumi.Output; /** * The size of each node (optional, the default is currently g4s.kube.medium) * * @deprecated This field will be deprecated in the next major release, please use the 'pools' field instead */ readonly targetNodesSize: pulumi.Output; /** * Whether to write the kubeconfig to state */ readonly writeKubeconfig: pulumi.Output; /** * Create a KubernetesCluster 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: KubernetesClusterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering KubernetesCluster resources. */ export interface KubernetesClusterState { /** * (String) The API server endpoint of the cluster */ apiEndpoint?: pulumi.Input; /** * Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side * of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo * kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. * For application that supports plans, you can use 'app_name:app_plan' format e.g. 'Linkerd:Linkerd & Jaeger' or * 'MariaDB:5GB'. */ applications?: pulumi.Input; /** * The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s` */ clusterType?: pulumi.Input; /** * The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel` */ cni?: pulumi.Input; /** * (String) The timestamp when the cluster was created */ createdAt?: pulumi.Input; /** * (String) The DNS name of the cluster */ dnsEntry?: pulumi.Input; /** * The existing firewall ID to use for this cluster */ firewallId?: pulumi.Input; /** * (List of Object) (see below for nested schema) */ installedApplications?: pulumi.Input[]>; /** * (String, Sensitive) The kubeconfig of the cluster */ kubeconfig?: pulumi.Input; /** * The version of k3s to install (optional, the default is currently the latest stable available) */ kubernetesVersion?: pulumi.Input; /** * (String) The IP address of the master node */ masterIp?: pulumi.Input; /** * Name for your cluster, must be unique within your account */ name?: pulumi.Input; /** * The network for the cluster, if not declare we use the default one */ networkId?: pulumi.Input; /** * The number of instances to create (optional, the default at the time of writing is 3) * * @deprecated This field will be deprecated in the next major release, please use the 'pools' field instead */ numTargetNodes?: pulumi.Input; pools?: pulumi.Input; /** * (Boolean) When cluster is ready, this will return `true` */ ready?: pulumi.Input; /** * The region for the cluster, if not declare we use the region in declared in the provider */ region?: pulumi.Input; /** * (String) Status of the cluster */ status?: pulumi.Input; /** * Space separated list of tags, to be used freely as required */ tags?: pulumi.Input; /** * The size of each node (optional, the default is currently g4s.kube.medium) * * @deprecated This field will be deprecated in the next major release, please use the 'pools' field instead */ targetNodesSize?: pulumi.Input; /** * Whether to write the kubeconfig to state */ writeKubeconfig?: pulumi.Input; } /** * The set of arguments for constructing a KubernetesCluster resource. */ export interface KubernetesClusterArgs { /** * Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side * of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo * kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. * For application that supports plans, you can use 'app_name:app_plan' format e.g. 'Linkerd:Linkerd & Jaeger' or * 'MariaDB:5GB'. */ applications?: pulumi.Input; /** * The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s` */ clusterType?: pulumi.Input; /** * The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel` */ cni?: pulumi.Input; /** * The existing firewall ID to use for this cluster */ firewallId: pulumi.Input; /** * The version of k3s to install (optional, the default is currently the latest stable available) */ kubernetesVersion?: pulumi.Input; /** * Name for your cluster, must be unique within your account */ name?: pulumi.Input; /** * The network for the cluster, if not declare we use the default one */ networkId?: pulumi.Input; /** * The number of instances to create (optional, the default at the time of writing is 3) * * @deprecated This field will be deprecated in the next major release, please use the 'pools' field instead */ numTargetNodes?: pulumi.Input; pools: pulumi.Input; /** * The region for the cluster, if not declare we use the region in declared in the provider */ region?: pulumi.Input; /** * Space separated list of tags, to be used freely as required */ tags?: pulumi.Input; /** * The size of each node (optional, the default is currently g4s.kube.medium) * * @deprecated This field will be deprecated in the next major release, please use the 'pools' field instead */ targetNodesSize?: pulumi.Input; /** * Whether to write the kubeconfig to state */ writeKubeconfig?: pulumi.Input; }