Skip to content

a-gondolkodas-orome/ai-arena-devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Arena Devops

This script allows you to list and manage Vultr Kubernetes clusters. It can list existing clusters and create a new cluster if a specified cluster does not exist.

Prerequisites

  • Python 3.x
  • Vultr API Key

Initial Setup

  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate   # On Windows, use `venv\Scripts\activate`
  1. Install the required Python packages:
pip install -r requirements.txt

Running the Script Command Line Arguments api_key: Your Vultr API key (required). --name: Name of the Kubernetes cluster (default: "ai-arena"). --region: Region of the Kubernetes cluster (default: "ams" for Amsterdam). --version: Version of the Kubernetes cluster (default: latest version). Example Commands List clusters and create a new one if "ai-arena" does not exist with the latest Kubernetes version:

sh Copy code python manage_clusters.py your_api_key List clusters and create a new one with specific name, region, and version:

sh Copy code python manage_clusters.py your_api_key --name my-cluster --region fra --version v1.21.0 Subsequent Uses Activate the virtual environment:

sh Copy code source venv/bin/activate # On Windows, use venv\Scripts\activate Run the script as shown in the examples above.

Deactivating the Virtual Environment To deactivate the virtual environment after you are done, run:

sh Copy code deactivate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published