talos.cluster.Kubeconfig
Explore with Pulumi AI
Retrieves the kubeconfig for a Talos cluster
Create Kubeconfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Kubeconfig(name: string, args: KubeconfigArgs, opts?: CustomResourceOptions);
@overload
def Kubeconfig(resource_name: str,
args: KubeconfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Kubeconfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_configuration: Optional[KubeconfigClientConfigurationArgs] = None,
node: Optional[str] = None,
certificate_renewal_duration: Optional[str] = None,
endpoint: Optional[str] = None,
timeouts: Optional[KubeconfigTimeoutsArgs] = None)
func NewKubeconfig(ctx *Context, name string, args KubeconfigArgs, opts ...ResourceOption) (*Kubeconfig, error)
public Kubeconfig(string name, KubeconfigArgs args, CustomResourceOptions? opts = null)
public Kubeconfig(String name, KubeconfigArgs args)
public Kubeconfig(String name, KubeconfigArgs args, CustomResourceOptions options)
type: talos:cluster:Kubeconfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args KubeconfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args KubeconfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KubeconfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubeconfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubeconfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var kubeconfigResource = new Talos.Cluster.Kubeconfig("kubeconfigResource", new()
{
ClientConfiguration = new Talos.Cluster.Inputs.KubeconfigClientConfigurationArgs
{
CaCertificate = "string",
ClientCertificate = "string",
ClientKey = "string",
},
Node = "string",
CertificateRenewalDuration = "string",
Endpoint = "string",
Timeouts = new Talos.Cluster.Inputs.KubeconfigTimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := cluster.NewKubeconfig(ctx, "kubeconfigResource", &cluster.KubeconfigArgs{
ClientConfiguration: &cluster.KubeconfigClientConfigurationArgs{
CaCertificate: pulumi.String("string"),
ClientCertificate: pulumi.String("string"),
ClientKey: pulumi.String("string"),
},
Node: pulumi.String("string"),
CertificateRenewalDuration: pulumi.String("string"),
Endpoint: pulumi.String("string"),
Timeouts: &cluster.KubeconfigTimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var kubeconfigResource = new Kubeconfig("kubeconfigResource", KubeconfigArgs.builder()
.clientConfiguration(KubeconfigClientConfigurationArgs.builder()
.caCertificate("string")
.clientCertificate("string")
.clientKey("string")
.build())
.node("string")
.certificateRenewalDuration("string")
.endpoint("string")
.timeouts(KubeconfigTimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
kubeconfig_resource = talos.cluster.Kubeconfig("kubeconfigResource",
client_configuration={
"ca_certificate": "string",
"client_certificate": "string",
"client_key": "string",
},
node="string",
certificate_renewal_duration="string",
endpoint="string",
timeouts={
"create": "string",
"update": "string",
})
const kubeconfigResource = new talos.cluster.Kubeconfig("kubeconfigResource", {
clientConfiguration: {
caCertificate: "string",
clientCertificate: "string",
clientKey: "string",
},
node: "string",
certificateRenewalDuration: "string",
endpoint: "string",
timeouts: {
create: "string",
update: "string",
},
});
type: talos:cluster:Kubeconfig
properties:
certificateRenewalDuration: string
clientConfiguration:
caCertificate: string
clientCertificate: string
clientKey: string
endpoint: string
node: string
timeouts:
create: string
update: string
Kubeconfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Kubeconfig resource accepts the following input properties:
- Client
Configuration Pulumiverse.Talos. Cluster. Inputs. Kubeconfig Client Configuration - The client configuration data
- Node string
- controlplane node to retrieve the kubeconfig from
- Certificate
Renewal stringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- Endpoint string
- endpoint to use for the talosclient. If not set, the node value will be used
- Timeouts
Pulumiverse.
Talos. Cluster. Inputs. Kubeconfig Timeouts
- Client
Configuration KubeconfigClient Configuration Args - The client configuration data
- Node string
- controlplane node to retrieve the kubeconfig from
- Certificate
Renewal stringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- Endpoint string
- endpoint to use for the talosclient. If not set, the node value will be used
- Timeouts
Kubeconfig
Timeouts Args
- client
Configuration KubeconfigClient Configuration - The client configuration data
- node String
- controlplane node to retrieve the kubeconfig from
- certificate
Renewal StringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- endpoint String
- endpoint to use for the talosclient. If not set, the node value will be used
- timeouts
Kubeconfig
Timeouts
- client
Configuration KubeconfigClient Configuration - The client configuration data
- node string
- controlplane node to retrieve the kubeconfig from
- certificate
Renewal stringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- endpoint string
- endpoint to use for the talosclient. If not set, the node value will be used
- timeouts
Kubeconfig
Timeouts
- client_
configuration KubeconfigClient Configuration Args - The client configuration data
- node str
- controlplane node to retrieve the kubeconfig from
- certificate_
renewal_ strduration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- endpoint str
- endpoint to use for the talosclient. If not set, the node value will be used
- timeouts
Kubeconfig
Timeouts Args
- client
Configuration Property Map - The client configuration data
- node String
- controlplane node to retrieve the kubeconfig from
- certificate
Renewal StringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- endpoint String
- endpoint to use for the talosclient. If not set, the node value will be used
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Kubeconfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig
Raw string - The raw kubeconfig
- Kubernetes
Client Pulumiverse.Configuration Talos. Cluster. Outputs. Kubeconfig Kubernetes Client Configuration - The kubernetes client configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig
Raw string - The raw kubeconfig
- Kubernetes
Client KubeconfigConfiguration Kubernetes Client Configuration - The kubernetes client configuration
- id String
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Raw String - The raw kubeconfig
- kubernetes
Client KubeconfigConfiguration Kubernetes Client Configuration - The kubernetes client configuration
- id string
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Raw string - The raw kubeconfig
- kubernetes
Client KubeconfigConfiguration Kubernetes Client Configuration - The kubernetes client configuration
- id str
- The provider-assigned unique ID for this managed resource.
- kubeconfig_
raw str - The raw kubeconfig
- kubernetes_
client_ Kubeconfigconfiguration Kubernetes Client Configuration - The kubernetes client configuration
- id String
- The provider-assigned unique ID for this managed resource.
- kubeconfig
Raw String - The raw kubeconfig
- kubernetes
Client Property MapConfiguration - The kubernetes client configuration
Look up Existing Kubeconfig Resource
Get an existing Kubeconfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: KubeconfigState, opts?: CustomResourceOptions): Kubeconfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_renewal_duration: Optional[str] = None,
client_configuration: Optional[KubeconfigClientConfigurationArgs] = None,
endpoint: Optional[str] = None,
kubeconfig_raw: Optional[str] = None,
kubernetes_client_configuration: Optional[KubeconfigKubernetesClientConfigurationArgs] = None,
node: Optional[str] = None,
timeouts: Optional[KubeconfigTimeoutsArgs] = None) -> Kubeconfig
func GetKubeconfig(ctx *Context, name string, id IDInput, state *KubeconfigState, opts ...ResourceOption) (*Kubeconfig, error)
public static Kubeconfig Get(string name, Input<string> id, KubeconfigState? state, CustomResourceOptions? opts = null)
public static Kubeconfig get(String name, Output<String> id, KubeconfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Certificate
Renewal stringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- Client
Configuration Pulumiverse.Talos. Cluster. Inputs. Kubeconfig Client Configuration - The client configuration data
- Endpoint string
- endpoint to use for the talosclient. If not set, the node value will be used
- Kubeconfig
Raw string - The raw kubeconfig
- Kubernetes
Client Pulumiverse.Configuration Talos. Cluster. Inputs. Kubeconfig Kubernetes Client Configuration - The kubernetes client configuration
- Node string
- controlplane node to retrieve the kubeconfig from
- Timeouts
Pulumiverse.
Talos. Cluster. Inputs. Kubeconfig Timeouts
- Certificate
Renewal stringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- Client
Configuration KubeconfigClient Configuration Args - The client configuration data
- Endpoint string
- endpoint to use for the talosclient. If not set, the node value will be used
- Kubeconfig
Raw string - The raw kubeconfig
- Kubernetes
Client KubeconfigConfiguration Kubernetes Client Configuration Args - The kubernetes client configuration
- Node string
- controlplane node to retrieve the kubeconfig from
- Timeouts
Kubeconfig
Timeouts Args
- certificate
Renewal StringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- client
Configuration KubeconfigClient Configuration - The client configuration data
- endpoint String
- endpoint to use for the talosclient. If not set, the node value will be used
- kubeconfig
Raw String - The raw kubeconfig
- kubernetes
Client KubeconfigConfiguration Kubernetes Client Configuration - The kubernetes client configuration
- node String
- controlplane node to retrieve the kubeconfig from
- timeouts
Kubeconfig
Timeouts
- certificate
Renewal stringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- client
Configuration KubeconfigClient Configuration - The client configuration data
- endpoint string
- endpoint to use for the talosclient. If not set, the node value will be used
- kubeconfig
Raw string - The raw kubeconfig
- kubernetes
Client KubeconfigConfiguration Kubernetes Client Configuration - The kubernetes client configuration
- node string
- controlplane node to retrieve the kubeconfig from
- timeouts
Kubeconfig
Timeouts
- certificate_
renewal_ strduration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- client_
configuration KubeconfigClient Configuration Args - The client configuration data
- endpoint str
- endpoint to use for the talosclient. If not set, the node value will be used
- kubeconfig_
raw str - The raw kubeconfig
- kubernetes_
client_ Kubeconfigconfiguration Kubernetes Client Configuration Args - The kubernetes client configuration
- node str
- controlplane node to retrieve the kubeconfig from
- timeouts
Kubeconfig
Timeouts Args
- certificate
Renewal StringDuration - The duration in hours before the certificate is renewed, defaults to 720h. Must be a valid duration string
- client
Configuration Property Map - The client configuration data
- endpoint String
- endpoint to use for the talosclient. If not set, the node value will be used
- kubeconfig
Raw String - The raw kubeconfig
- kubernetes
Client Property MapConfiguration - The kubernetes client configuration
- node String
- controlplane node to retrieve the kubeconfig from
- timeouts Property Map
Supporting Types
KubeconfigClientConfiguration, KubeconfigClientConfigurationArgs
- Ca
Certificate string - The client CA certificate
- Client
Certificate string - The client certificate
- Client
Key string - The client key
- Ca
Certificate string - The client CA certificate
- Client
Certificate string - The client certificate
- Client
Key string - The client key
- ca
Certificate String - The client CA certificate
- client
Certificate String - The client certificate
- client
Key String - The client key
- ca
Certificate string - The client CA certificate
- client
Certificate string - The client certificate
- client
Key string - The client key
- ca_
certificate str - The client CA certificate
- client_
certificate str - The client certificate
- client_
key str - The client key
- ca
Certificate String - The client CA certificate
- client
Certificate String - The client certificate
- client
Key String - The client key
KubeconfigKubernetesClientConfiguration, KubeconfigKubernetesClientConfigurationArgs
- Ca
Certificate string - The kubernetes CA certificate
- Client
Certificate string - The kubernetes client certificate
- Client
Key string - The kubernetes client key
- Host string
- The kubernetes host
- Ca
Certificate string - The kubernetes CA certificate
- Client
Certificate string - The kubernetes client certificate
- Client
Key string - The kubernetes client key
- Host string
- The kubernetes host
- ca
Certificate String - The kubernetes CA certificate
- client
Certificate String - The kubernetes client certificate
- client
Key String - The kubernetes client key
- host String
- The kubernetes host
- ca
Certificate string - The kubernetes CA certificate
- client
Certificate string - The kubernetes client certificate
- client
Key string - The kubernetes client key
- host string
- The kubernetes host
- ca_
certificate str - The kubernetes CA certificate
- client_
certificate str - The kubernetes client certificate
- client_
key str - The kubernetes client key
- host str
- The kubernetes host
- ca
Certificate String - The kubernetes CA certificate
- client
Certificate String - The kubernetes client certificate
- client
Key String - The kubernetes client key
- host String
- The kubernetes host
KubeconfigTimeouts, KubeconfigTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Package Details
- Repository
- talos pulumiverse/pulumi-talos
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
talos
Terraform Provider.