LINODE-MGMT
The linode-mgmt is a python package that used to manage Linode ELK clusters.
To use this package and perform actions on linode, you will need to acquire a token. Follow the following guideline to acquire one:
- Browse to https://www.linode.com/
- Click on your profile --> API Tokens
- Click on the
Create A Personal Access Tokenbutton - Fill in all your details and click on the
Create Tokenbutton - Keep the Token in a safe place
Note: This token will be used to communicate with the Linode API.
Prerequisites
Prepare the python virtual environment
mkdir linode-mgmt ; cd linode-mgmt
python3.9 -m venv .
source bin/activate
Make sure the following packages are installed:
- pip==22.3.1
- setuptools==65.6.3
Installation
pip install linode-mgmt
Usage:
usage: linode-mgmt [arguments]
Linode Management component
optional arguments:
--help show this help message and exit
--version shows program version
--log-file NAME log file name
--verbose if added will print more information
--dry-run used to test action without performing anything
required arguments:
--token <TEXT> a personal access token
resources:
cluster
node
volume
storage
firewall
Examples:
- To create a new cluster with 3 nodes in 'us-iad' region ref: https://api.linode.com/v4/regions
linode-mgmt cluster create \
--token <token> \
--cluster <cluster> \
--region us-iad \
--node-count 3 \
--node-type g6-dedicated-56 \
--kube-version 1.30 \
--verbose
- To upgrade an existing cluster to a newer kubernetes version ref: https://www.linode.com/docs/products/compute/kubernetes/guides/upgrade-kubernetes-version/?tabs=cloud-manager,linode-api
linode-mgmt cluster upgrade \
--token <token> \
--cluster <cluster> \
--kube-version 1.31 \
--verbose
- To delete a cluster
linode-mgmt cluster delete \
--token <token> \
--cluster <cluster> \
--verbose
- To get a cluster id
linode-mgmt cluster get-id \
--token <token> \
--cluster <cluster> \
--verbose
- To power on a specific node
linode-mgmt node poweron \
--token <token> \
--node lke87300-132938-63c003e48302 \
--verbose
- To power off a specific node
linode-mgmt node poweroff \
--token <token> \
--node lke87300-132938-63c003e48302 \
--verbose
- To restart a specific node
linode-mgmt node restart \
--token <token> \
--node lke87300-132938-63c003e48302 \
--verbose
- To get a node id
linode-mgmt node get-id \
--token <token> \
--node lke87300-132938-63c003e48302 \
--verbose
- To update a node with specific alert thresholds
linode-mgmt node update \
--token <token> \
--cluster <cluster> \
--node lke87300-132938-63c003e48302 \
--node-cpu-alert
--verbose
- To delete a volume
linode-mgmt volume delete \
--token <token> \
--volume-name pvc1809b72cc85e4fa7 \
--verbose
- To create a new storage objects (bucket)
linode-mgmt storage create \
--token <token> \
--cluster <cluster> \
--bucket-name <bucket> \
--verbose
- To List all storage objects
linode-mgmt storage list \
--token <token> \
--cluster <cluster> \
--verbose
- To delete a storage objects
linode-mgmt storage delete \
--token <token> \
--cluster <cluster> \
--bucket-name <bucket> \
--verbose
- To get a firewall id
linode-mgmt firewall get-id \
--token <token> \
--firewall <firewall> \
--verbose
- To get a list of all firewalls
linode-mgmt firewall list \
--token <token> \
--verbose
- To add a node to a firewall
linode-mgmt firewall add-node \
--token <token> \
--node-name lke268293-471352-15cf7a690000 \
--firewall <firewall> \
--verbose
- To get a kubeconfig for a cluster
linode-mgmt kubeconfig get
--token <token> \
--cluster <cluster> \
--decode
Metadata
Release files for linode-mgmt 1.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| linode_mgmt-1.0.10.tar.gz | 14.0 kB | Without provenance | Details for linode_mgmt-1.0.10.tar.gz |
Release files / linode_mgmt-1.0.10.tar.gz
| Download URL | linode_mgmt-1.0.10.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8f5f00f8d94ac93bfa33574062e407bb8ebff163bfb41482e70834065951dcb
|
|
BLAKE2b-256 checksum How to use checksums |
046ea9c6fa3fc52806ec5c2ed0aca6b58d634628808fb70a245696c82c1d7678
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Security for linode-mgmt 1.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.