Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/launcher status #149

Merged
merged 8 commits into from
May 27, 2024
Merged

Feat/launcher status #149

merged 8 commits into from
May 27, 2024

Conversation

carlmontanari
Copy link
Contributor

No description provided.

@carlmontanari carlmontanari marked this pull request as ready for review May 27, 2024 17:13
@carlmontanari
Copy link
Contributor Author

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

@carlmontanari
Copy link
Contributor Author

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).

@carlmontanari carlmontanari merged commit 48cc37d into main May 27, 2024
4 checks passed
@carlmontanari carlmontanari deleted the feat/launcher-status branch May 27, 2024 18:22
@hellt
Copy link
Member

hellt commented May 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants