Skip to content

feat(ec): update node join instructions for improved join experience #5304

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

Merged

Conversation

emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Apr 28, 2025

What this PR does / why we need it:

Returns a list of commands from the API for the new join experience.

Updates the UI to reflect the new join experience.

Screenshot 2025-04-28 at 11 10 54 AM

Screenshot 2025-04-28 at 11 17 32 AM

$ /replicatedhq/kots/bin/kots get join-command -n kotsadm 
curl -k https://172.17.0.2:30000/api/v1/embedded-cluster/binary -o embedded-cluster.tar.gz && \
  tar -xvf embedded-cluster.tar.gz && \
  sudo ./embedded-cluster join 172.17.0.2:30000 mKjXc3FTBddmX3y4zkSMAKFB
$ /replicatedhq/kots/bin/kots get join-command -n kotsadm -ojson
{
  "commands": [
    "curl -k https://172.17.0.2:30000/api/v1/embedded-cluster/binary -o embedded-cluster.tar.gz",
    "tar -xvf embedded-cluster.tar.gz",
    "sudo ./embedded-cluster join 172.17.0.2:30000 GMYTL8RfkaTVBHylpslZy9yc"
  ]
}

Which issue(s) this PR fixes:

SC-122565

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@emosbaugh emosbaugh added the type::feature New feature or request label Apr 28, 2025
@emosbaugh emosbaugh requested review from sgalsaleh and ajp-io April 28, 2025 19:21
sgalsaleh
sgalsaleh previously approved these changes Apr 28, 2025
@emosbaugh
Copy link
Member Author

With step numbers

Screenshot 2025-04-28 at 1 38 39 PM

sgalsaleh
sgalsaleh previously approved these changes Apr 28, 2025
Comment on lines 442 to 443
"Download the installation assets",
"Extract the installation assets",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Download the installation assets",
"Extract the installation assets",
"Download the binary on the new node",
"Extract the binary",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@@ -31,7 +31,7 @@ const AddANodeModal = ({
{rolesData?.roles &&
rolesData.roles.length > 1 &&
"Select one or more roles to assign to the new node. "}
Copy the join command and run it on the machine you'd like to join to
Copy the join commands and run them on the machine you'd like to join to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just because they're not all join commands

Suggested change
Copy the join commands and run them on the machine you'd like to join to
Copy the commands and run them on the machine you'd like to join to

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@emosbaugh emosbaugh merged commit fbbcdb0 into main Apr 28, 2025
92 checks passed
@emosbaugh emosbaugh deleted the emosbaugh/sc-122566/update-the-kots-ui-to-show-download-untar branch April 28, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants