srl-labs / clabernetes

containerlab, but in kubernetes!
BSD 3-Clause "New" or "Revised" License
60 stars 9 forks source link

Feat/launcher status #149

Closed carlmontanari closed 5 months ago

carlmontanari commented 5 months ago

j/k not ready, need to re-fix print columns... 🙃

carlmontanari commented 5 months ago

kubectl wait --for=condition=TopologyReady=true topologies/test-topology-1 --timeout=10m

^ something like this can now be used to wait for a topology to report ready. the tl;dr for this is that you can configure how his works under spec.statusProbes.

statusProbes:
  enabled: true
  excludedNodes: [] # a list of the container lab node names (i.e. srl1) to ignore when deciding if the topo is ready
  probeConfiguration:
    sshProbeConfiguration:
       username: something
       password: something
       port: 22 # optional, obviously defaults to 22 -- this is ssh from the launcher to the ip of the clab node (i.e. the ip on the docker bridge)
    tcpProbeConfiguration:
       port: 57400 # this makes the launcher do a simple tcp connect to this port
    nodeProbeConfigurations: {} # a map of clab node name -> probeConfigurations -- overrides the topology wide probe configs for the given node(s).
hellt commented 5 months ago

Love the config option to tune how probes are being executed 👍