talos
Runs Talos Linux in containers that can be accessed both locally and in your pipelines
Installation
dagger install github.com/orvis98/daggerverse/talos@827080277099df2abafb6fabc685b53f1ea878dbEntrypoint
Return Type
Talos !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String | "talos" | the desired cluster name |
| version | String | "v1.8.3" | the desired Talos version |
| controlplanes | Integer | 1 | the desired number of controlplane nodes |
| workers | Integer | 1 | the desired number of worker nodes |
Example
dagger -m github.com/orvis98/daggerverse/talos@827080277099df2abafb6fabc685b53f1ea878db call \
func (m *MyModule) Example() *dagger.Talos {
return dag.
Talos()
}@function
def example() -> dagger.Talos:
return (
dag.talos()
)@func()
example(): Talos {
return dag
.talos()
}Types
Talos 🔗
talosconfig() 🔗
the generated Talos client configuration file
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| endpoint | String | "localhost" | the endpoint to set in the configuration |
| node | String | "localhost" | the node to set in the configuration |
Example
dagger -m github.com/orvis98/daggerverse/talos@827080277099df2abafb6fabc685b53f1ea878db call \
talosconfigfunc (m *MyModule) Example() *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| vip | String | "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@827080277099df2abafb6fabc685b53f1ea878db call \
bootstrapfunc (m *MyModule) Example() *dagger.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@827080277099df2abafb6fabc685b53f1ea878db call \
proxyfunc (m *MyModule) Example() *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| server | String | "https://localhost:6443" | the server to set in the configuration |
Example
dagger -m github.com/orvis98/daggerverse/talos@827080277099df2abafb6fabc685b53f1ea878db call \
kubeconfigfunc (m *MyModule) Example() *dagger.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@827080277099df2abafb6fabc685b53f1ea878db call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Talos().
Container()
}@function
def example() -> dagger.Container:
return (
dag.talos()
.container()
)@func()
example(): Container {
return dag
.talos()
.container()
}