Skip to main content

The CLI tool to boostrap the instances of VKS clusters.

Project description

vks-bootstraper PyPI

The simple CLI tool to bootstrap instances of VKS workload clusters

Python


Installation

  • Install the vks-bootstraper:latest with pip tool:
    pip3 install --upgrade vks-bootstraper
    

Build

  • Install the Pip dependencies

    pip3 install --upgrade pip
    pip3 install --upgrade -r requirements.txt
    pip3 install --upgrade build twine
    
  • Build the CLI

    python3 -m build
    twine check dist/*
    
  • Publish the CLI to PyPi (make sure you have configured the $HOME/.pypirc config file, refer this section to pre-configure before performing this step)

    twine upload [--repository pypi] dist/*
    

Others

The .pypirc config file

  • The config file should be located at $HOME/.pypirc
  • The content of the file should be like this:
    [pypi]
      username = __token__
      password = pypi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    

Usage

  • Run the CLI with the following command:
    vks-bootstraper --help
    
       vks-bootstraper --help             
    Usage: vks-bootstraper [OPTIONS] COMMAND [ARGS]...
    
    Options:
      --version  Show the version and exit.
      --help     Show this message and exit.
    
    Commands:
      add-host                 Add a new host to the /etc/hosts file
      generate-ssh-key         Generate the SSH key for the current instance
      get-instance-id          Get the vServer ID of the current instance
      get-local-ipv4           Get the local IPv4 of the current instance
      prepare-kubeadm-config   Prepare the kubeadm config file for the...
      waiting-instance-booted  Waiting for the instance to be booted up,...
      waiting-internet         Waiting for the instance to reach to the...
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vks_bootstraper-1.4.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vks_bootstraper-1.4.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file vks_bootstraper-1.4.0.tar.gz.

File metadata

  • Download URL: vks_bootstraper-1.4.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for vks_bootstraper-1.4.0.tar.gz
Algorithm Hash digest
SHA256 be83d57bbbcc0806f86626092f075426d22cd90e0856f5339fc2c808fa123770
MD5 da718a49bb217f5b4cc67481d58caaa3
BLAKE2b-256 31c16cb9cbdb710f0ced58b9fcab95dc24f33de9c16d89f6c0fb92875493e05e

See more details on using hashes here.

File details

Details for the file vks_bootstraper-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vks_bootstraper-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22a0958b31da28364afe82dd01a00d0c81e4c986e0b358a301208d25384adf15
MD5 6a36460fc4ea559fb38226e45e90bfc4
BLAKE2b-256 ece4a49a6719508c855a402f122a3af48c26ecf43581dfd16408de3d4e8c5308

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page