Skip to content

Conversation

@SpComb
Copy link
Contributor

@SpComb SpComb commented Aug 31, 2017

From kontena/kontena#2504

  • Fix the kontena grid env docs
  • Document the new kontena node commands
  • Also add some example command output
  • Omit the extended docs on node vs grid tokens; I'll make a separate PR for those (WIP)

Copy link
Member

@miskun miskun left a 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?

@miskun
Copy link
Member

miskun commented Aug 31, 2017

@jakolehm can you take a look at this as well

$ kontena node show <NODE_ID>
```

## Show Kontena Node Agent Configuration
Copy link
Contributor

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

```

## Show Kontena Platform Grid Environment Details
## Show Kontena Platform Grid Agent Configuration
Copy link
Contributor

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"

Copy link
Member

@miskun miskun Sep 1, 2017

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:
Copy link
Contributor Author

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.
Copy link
Contributor Author

@SpComb SpComb Sep 1, 2017

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:
Copy link
Contributor Author

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.

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.

4 participants