-
Notifications
You must be signed in to change notification settings - Fork 12
Backport kontena/kontena#2504 node token docs #12
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
base: master
Are you sure you want to change the base?
Conversation
miskun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Create Kontena Node stuff should be moved to install-nodes/README.md and/or one of its sub documents
- New term: Kontena Agent introduced?
- Remove Kontena Node - Is there additional value of having longer story?
- Show Kontena Platform Grid Agent Configuration?
|
@jakolehm can you take a look at this as well |
using-kontena/nodes.md
Outdated
| $ kontena node show <NODE_ID> | ||
| ``` | ||
|
|
||
| ## Show Kontena Node Agent Configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just "Show Kontena Node Configuration".
using-kontena/platform.md
Outdated
| ``` | ||
|
|
||
| ## Show Kontena Platform Grid Environment Details | ||
| ## Show Kontena Platform Grid Agent Configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Show Kontena Platform Node Configuration"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. Kontena Platform Node == Kontena Node? --> Kontena Node Configuration? --> Show Kontena Node Configuration
| ## Show Kontena Node Configuration | ||
|
|
||
| Outputs currently used Kontena Platform Grid environment variables that can be used to configure Kontena CLI. | ||
| Generate the [`/etc/kontena-agent.env` environment variables](../references/environment-variables#kontena-agent) required when manually provisioning nodes using grid tokens: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This links to the "Kontena Agent" section on the environment variables reference. Do we also want to avoid the mention of /etc/kontena-agent.env here?
| If you are using the Kontena CLI built-in provision tool, you can terminate Kontena Node using the `kontena <provider> node terminate` command. Alternatively, power off / terminate the Kontena Node machine from any infrastructure you are using and wait for the machine to become offline before removing them. | ||
| If the node was provisioned using the Kontena CLI built-in provisioning tool, you can terminate the host machine using the `kontena <provider> node terminate` command. This will also remove the Kontena Node. If the host machine has already been terminated, then the `kontena node remove` command can be used to forget the terminated node. | ||
|
|
||
| If the node was provisioned with a node token, then the `kontena node remove` command can also be used to invalidate the node token, forcing the agent to disconnect if it is still connected. Nodes provisioned using grid tokens cannot be removed if they are still online, because the agent would simply reconnect and the node would quickly re-appear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove Kontena Node - Is there additional value of having longer story?
There are now two kinds of nodes: those with grid tokens and those with node tokens. They behave differently in terms of kontena node remove.
The kontena <provider> node terminate is still the main preferred thing to use. Removing an online node provisioned using a node token will still leave the machine running. That implies something like you losing access to that node and wanting to kick it out of your grid ASAP.
Should we drop support for removing online nodes connected using node tokens, to simplify the docs? You could still use kontena node reset-token to force it to disconnect , and then remove it after waiting for it to go offline.
|
|
||
| ## Create Kontena Nodes | ||
|
|
||
| Create a new Kontena Node for manual provisioning: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create Kontena Node stuff should be moved to install-nodes/README.md and/or one of its sub documents
So the using-kontena/nodes.md should not have any mention of kontena node create?
Writing up the detailed docs in install-nodes/README.md is still WIP, I can move this to that branch.
From kontena/kontena#2504
kontena grid envdocskontena nodecommands