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

Draft: Feat/node distribution implementation notes #841

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ Node distribution metadata is provided through the usage of the labels
At the moment, not all labels are set automatically by most K8s cluster utilities, which incurs
additional setup and maintenance costs.

In order to achieve compliance, the `topology.scs.community/host-id` tag has to be set manually for now. It should be done after the cluster deployment, when all nodes are ready and IDs of host machines are accessible by the user. The nodes can be labeled using the following command:

```
kubectl label nodes <node-name> "topology.scs.community/host-id"=<hostID>
```

The steps necessary to get hostID of a virtual or baremetal machine running a node can be different for each CSP. For example, using `openstack`, we can list machine names (which should correspond to node names) with their respective hostIDs using the following command:

```
openstack server list -f json | jq -r '.[].ID' | while read id; do openstack server show $id -f json; done | jq '{ (.name): .hostId }'
```

## Automated tests

### Notes
Expand Down
Loading