GitXplorerGitXplorer
S

kube

public
3 stars
4 forks
0 issues

Commits

List of commits on branch main.
Verified
d6c83feef2dbb25e6a2bc33d81571448a2ae8627

Create types.py

SShivanshuPurohit committed 3 years ago
Verified
ac597d46a46dabddc9b6c93a2682f4fc8be4985c

Create job.py

SShivanshuPurohit committed 3 years ago
Verified
31e49da66fb1bd8d08aeb0ce315c25a59fbc29e1

Create cluster.py

SShivanshuPurohit committed 3 years ago
Verified
e6fa4ac17409760024c78acd9a1cbc2243a6fc4f

Create aws_utils.py

SShivanshuPurohit committed 3 years ago
Verified
a462fa35e1af03cb2a19af6bc0368ed239e2fa3e

Create requirements.txt

SShivanshuPurohit committed 3 years ago
Verified
34f23b32099fdbdc7bf0c6a302664e03b3061b5e

Create kube.py

SShivanshuPurohit committed 3 years ago

README

The README file for this repository.

EKS Management Tool

Installation

  1. Install kubectl: https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html
  2. Install eksctl: https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html
  3. Clone this repository, and install the dependencies pip install -r requirements.txt. You may want to do this in a virtual environment.

You should now be able to use the CLI. To show the help page, use python kube.py --help.

Basic Usage

First, ensure you are using the AWS profile, by setting the AWS_PROFILE environment variable. By default, you will use the default AWS profile. (view your profiles with cat ~/.aws/credentials)

Then, to list the available clusters, type python kube.py cluster list. This will display the available clusters:

NAME         CREATED      STATUS  
test-2       2 days ago   ACTIVE  
my-cluster   4 hours ago  ACTIVE  

By default, we probably aren't selecting any cluster. Check with python kube.py cluster current:

No cluster selected.

Select a cluster with python kube2.py cluster select --name my-cluster:

Then, use python kube2.py job [deploy|list|kill|ssh] to work with jobs on the cluster.