Dagger
Search

talos

Runs Talos Linux in containers that can be accessed both locally and in your pipelines

Installation

dagger install github.com/orvis98/daggerverse/talos@38e40960a35263aa84ae710263dcd216daf6903a

Entrypoint

Return Type
Talos !
Arguments
NameTypeDefault ValueDescription
nameString "talos"the desired cluster name
versionString "v1.8.3"the desired Talos version
controlplanesInteger 1the desired number of controlplane nodes
workersInteger 1the desired number of worker nodes
Example
dagger -m github.com/orvis98/daggerverse/talos@38e40960a35263aa84ae710263dcd216daf6903a call \
func (m *myModule) example() *Talos  {
	return dag.
			Talos()
}
@function
def example() -> dag.Talos:
	return (
		dag.talos()
	)
@func()
example(): Talos {
	return dag
		.talos()
}

Types

Talos 🔗

talosconfig() 🔗

the generated Talos client configuration file

Return Type
File !
Arguments
NameTypeDefault ValueDescription
endpointString "localhost"the endpoint to set in the configuration
nodeString "localhost"the node to set in the configuration
Example
dagger -m github.com/orvis98/daggerverse/talos@38e40960a35263aa84ae710263dcd216daf6903a call \
 talosconfig
func (m *myModule) example() *File  {
	return dag.
			Talos().
			Talosconfig()
}
@function
def example() -> dagger.File:
	return (
		dag.talos()
		.talosconfig()
	)
@func()
example(): File {
	return dag
		.talos()
		.talosconfig()
}

bootstrap() 🔗

bootstraps the etcd cluster and waits for first controlplane node to register

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
vipString "10.87.13.37"the desired cluster VIP
configPatch[String ! ] []patch generated machineconfigs (applied to all node types)
configPatchFile[File ! ] []patch generated machineconfigs (applied to all node types)
Example
dagger -m github.com/orvis98/daggerverse/talos@38e40960a35263aa84ae710263dcd216daf6903a call \
 bootstrap
func (m *myModule) example() *Container  {
	return dag.
			Talos().
			Bootstrap()
}
@function
def example() -> dagger.Container:
	return (
		dag.talos()
		.bootstrap()
	)
@func()
example(): Container {
	return dag
		.talos()
		.bootstrap()
}

proxy() 🔗

returns a proxy service for the Talos controlplane

Return Type
Service !
Example
dagger -m github.com/orvis98/daggerverse/talos@38e40960a35263aa84ae710263dcd216daf6903a call \
 proxy
func (m *myModule) example() *Service  {
	return dag.
			Talos().
			Proxy()
}
@function
def example() -> dagger.Service:
	return (
		dag.talos()
		.proxy()
	)
@func()
example(): Service {
	return dag
		.talos()
		.proxy()
}

kubeconfig() 🔗

returns the admin kubeconfig for the cluster

Return Type
File !
Arguments
NameTypeDefault ValueDescription
serverString "https://localhost:6443"the server to set in the configuration
Example
dagger -m github.com/orvis98/daggerverse/talos@38e40960a35263aa84ae710263dcd216daf6903a call \
 kubeconfig
func (m *myModule) example() *File  {
	return dag.
			Talos().
			Kubeconfig()
}
@function
def example() -> dagger.File:
	return (
		dag.talos()
		.kubeconfig()
	)
@func()
example(): File {
	return dag
		.talos()
		.kubeconfig()
}

container() 🔗

returns a container that can execute talosctl and kubectl commands

Return Type
Container !
Example
dagger -m github.com/orvis98/daggerverse/talos@38e40960a35263aa84ae710263dcd216daf6903a call \
 container
func (m *myModule) example() *Container  {
	return dag.
			Talos().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.talos()
		.container()
	)
@func()
example(): Container {
	return dag
		.talos()
		.container()
}