Skip to content

Deploy "throw-away" Kubernetes Cluster(s) using a small Bash CLI

Notifications You must be signed in to change notification settings

brotandgames/kubernete.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

kubernete.sh

Deploy "throw-away" Kubernetes Cluster(s) using a small Bash CLI.

kubernete.sh Example

kubernete.sh deploys a Kubernetes Cluster with 1 to N nodes with Kubernetes Dashboard included. It combines well-known libraries under the hood to make entry to Kubernetes easier.

Use it for your development & ci/cd ("throw-away") environments. Out of the box it's not for production use.

tl;dr

$ kubernete.sh 
kubernete.sh
https://github.com/brotandgames/kubernete.sh

Usage: kubernete.sh [command]

Commands:
  deploy       Deploy a Kubernetes Cluster
  token        Get Kubernetes Dashboard Token <sensitive>
  proxy        Creates a proxy between localhost and the Kubernetes API Server
  print_nodes  Print node configuration in HCL (for Debugging)
  version      Print version
  *            Help
$ kubernete.sh deploy
== kubernete.sh 2019-05-03T18:46:14Z ERROR: No nodes argument found.
Command: 
  kubernete.sh deploy

Usage: 
  kubernete.sh deploy user@node1[,user@node2,user@nodeN] [ssh_private_key_path]

Examples:
  kubernete.sh deploy [email protected]
  kubernete.sh deploy [email protected],[email protected] ~/.ssh/id_rsa

Requirements

kubernete.sh has the following requirements:

Installation

# Download current version of kubernete.sh Bash CLI
curl https://raw.githubusercontent.com/brotandgames/kubernete.sh/v0.1.2/kubernete.sh \
  -o /usr/local/bin/kubernete.sh

# Make it executable
chmod +x /usr/local/bin/kubernete.sh

Quick start

# Create project folder
mkdir my-k8s-cluster && cd my-k8s-cluster

# Deploy Kubernetes Cluster with 2 nodes using SSH Private Key
kubernete.sh deploy [email protected],[email protected] ~/.ssh/id_rsa

Under the Hood

Under the hood kubernete.sh uses awesome open source libraries:

  • terraform and rke (using the terraform-rke-provider) to deploy a Kubernetes Cluster with the Kubernetes Dashboard as an addon.
  • kubectl to get the Kubernetes Dashboard user token and to proxy from localhost to the server.

Open Source

We <3 Free Software. Sharing is caring.

Maintainer

https://github.com/brotandgames

About

Deploy "throw-away" Kubernetes Cluster(s) using a small Bash CLI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages