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

Linode CLI Commands for NodeBalancers Proposed Changes #6842

Closed
rahulait opened this issue Feb 14, 2024 · 1 comment
Closed

Linode CLI Commands for NodeBalancers Proposed Changes #6842

rahulait opened this issue Feb 14, 2024 · 1 comment

Comments

@rahulait
Copy link

Link: https://www.linode.com/docs/products/tools/cli/guides/nodebalancers/

Issue

Following command on the page is incorrect:

linode-cli nodebalancers node-create --address 192.200.12.34:80 --label node-1

Suggested Fix

The command needs nodebalancer id and config id as well

linode-cli nodebalancers node-create --address 192.200.12.34:80 --label node-1 $nodebalancer_id $config_id
@Rajakavitha1
Copy link
Collaborator

Made the suggestion after validating the error.

rkodhand@blr-mpe5j ~ % linode-cli nodebalancers create --region in-maa --label new-balancer 
Using default values: {}; use the --no-defaults flag to disable defaults
┌─────────┬──────────────┬────────┬──────────────────────────────┬───────────────┬──────────────────────┬────────────────────────┐
│ id      │ label        │ region │ hostname                     │ ipv4          │ client_conn_throttle │ ipv6                   │
├─────────┼──────────────┼────────┼──────────────────────────────┼───────────────┼──────────────────────┼────────────────────────┤
│ 1013958 │ new-balancer │ in-maa │ 172-232-98-34.ip.linodeuser… │ 172.232.98.34 │ 0                    │ 2600:3c08:1::ace8:6222 │
└─────────┴──────────────┴────────┴──────────────────────────────┴───────────────┴──────────────────────┴────────────────────────┘
rkodhand@blr-mpe5j ~ % linode-cli nodebalancers config-create 1013958
┌─────────┬──────┬──────────┬────────────┬────────────┬───────────────┬──────────────┬────────────────┬─────────────────┐
│ id      │ port │ protocol │ algorithm  │ stickiness │ check_passive │ cipher_suite │ ssl_commonname │ ssl_fingerprint │
├─────────┼──────┼──────────┼────────────┼────────────┼───────────────┼──────────────┼────────────────┼─────────────────┤
│ 1674497 │ 80   │ http     │ roundrobin │ none       │ True          │ recommended  │                │                 │
└─────────┴──────┴──────────┴────────────┴────────────┴───────────────┴──────────────┴────────────────┴─────────────────┘
rkodhand@blr-mpe5j ~ % linode-cli nodebalancers node-create --address 172.232.123.170:80 --label node-1
usage: linode-cli nodebalancers node-create [-h] [--address address] [--label label] [--mode mode] [--weight weight]
                                            nodeBalancerId configId
linode-cli nodebalancers node-create: error: the following arguments are required: nodeBalancerId, configId

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

No branches or pull requests

2 participants