talemu

module
v1.8.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MPL-2.0

README

Talemu is Talos Emulator

Runs multiple fake Talos nodes at the same time. To be used in pair with Omni.

Running emulator

Do Copy Kernel Args in the Omni UI, then paste the to --kernel-args flag.

Create hack/compose/docker-compose.override.yml file with the kernel args params.

Final YAML file can look like this:

version: '3.8'
services:
  talemu:
    command: >-
      args:
        - --kernel-args="siderolink.api=grpc://192.168.88.219:8090?jointoken=w7uVuW3zbVKIYQuzEcyetAHeYMeo5q2L9RvkAVfCfSCD talos.events.sink=[fdae:41e4:649b:9303::1]:8090 talos.logging.kernel=tcp://[fdae:41e4:649b:9303::1]:8092"
        - --machines=100

Run make docker-compose-up command.

This will spawn one hundred fake Talos nodes.

Directories

Path Synopsis
api
cmd
talemu
Package main is the root cmd of the Talemu script.
Package main is the root cmd of the Talemu script.
internal
pkg/constants
Package constants contains Talos emulator specific constants.
Package constants contains Talos emulator specific constants.
pkg/emu
Package emu contains global emulator parts.
Package emu contains global emulator parts.
pkg/emu/controllers
Package controllers contains global emulator controllers.
Package controllers contains global emulator controllers.
pkg/grpc
Package grpc contains helper code adopted from the real Talos.
Package grpc contains helper code adopted from the real Talos.
pkg/grpc/gen
Package gen is adopted from the real Talos.
Package gen is adopted from the real Talos.
pkg/grpc/middleware/auth/basic
Package basic is adopted from Talos.
Package basic is adopted from Talos.
pkg/grpc/middleware/authz
Package authz is adopted from Talos.
Package authz is adopted from Talos.
pkg/grpc/middleware/log
Package log provides simple grpc logging middleware.
Package log provides simple grpc logging middleware.
pkg/kubefactory
Package kubefactory implement some minimal kubernetes runtime.
Package kubefactory implement some minimal kubernetes runtime.
pkg/machine
Package machine implements emulation code for a single Talos machine.
Package machine implements emulation code for a single Talos machine.
pkg/machine/controllers
Package controllers contains stripped versions of Talos controllers.
Package controllers contains stripped versions of Talos controllers.
pkg/machine/events
Package events is Talos machine events.
Package events is Talos machine events.
pkg/machine/kubeconfig
Package kubeconfig provides Kubernetes config file generation.
Package kubeconfig provides Kubernetes config file generation.
pkg/machine/logging
Package logging implements machine logging sink.
Package logging implements machine logging sink.
pkg/machine/network
Package network contains utility methods for setting up emulator network.
Package network contains utility methods for setting up emulator network.
pkg/machine/network/watch
Package watch provides netlink watchers via multicast groups.
Package watch provides netlink watchers via multicast groups.
pkg/machine/runtime
Package runtime starts COSI state and runtime.
Package runtime starts COSI state and runtime.
pkg/machine/runtime/resources
Package resources contains all COSI related resource code.
Package resources contains all COSI related resource code.
pkg/machine/runtime/resources/emu
Package emu contains emulator specific resources.
Package emu contains emulator specific resources.
pkg/machine/runtime/resources/talos
Package talos contains Talos specific resources.
Package talos contains Talos specific resources.
pkg/machine/services
Package services contains minimal versions of Talos services.
Package services contains minimal versions of Talos services.
pkg/machine/services/apid/pkg/backend
Package backend implements backends satisfying proxy.Backend interface
Package backend implements backends satisfying proxy.Backend interface
pkg/machine/services/apid/pkg/director
Package director provides proxy call routing facility
Package director provides proxy call routing facility

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL