A simple and flexible commandline tool for AWS EKS management
Project description
A simple and flexible command-line tool for AWS EKS management
Free software: MIT license
Documentation: https://ekscli.readthedocs.io.
Prerequisites
Available AWS credentials (configured as boto3)
Heptio authenticator binary (Section To install heptio-authenticator-aws for Amazon EKS in AWS EKS User Guide)
[Optional] kubectl (1.10 and later) for kubernetes cluster operations
Quick Start
Installation
As easy as the standard python way by using pip.
$ pip install ekscli
Optionally, after installation, command-completion can be achieved with:
$ eval "$(_EKS_COMPLETE=source eks)"
Use ECKCLI
Note: AWS fees will be charged in your account for the AWS resources created by ekscli.
$ eks create cluster --name=dev
# EKS cluster name can be set as an environment variable
$ export EKS_CLUSTER_NAME=dev
$ eks create cluster
To create the EKS cluster’s control plane (master) only:
$ eks create cluster --name=dev --cp-only
To create the EKS cluster’s control plane (master) with existing subnets of a VPC, a predefined IAM role, an existing EC2 KeyPair etc.:
$ eks create cluster --name=dev --cp-only \
--subnets=subnet-1234567,subnet-abcdef1 \
--cp-role eks-default-role \
--region us-west-2 \
--kubconfig ./dev.conf \
--heptio-auth /tmp/heptio-auth-aws \
--keyname dev \
--node-sg-ingress port=22,cidr=10.0.0.0/8 \
--tags Env=dev,Project=eks-poc
The simplest way to create a node group
$ eks create node-group --name=dev --node-name=workers
To create a node group with more options
$ eks create node-group --name=dev --node-name=another \
--node-role=eks-worker-s3 \
--node-subnets=subnet-1234567 \
--node-min=1 \
--node-max=10
--node-sg-ingress port=22,cidr=10.0.0.0/8 \
--node-sg-ingress protocol=tcp,from=8080,to=8088,cidr=0.0.0.0/0 \
--region us-west-2 \
--kubconfig ./dev.conf \
--heptio-auth /tmp/heptio-auth-aws \
--keyname dev \
--tags Env=dev,Project=eks-poc
Features
Simple and concise command line interface
Flexible configuration
Plain vanilla EKS cluster without unrequired resources running Kubernetes clusters
EKS resources managed by AWS CloudFormation
Command line auto-completion supported for Bash and Zsh
Roadmap
Output cluster information to different formats: yaml, json
Update the cluster and node groups
Create from templatable configuration files
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ekscli-0.1.0rc4.tar.gz
.
File metadata
- Download URL: ekscli-0.1.0rc4.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b773edd0183beac99d017aa0a26a15927e3e8b5dfd1c4b74a12de3db4ad4a5bf |
|
MD5 | 8a578aac00d96cc4f31909d5fd732be6 |
|
BLAKE2b-256 | f580dd9130022986fe77b6f4a2c75374e5d52fb1f6c33062c2ae748280692545 |
File details
Details for the file ekscli-0.1.0rc4-py2.py3-none-any.whl
.
File metadata
- Download URL: ekscli-0.1.0rc4-py2.py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d26bd5f2b929f3b096c299fc6c38c77b018c1e8cbc1fd692f4c03851fbbdd00 |
|
MD5 | 6bd188cc493eef79ba76f635efb4adf5 |
|
BLAKE2b-256 | aa811e0ac7f86fcbe32acfca9be4da815c940368de46327e0c5ab81ff5732d92 |