Skip to content

Talos for Linux admins: #245

@Iheanacho-ai

Description

@Iheanacho-ai

How is Talos conceptually different than “normal” linux (brief)

how can i find syslogs on talos? (

Syslog itself doesn't exist.  There is talosctl dmesg, which will get kernel logs.Another common place to look is talosctl logs machined, as that can be seen as the core broker of things running in Talos.

Another common place to look is talosctl logs controller-runtime, which are the logs from the COSI controller, from which most critical components in Talos are run.

  • can I (and how) list available and loaded linux kernel modules using talosctl?
    talosctl read /proc/modules for loaded
    talosctl ls -r /lib/modules for available

  • How do I view my volume usage? IE: what's my df -h? I can't seem to find it in the command tree, and that's probably me just overlooking something
     talosctl mounts

  • How do I see network interface info?

  • How do I list directories? Show the contents of files?

  • If you want to check addresses, use talosctl get addresses
    If you want to see VIP operations, `talosctl logs controller-runtime -f | grep vip

  • Change settings - this is the machine config.

  • regarding the “cheat sheet” for someone who knows what they want in terms of discovery from a traditional linux box but struggles to find it initially in a Talos node, here’s what I had for accessing “new” (and that notion should be spelled out, it seems to be “maintenance mode”) nodes that have booted from an iso/pxe/etc. My frustrations come from the perspective of being an impatient tech person who is willing to try something out but hasn’t read through all the docs yet, because..I’m busy and I’m impatient and I think I know more than I do and can figure anything out

  • unclear which commands worked for new/insecure devices (aka “matainenance mode”) and which won’t. Is there an obvious way to determine this?

  • No link to a page on “concepts” that explain things like what “maintenace mode” is (all new nodes without config are in maintenance mode, correct?)

  • once a new node is up, it took me a while to find “talosctl get rd”. This is something from the kubernetes world, not the something immediately obvious with the new concept of an api driven linux distro

  • being a linux person, I want to investigate my node. These commands covered what I wanted to know, or at least see, from talosctl

# $CONTROL_PLANE_NODE was just a holder for an IP and doesn't reflect it 
# being, or destined to becoming, a control plan node
 
# DMI-ish system info (vendor, model, UUID, etc.)
talosctl get systeminformation --insecure --nodes $CONTROL_PLANE_IP

# CPU topology (this works for you as `cpu`)
talosctl get cpu               --insecure --nodes $CONTROL_PLANE_IP

# DIMM-style view (slots, sizes, etc.) if exposed by your platform
talosctl get memorymodules     --insecure --nodes $CONTROL_PLANE_IP

# High-level disks Talos cares about
talosctl get pcidevices       --insecure --nodes $CONTROL_PLANE_IP
talosctl get disks             --insecure --nodes $CONTROL_PLANE_IP
talosctl get discoveredvolume     --insecure --nodes $CONTROL_PLANE_IP

# network
talosctl get linkstatuses      --insecure --nodes $CONTROL_PLANE_IP
talosctl get address     --insecure --nodes $CONTROL_PLANE_IP
talosctl get routes --insecure --nodes $CONTROL_PLANE_IP  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions